Skip to content
Permalink
master

Commits on Nov 25, 2020

  1. Add a divide and conquer method in finding the maximum difference pair (

    #3692)
    
    * A divide and conquer method in finding the maximum difference pair
    
    * fix formatting issues
    
    * fix formatting issues
    
    * add doctest runner
    choyiny committed Nov 25, 2020

Commits on Nov 24, 2020

  1. Create instagram_pic (#3945)

    * Create instagram_pic
    
    * Update instagram_pic
    
    * Update instagram_pic
    
    * isort
    
    * Update instagram_pic.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    Epic-R-R and cclauss committed Nov 24, 2020
  2. Python 3.9 (#3926)

    * Upgrade to Python 3.9
    
    * pip install wheel for faster builds
    
    * updating DIRECTORY.md
    
    * requirements.txt: tensorflow; python_version < '3.9'
    
    * keras requires tensorflow
    
    * Rename lstm_prediction.py to lstm_prediction.py_tf
    
    * Update requirements.txt
    
    * updating DIRECTORY.md
    
    * Update requirements.txt
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    3 people committed Nov 24, 2020

Commits on Nov 23, 2020

  1. Improve Base16 Codebase (#3534)

    * Add doctest and remove input() usage
    
    * Apply suggestions from code review
    
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    tanyonghe and dhruvmanila committed Nov 23, 2020
  2. Renamed octal_to_decimal to octal_to_decimal.py (#3420)

    * Renamed octal_to_decimal to octal_to_decimal.py
    * Updated octal_to_decimal.py
    * modified doctests
    * updated octal_to_decimal.py
    cybov committed Nov 23, 2020
  3. [mypy] math/sieve_of_eratosthenes: Add type hints (#2627)

    * add type hints to math/sieve
    * add doctest
    * math/sieve: remove manual doctest
    * add check for negative
    * Update maths/sieve_of_eratosthenes.py
    * Update sieve_of_eratosthenes.py
    
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    pikulet and dhruvmanila committed Nov 23, 2020

Commits on Nov 21, 2020

  1. Remove workflow file, task checked by the bot (#3917)

    dhruvmanila committed Nov 21, 2020
    1
  2. Web programming contribution (#2436)

    * Currency Converter
    
    * currency converter
    
    * Currency Converter
    
    * currency converter
    
    * implemented changes
    
    * Implemented changes requested
    
    * TESTING = os.getenv("CONTINUOUS_INTEGRATION", False)
    
    * Update currency_converter.py
    
    * Update currency_converter.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    niranjanhegde144 and cclauss committed Nov 21, 2020
  3. Changed how the Visited nodes are tracked (#3811)

    Updated the code to track visited Nodes with Set data structure instead of Lists to bring down the lookup time in visited  from O(N) to O(1)
    as doing O(N) lookup each time in the visited List will become significantly slow when the graph grows
    akashgkrishnan committed Nov 21, 2020
  4. Add solution for Project Euler: Problem 89 (#2948)

    * add solution for euler problem 89
    
    * updates to accommodate euler solution guideline updates
    
    * use more descriptive vars
    
    * updating DIRECTORY.md
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    coryallegory and github-actions committed Nov 21, 2020
  5. Remove stale action workflow file (#3915)

    dhruvmanila committed Nov 21, 2020
  6. Added solution for Project Euler problem 129. (#3113)

    * Added solution for Project Euler problem 129. 
    * Added doctest for solution() in project_euler/problem_129/sol1.py
    * Update formatting. Reference: #3256 
    * More descriptive function and variable names, more doctests.
    fpringle committed Nov 21, 2020
  7. Project Euler 70 Solution (#3041)

    * Add solution for Project Euler 70, Fixes: #2695
    
    * Remove parameter from solution()
    
    * Add tests for all functions, add fstring and positional arg for solution()
    
    * Rename directory to 070
    
    * Move up explanation to module code block
    
    * Move solution() below helper functions, rename variables
    
    * Remove whitespace from defining min_numerator
    
    * Add whitespace
    
    * Improve type hints with typing.List
    
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    peteryao7 and dhruvmanila committed Nov 21, 2020
  8. Add solution for Project Euler problem 188 (#2880)

    * Project Euler problem 188 solution
    
    * fix superscript notation
    
    * split out modexpt() function, and rename parameters
    
    * Add some more doctest, and add type hints
    
    * Add some reference links
    
    * Update docstrings and mark helper function private
    
    * Fix doctests and remove/improve redundant comments
    
    * fix as per style guide
    darkstar committed Nov 21, 2020

Commits on Nov 20, 2020

  1. Try the stale bot instead of stale action (#3906)

    * Try the stale bot instead
    
    * Add config file for the stale bot
    dhruvmanila committed Nov 20, 2020
  2. Fixes: #3869: Optimize CI runtime of Project Euler's Problem 74's Sol…

    …ution 2 (#3893)
    
    * Fixes: #3869: Optimize Project Euler's Problem 74's  Solution 2
    
    * updating DIRECTORY.md
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    tacitvenom and github-actions committed Nov 20, 2020

Commits on Nov 19, 2020

  1. Run latest stale action (#3904)

    dhruvmanila committed Nov 19, 2020
  2. Update related to the change in CI testing (#3903)

    * Update README badge for GitHub CI
    
    * Run GitHub CI everyday as was done in Travis
    dhruvmanila committed Nov 19, 2020
  3. Delete Travis_CI_tests_are_failing.md (#3902)

    * Delete Travis_CI_tests_are_failing.md
    
    * updating DIRECTORY.md
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    cclauss and github-actions committed Nov 19, 2020
  4. Move CI tests from Travis to GitHub (#3889)

    * Add initial support for moving tests to GitHub
    
    * Add setup Python step in the workflow
    
    * Remove Travis CI config file
    
    * Fix GitHub action file for build to trigger on PR
    
    * Use Python 3.8 as tensorflow is not yet supported
    
    * Fix ciphers.hill_cipher doctest error
    
    * Fix: instagram crawler tests failing on GitHub actions
    
    * Fix floating point errors in doctest
    
    * Small change to test cache
    
    * Apply suggestions from code review
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Update instagram_crawler.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    dhruvmanila and cclauss committed Nov 19, 2020

Commits on Nov 18, 2020

  1. update area.py (#3862)

    add method "area_ellipse"
    - Calculate the area of a ellipse
    
    Co-authored-by: 201502029 <tnehd158@naver.com>
    Suyeonkkk and 201502029 committed Nov 18, 2020
    1
  2. Modified comments on upper.py (#3884)

    * Modified comments on upper.py ,made it more clean
    
    * Update strings/upper.py
    
    Co-authored-by: xcodz-dot <71920621+xcodz-dot@users.noreply.github.com>
    
    * Update upper.py
    
    * Update upper.py
    
    Co-authored-by: xcodz-dot <71920621+xcodz-dot@users.noreply.github.com>
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    3 people committed Nov 18, 2020

Commits on Nov 15, 2020

  1. Add Maths / Sigmoid Function (#3880)

    * Add Maths / Sigmoid Function
    
    * Update Sigmoid Function
    
    * Add doctest and type hints
    
    * Fix Trim Trailing Whitespace
    
    * Fix Error
    
    * Modified Black
    
    * Update sigmoid.py
    
    Co-authored-by: sukyung99 <tnrudsla413@gmail.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
    3 people committed Nov 15, 2020

Commits on Nov 14, 2020

  1. Add type hints and tests. (#2461)

    * Add type hints, documentation and tests.
    
    * Update searches/ternary_search.py
    
    Sort collection and remove the assertion logic.
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Remove assert sorted logic.
    
    * Add assertion list is ordered.
    
    * updating DIRECTORY.md
    
    * updating DIRECTORY.md
    
    * Format with black.
    
    * Change names of variables to descriptive names
    
    * Remove print in doctests
    
    * Fix variables to snake_case notation.
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    3 people committed Nov 14, 2020

Commits on Nov 13, 2020

  1. add similarity_search.py in machine_learning (#3864)

    * add similarity_search.py in machine_learning
    adding similarity_search algorithm in machine_learning
    
    * fix pre-commit test, apply feedback
    
    isort, codespell changed.
    applied feedback(np -> np.ndarray)
    
    * apply feedback
    
    add type hints to euclidean method
    
    * apply feedback
    
    - changed euclidean's type hints
    - changed few TypeError to ValueError
    - changed range(len()) to enumerate()
    - changed error's strings to f-string
    - implemented without type()
    - add euclidean's explanation
    
    * apply feedback
    
    - deleted try/catch in euclidean
    - added error tests
    - name change(value -> value_array)
    
    * # doctest: +NORMALIZE_WHITESPACE
    
    * Update machine_learning/similarity_search.py
    
    * placate flake8
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    SteveKimSR and cclauss committed Nov 13, 2020
  2. add crawl_google_scholar_citation.py (#3879)

    * add crawl_google_scholar_citation.py
    
    * pass flack8
    
    * pass isort
    
    * pass isort
    
    * change comment in main
    
    * modify main code
    
    * delete file
    
    * change how to build url
    
    * add a key 'hl' in params dict
    
    * Update crawl_google_scholar_citation.py
    
    * Create crawl_google_results.py
    
    * codespell: Mater
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    boyuuuun and cclauss committed Nov 13, 2020

Commits on Nov 11, 2020

  1. Add Quantum Full Adder circuit for classical integers (#2954)

    * requirements: add qiskit
    
    major library required for quantum computing
    
    * quantum: add quantum ripple adder implementation
    
    right now we are essentially performing the same task as a classic ripple adder
    
    Signed-off-by: rupansh-arch <rupanshsekar@hotmail.com>
    rupansh committed Nov 11, 2020
  2. Peak of unimodal list DNC algorithm (#3691)

    * Peak of unimodal list DNC algorithm
    
    * fix black formatting issues
    
    * add doctest testing
    
    * make file black compliant
    choyiny committed Nov 11, 2020
  3. Reduce complexity linear_discriminant_analysis. (#2452)

    * Reduce complexity linear_discriminant_analysis.
    
    * Fix whitespace
    
    * Update machine_learning/linear_discriminant_analysis.py
    
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    
    * fixup! Format Python code with psf/black push
    
    * Fix format to surpass pre-commit tests
    
    * updating DIRECTORY.md
    
    * Update machine_learning/linear_discriminant_analysis.py
    
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    
    * fixup! Format Python code with psf/black push
    
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    3 people committed Nov 11, 2020

Commits on Nov 10, 2020

  1. Add molecular_chemistry.py (#2944)

    * Create molecular_chemistry.py
    
    * round up outputs
    
    * Remove floating point
    
    * Add Wikipedia references
    
    * fixup! Format Python code with psf/black push
    
    * Add Conversions/Molecular Chemistry
    
    * updating DIRECTORY.md
    
    * Update molecular_chemistry.py
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
    3 people committed Nov 10, 2020

Commits on Nov 8, 2020

  1. DPLL algorithm (#3866)

    * DPLL algorithm
    
    * Corrections complete
    
    * Formatting
    
    * Codespell hook
    
    * Corrections part 2
    
    * Corrections v2
    
    * Corrections v3
    
    * Update and rename dpll.py to davis–putnam–logemann–loveland.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    Shivanirudh and cclauss committed Nov 8, 2020
  2. Add config details for the stale action (#3870)

    dhruvmanila committed Nov 8, 2020
  3. Update graphs/graph_list.py (#3813)

    - update naming style to snake_case
    - add type hints
    taseikyo committed Nov 8, 2020
  4. Add project euler problem 50 (#3016)

    * Add project euler problem 50
    
    * Apply format changes
    
    * Descriptive function/parameter name and type hints
    
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    Hyftar and dhruvmanila committed Nov 8, 2020

Commits on Nov 6, 2020

  1. Fix handling of non ascii characters in swap case (fixes: #3847) (#3848)

    * #3847 fix handling of non-ASCII characters in swap_case
    
    * #3847 remove unused regex
    
    * Fix formatting (with black) Fixes: #3847
    
    * Add type hints for `swap_case` function
    
    Co-authored-by: Frank Schmitt <frankschmitt@gmx.de>
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    3 people committed Nov 6, 2020
Older
You can’t perform that action at this time.