4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
12 results tagged algo x
  • thumbnail
    Bubble sort algo

    def bubbleSort(arr):
    n = len(arr)

    # Traverse through all array elements
    for i in range(n):
    
        # Last i elements are already in place
        for j in range(0, n-i-1):
    
            # traverse the array from 0 to n-i-1
            # Swap if the element found is greater
            # than the next element
            if arr[j] > arr[j+1] :
                arr[j], arr[j+1] = arr[j+1], arr[j
    6 février 2022 à 21:55:40 UTC+1 - permalink - archive.org - https://www.geeksforgeeks.org/bubble-sort/
    algo
  • BInary search algo
    def binary_search(l, item):
        first = 0
        last = len(l)-1
        found = False

        while first<=last and not found:
            midpoint = round((first + last)/2)
            if l[midpoint] == item:
                found = True
            else:
                if item < l[midpoint]:
                    last = midpoint-1
                else:
                    first = midpoint+1

        return found

    input = [0, 1, 2, 8, 13, 17, 19, 32, 42,]

    print(binary_search(input, 3))   # found: False
    print(binary_search(input, 13))  # fount: True
    6 février 2022 à 16:06:59 UTC+1 - permalink - archive.org - https://links.infomee.fr/?GnzD5Q
    algo search
  • Quick sort algo
    from random import randrange

    input = [10, 5, 2, 3, 7, 0, 9, 12]

    def quicksort(arr):
        if len(arr) < 2:
            return arr
        else:
            rand = randrange(0, len(arr))  # grab a random index
            pivot = arr.pop(rand)
            less = [i for i in arr if i <= pivot]
            greater = [i for i in arr if i > pivot]
            return quicksort(less) + [pivot] + quicksort(greater)

    print("sorted:  ", quicksort(input))
    6 février 2022 à 16:05:26 UTC+1 - permalink - archive.org - https://www.integralist.co.uk/posts/algorithmic-complexity-in-python/
    algo recursiv sort
  • thumbnail
    HackerRank
    25 septembre 2021 à 09:38:37 UTC+2 * - permalink - archive.org - https://www.hackerrank.com/
    algo code datadog dev entretien exercice training
  • Advent of Code
    8 décembre 2019 à 11:18:21 UTC+1 * - permalink - archive.org - https://adventofcode.com
    advent algo code
  • thumbnail
    GitHub - tayllan/awesome-algorithms: A curated list of awesome places to learn and/or practice algorithms.
    28 juin 2018 à 13:56:28 UTC+2 - permalink - archive.org - https://github.com/tayllan/awesome-algorithms
    algo code
  • thumbnail
    GitHub - TheAlgorithms/Python: All Algorithms implemented in Python
    28 juin 2018 à 13:56:01 UTC+2 - permalink - archive.org - https://github.com/TheAlgorithms/Python
    algo code python
  • Python-programming-exercises/100+ Python challenging programming exercises.txt at master · zhiwehu/Python-programming-exercises · GitHub
    28 mai 2018 à 09:25:38 UTC+2 - permalink - archive.org - https://github.com/zhiwehu/Python-programming-exercises/blob/master/100%2B%20Python%20challenging%20programming%20exercises.txt
    algo code dev python
  • thumbnail
    A Rubyist's Guide to Big-O Notation

    Big-O illustré en ruby

    17 novembre 2016 à 22:51:47 UTC+1 - permalink - archive.org - http://blog.honeybadger.io/a-rubyist-s-guide-to-big-o-notation/
    algo bigo dev ruby
  • Top 10 Algorithms for Coding Interview

    to level up

    • https://www.cs.cmu.edu/~cburch/survey/recurse/hanoiimpl.html
    • https://rosettacode.org/wiki/Rosetta_Code
    13 avril 2016 à 17:17:31 UTC+2 * - permalink - archive.org - http://www.programcreek.com/2012/11/top-10-algorithms-for-coding-interview/
    algo code coding dev interview
  • Generating weighed random numbers in JavaScript

    Algo pour faire du random avec poids

    12 janvier 2015 à 11:26:33 UTC+1 - permalink - archive.org - http://www.javascriptkit.com/javatutors/weighrandom2.shtml
    algo random weight
  • VisuAlgo - visualising data structures and algorithms through animation

    super cool pour comprendre les algos!

    19 août 2014 à 22:21:41 UTC+2 - permalink - archive.org - http://www.comp.nus.edu.sg/~stevenha/visualization/index.html
    algo dev
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation