Skip to content
Permalink
Branch: master
Commits on May 20, 2020
  1. Graphs : Bidirectional A* (#2015)

    guilyx committed May 20, 2020
    * implement bidirectional astar
    
    * add type hints
    
    * add wikipedia url
    
    * format with black
    
    * changes from review
  2. Update atbash cipher (doc, doctest, performance) (#2017)

    mateuszz0000 and cclauss committed May 20, 2020
    * Update atbash
    
    * Add benchmark() to quantify the performance improvement
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
Commits on May 19, 2020
  1. Update fast_fibonacci.py (#1889)

    SandersLin and cclauss committed May 19, 2020
    * Update fast_fibonacci.py
    
    * Update fast_fibonacci.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  2. singly_linked_list.py: psf/black (#2008)

    cclauss and github-actions committed May 19, 2020
    * singly_linked_list.py: psf/black
    
    * updating DIRECTORY.md
    
    * Update singly_linked_list.py
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
  3. Easter date gauss algorithm (#2010)

    mateuszz0000 committed May 19, 2020
    * Added gauss easter algorithm
    
    * Fixes in easter algorithm
    
    * Commit suggestions
  4. refactor: move import pytest line of blockchain algs under "main" sec…

    Jay9z and cclauss committed May 19, 2020
    …tion. (#2012)
    
    * change doctest line
    
    import doctest is not relevant with algorithms. move it under main section.
    
    * from doctest import testmod
    
    * refactor: move doctest under "main" section
    
    * Update diophantine_equation.py
    
    * Update modular_division.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  5. Precision must be a nonnegative integer (#2013)

    cclauss and github-actions committed May 19, 2020
    * Precision must be a nonnegative integer
    
    * fixup! Format Python code with psf/black push
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Commits on May 18, 2020
  1. consists of area of various geometrical shapes (#2002)

    Adityanagraj and cclauss committed May 18, 2020
    * consists of area of various geometrical shapes
    
    In this program it consists of various area calculation of different geometrical shapes such as (square,rectangle) and many other shapes.
    
    * print(f'Rectangle: {area_rectangle(10, 20)=}')
    
    * Update area.py
    
    * Areas of various geometric shapes:
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  2. Pi digit extraction algorithm (#1996)

    3 people committed May 18, 2020
    * added pi digit extraction formula
    
    * updating DIRECTORY.md
    
    * fixed typo in a comment
    
    * updated bbp_formula.py
    
    * Update maths/bbp_formula.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Update maths/bbp_formula.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Update bbp_formula.py
    
    * Update and rename bbp_formula.py to bailey_borwein_plouffe.py
    
    * updating DIRECTORY.md
    
    * calculate
    
    * "".join(bailey_borwein_plouffe(i) for i in range(1, 12))
    
    * Update bailey_borwein_plouffe.py
    
    * Update bailey_borwein_plouffe.py
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
  3. change doctest line (#2007)

    Jay9z and cclauss committed May 18, 2020
    * change doctest line
    
    import doctest is not relevant with algorithms. move it under main section.
    
    * from doctest import testmod
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  4. added __len__ function (#1812)

    Akashpycs and cclauss committed May 18, 2020
    * added __len__ function
    
    Added a function to count number of nodes in linked list
    
    * Updated __len__ method
    
    used snake_case instead of camel case
    
    * Add tests to __len__()
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  5. hill_cipher.py: gcd() -> greatest_common_divisor() (#1997)

    3 people committed May 18, 2020
    * hill_cipher.py: gcd() -> greatest_common_divisor()
    
    * fixup! Format Python code with psf/black push
    
    * import string
    
    * updating DIRECTORY.md
    
    * Change matrix to array
    
    Add more tests
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    Co-authored-by: John Law <johnlaw.po@gmail.com>
  6. Add tests and type hints to hill cipher (#1991)

    bharath5412 and poyea committed May 18, 2020
    * Added tests and type hints to hill cipher
    
    * Remove extra >>>
    
    * import doctest
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
Commits on May 17, 2020
  1. Added strand sort (#1982)

    mateuszz0000 committed May 17, 2020
    * Added strand sort
    
    * Review changes
    
    * Remove boilerplate code
    
    * Fixed flake error: E252
    
    * Added missing return type hint
Commits on May 16, 2020
  1. actions/setup-python@v2 (#1986)

    cclauss and github-actions committed May 16, 2020
    * actions/setup-python@v2
    
    * fixup! Format Python code with psf/black push
    
    * Update autoblack.yml
    
    * updating DIRECTORY.md
    
    * Update codespell.yml
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Commits on May 15, 2020
  1. Added file aliquot_sum.py (#1985)

    ken437 and cclauss committed May 15, 2020
    * Added file aliquot_sum.py containing a function to find theo
    
    * Added parameter type info to aliquot_sum.py
    
    * Update maths/aliquot_sum.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Update maths/aliquot_sum.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Updated code to raise ValueErrors if input is bad
    
    * Fixed logical operators
    
    * Removed unnecessary import
    
    * Updated aliquot_sum.py
    
    * fixed formatting
    
    * fixed documentation
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
Commits on May 14, 2020
  1. improved prime number generator to check only up to sqrt(n) instead o…

    steven7214 and cclauss committed May 14, 2020
    …f n (#1984)
    
    * improved prime number generator to check only up to sqrt(n) instead of n
    
    * added old version as slow_primes() and named new, faster version primes()
    
    * fixed docstring in slow_primes
    
    * Add a timeit benchmark
    
    * Update prime_numbers.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  2. Update linear_search.py (#1974)

    Himanshu-77 committed May 14, 2020
    * Update linear_search.py
    
    Comment modified in line 17 as Sorting not required in Linear Search
    
    * Update linear_search.py
    
    Comment modified in line 17
Commits on May 13, 2020
  1. The new version of flake8 is linting f-strings (#1976)

    cclauss and github-actions committed May 13, 2020
    * The new version of flake8 is linting f-strings
    
    * updating DIRECTORY.md
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Commits on May 11, 2020
  1. Iterative merge sort implementation (#1972)

    amangupta0709 and cclauss committed May 11, 2020
    * Added Iterative merge sort
    
    * Added iterative merge sorts
    
    * Update changes
    
    * Add the ability to sort strings
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  2. Add type hints to max_heap.py (#1960)

    halilylm and cclauss committed May 11, 2020
    * Max heap implementation
    
    * Update max_heap.py
    
    * Update max_heap.py
    
    * Update max_heap.py
    
    * __len__ method added
    
    * Update max_heap.py
    
    Co-authored-by: halilpython <65048618+halilpython@users.noreply.github.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
Commits on May 10, 2020
  1. Fix astar (#1966)

    cclauss and github-actions committed May 10, 2020
    * Fix astar
    
    Single character variable names are old school.
    
    * fixup! Format Python code with psf/black push
    
    * Tuple
    
    * updating DIRECTORY.md
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
  2. Travis CI: Strict flake8 (#1962)

    cclauss and github-actions committed May 10, 2020
    * Travis CI: Strict flake8
    
    Turn the screws all the way down.
    
    * updating DIRECTORY.md
    
    * Switch from flake8 --select to --ignore
    
    * Quotes
    
    * IGNORE=E123,E203,E265,E266,E302,E401,E402,E712,E731,E741,E743,F811,F841,W291,W293,W503
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Commits on May 9, 2020
  1. Added A* algorithm (#1913)

    jeffin07 committed May 9, 2020
    * a* algorithm
    
    * changes after build error
    
    * intent changes
    
    * fix after review
    
    * ImportMissmatchError
    
    * Build failed fix
    
    * doctest changes
    
    * doctest changes
  2. Kadanes_algorithm (#1959)

    Raj-Parekh24 and cclauss committed May 9, 2020
    * Add files via upload
    
    * Update Kadane's_algorithm.py
    
    * Update and rename Kadane's_algorithm.py to kadanes_algorithm.py
    
    * Update kadanes_algorithm.py
    
    * Update kadanes_algorithm.py
    
    * Update kadanes_algorithm.py
    
    * Update kadanes_algorithm.py
    
    * Update kadanes_algorithm.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  3. Travis CI: lint for useless backslashes (#1961)

    cclauss and github-actions committed May 9, 2020
    * Travis CI: lint for useless backslashes
    
    * updating DIRECTORY.md
    
    * flake8  --max-complexity=25
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Commits on May 8, 2020
  1. Upgrades to caesar_cipher.py (#1958)

    mrmaxguns and cclauss committed May 8, 2020
    * Added more flexibility to functions, decreased amount of repeating code
    
    * Added docstrings
    
    * Updated input functions
    
    * Added doctests
    
    * removed test piece of code
    
    * black .
    
    * Updated caesar cipher standard alphabet to fit python 3.8
    
    * Update and rename sleepsort.py to sleep_sort.py
    
    * Or 4
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
Commits on May 7, 2020
  1. Added Nearest neighbour algorithm (#1934)

    mateuszz0000 committed May 7, 2020
  2. Add graphs/frequent_pattern_graph_miner.py (#1866)

    siva1098 and cclauss committed May 7, 2020
    * Add files via upload
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update graphs/frequent_pattern_graph_miner.py
    
    Co-Authored-By: Christian Clauss <cclauss@me.com>
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Update frequent_pattern_graph_miner.py
    
    * Whitespace changes
    
    * Format with psf/black
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  3. Add sleep-sort (#1867)

    3 people committed May 7, 2020
    * added sleepsort
    
    Adding sleepsort
    
    * Add doctest and typing for sleepsort
    
    * Use self-descriptive variable name
    
    * Update sleepsort.py
    
    * Update sorts/sleepsort.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
  4. Added Shortest Job First Algorithm (#1957)

    pharshil1902 and cclauss committed May 7, 2020
    * Added Shortest Job First Algorithm
    
    It is in IPYNB format but the dataframes are really looking good.
    Please, take a look.
    
    * Delete Shortest_Job_First_Algorithm.ipynb
    
    * Added Shortest Job First Algorithm
    
    * Update Shortest_Job_First Algorithm.py
    
    * Update Shortest_Job_First Algorithm.py
    
    * Update Shortest_Job_first Algorithm
    
    * Added Shortest_Job_First Algorithm
    
    * Added Shortest Job First Algorithm
    
    * Update shortest_job_first_algorithm.py
    
    * Format code with psf/black
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  5. Added Lstm example for stock predection (#1908)

    jeffin07 and cclauss committed May 7, 2020
    * Added Lstm example for stock predection
    
    * Changes after review
    
    * changes after build failed
    
    * Add Kiera’s to requirements.txt
    
    * requirements.txt: Add keras and tensorflow
    
    * psf/black
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
Commits on May 6, 2020
  1. Added new algorithm: cracking caesar cipher with the chi-squared test (

    mrmaxguns and cclauss committed May 6, 2020
    …#1950)
    
    * added decrypt_caesar_with_chi_squared.py and ran all checks
    
    * Updated default parameters
    
    Removed mistake with mutable default arguments
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Updated handling for optional arguments
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Changed return statement to tuple
    
    Made function return a tuple instead of a list
    
    * Added more doctests
    
    * Fixed spelling mistakes
    
    * black . - reformatted decrypt_caesar_with_chi_squared.py
    
    * Updated if statements to fit the updated code
    
    * Minimized amount of lines in the code.
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
  2. change method name from front to get_front (#1943)

    vipulrai91 and “Vipul committed May 6, 2020
    Co-authored-by: “Vipul <“vipulrai8891@gmail.com”>
  3. Deal with maps (#1945)

    cclauss and github-actions committed May 6, 2020
    * Deal with maps
    
    Try with the search term "pizza" to see why this was done in #1932
    
    * fixup! Format Python code with psf/black push
    
    * Update armstrong_numbers.py
    
    * updating DIRECTORY.md
    
    * Update crawl_google_results.py
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Older
You can’t perform that action at this time.