Skip to content
Permalink
master
Switch branches/tags

Commits on Jul 6, 2022

  1. Fix doctests and builds in various files (#6233)

    * Fix doctest in hamming distance
    
    * add line break
    
    * try to fix quantum_riper_adder
    
    * fix floating point build
    poyea committed Jul 6, 2022
  2. Add hamming distance (#6194)

    * Add hamming distance
    
    * Fix doctest
    
    * Refactor
    
    * Raise ValueError when string lengths are different
    saybarsnazlica committed Jul 6, 2022

Commits on Jul 3, 2022

Commits on Jun 23, 2022

  1. Wave (#6061)

    * Added censor function
    
    * Added censor code
    
    * Added comments to the code
    
    * modified censor function
    
    * added decrypt function
    
    * added cypher and decypher functions, deleted censor and decrypt functions
    
    * Deleted decrypt.py
    
    * Deleted censor.py
    
    * edited the crypt and decrypt files
    
    * Update cypher_txt.py
    
    * Remove the endline in cypher.py
    
    * Removed the print at the end of decypher.py
    
    * added 4 new algorithms
    
    * added tests to the four files
    
    * added type hints for the function variables
    
    * Deleted decode message
    
    * Deleted code message
    
    * Welford average algorithm
    
    * added average welford algorithm
    
    * is_narcissistic added
    
    * added a descriptive name
    
    * added max_sectors algorithm
    
    * added find_unique
    
    * added wave algorithm
    
    * deleting average_welford [ in the wrong pr ]
    
    * deleting is_narcissistic [ is in the wrong pr ]
    
    * deleting max_sectors [ is in the wrong pr ]
    
    * deleting find_unique [ is in the wrong pr ]
    
    * deleting censor [ is in the wrong pr ]
    
    * deleting decrypt [ is in the wrong pr ]
    
    * fixed wave.py 
    
    fixed indentation and followed the bots reccomendations
    
    * fixed wave.py again
    
    * fixing wave.py for the third time.
    
    * fixing wave.py
    
    * merging strings/wave.py
    
    merging the suggestion
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    meg-1 and poyea committed Jun 23, 2022

Commits on Jun 22, 2022

  1. add highest_response_ratio_next.py (#6183)

    * add highest_response_ratio_next.py
    
    * Update highest_response_ratio_next.py
    
    * Update highest_response_ratio_next.py
    yulmam committed Jun 22, 2022
  2. Update basic_maths.py (#6017)

    nivid26 committed Jun 22, 2022

Commits on Jun 6, 2022

  1. Create non_preemptive_shortest_job_first.py (#6169)

    * Create non_preemptive_shortest_job_first.py
    
    * 파일 위치 변경
    
    * Delete non_preemptive_shortest_job_first.py
    
    * delete Korean comments
    
    * change comments, & to and, type annotation
    
    * type annotation
    
    * delete unnecessary comment
    Bynnn committed Jun 6, 2022

Commits on Jun 4, 2022

  1. Add Multi-Level-Feedback-Queue scheduling algorithm (#6165)

    * Add Multi-Level-Feedback-Queue scheduling algorithm
    
    * fix type hint annotation for pre-commit
    
    * Update scheduling/multi_level_feedback_queue.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    
    * Update scheduling/multi_level_feedback_queue.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    
    * Update scheduling/multi_level_feedback_queue.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    
    * Update scheduling/multi_level_feedback_queue.py
    
    * Update scheduling/multi_level_feedback_queue.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    dongjji and poyea committed Jun 4, 2022

Commits on May 26, 2022

  1. Add Project Euler 68 Solution (#5552)

    * updating DIRECTORY.md
    
    * Project Euler 68 Solution
    
    * updating DIRECTORY.md
    
    * Project Euler 68 Fixed doctests, now at 93% coverage
    
    * Update sol1.py
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    Co-authored-by: kugiyasan <kugiyasan@users.noreply.github.com>
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    4 people committed May 26, 2022

Commits on May 25, 2022

  1. Add minmum path sum (#5882)

    * commit on 'shortest_path_sum'
    
    * minimum_path_sum updated
    
    * commit to 'minimum_path_sum'
    
    * added description to minimum_path_sum
    
    * bot requirements fixed for
    
    * Update minimum_path_sum.py
    
    * Update minimum_path_sum.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    Rainethhh and poyea committed May 25, 2022

Commits on May 24, 2022

  1. Improve Project Euler problem 145 solution 1 (#6141)

    * updating DIRECTORY.md
    
    * Improve solution
    
    * updating DIRECTORY.md
    
    * Fix
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    MaximSmolskiy and github-actions committed May 24, 2022
  2. Add Microsoft Excel Column Title to Column Number Conversion (#4849)

    * Added excel column title to number algorithm as part of conversions
    
    * Renamed file to better reflect algorithm function
    
    * Removed duplicate file
    
    * Update excel_title_to_column.py
    
    * Update excel_title_to_column.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    banaboi and poyea committed May 24, 2022

Commits on May 21, 2022

  1. Fix iter_merge_sort bug (#6153)

    * Fixed bug where array length 2 can't be sorted
    
    * Add MCC and DU path test
    
    Add test to conversions/octal_to_decimal.py and sorts\iterative_merge_sort.py
    
    * ""
    
    * Update octal_to_decimal.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    dangbb and poyea committed May 21, 2022

Commits on May 20, 2022

  1. Fix typo in word_occurrence.py (#6154)

    word_occurence -> word_occurrence
    eltociear committed May 20, 2022

Commits on May 16, 2022

  1. Lorenz transformation - physics (#6097)

    * Add files via upload
    
    * Changed print to f-string
    
    Also printed out results in a math notation
    
    * Add files via upload
    
    * Fixes: #4710 provided return type
    
    * File exists in another pull request
    
    * imported radians from math
    
    * Updated file according to pre-commit test
    
    * Updated file
    
    * Updated gamma
    
    * Deleted duplicate file
    
    * removed pi
    
    * reversed tests
    
    * Fixed angle condition
    
    * Modified prints to f-string
    
    * Update horizontal_projectile_motion.py
    
    * Update horizontal_projectile_motion.py
    
    * Fixes #4710 added exceptions and tests
    
    * Added float tests
    
    * Fixed type annotations
    
    * Fixed last annotation
    
    * Fixed annotations
    
    * fixed format
    
    * Revert "fixed format"
    
    This reverts commit 5b0249a.
    
    Undo changes
    @wq
    
    * Revert "Fixed annotations"
    
    This reverts commit c37bb95.
    
    * Revert "Fixed last annotation"
    
    This reverts commit e3678fd.
    
    * Revert "Fixed type annotations"
    
    This reverts commit 3f2b238.
    
    * Revert to 4e2fcaf
    
    * Fixing errors found during pre-commit
    
    * Added gauss law
    
    * Implemented Lorenz tranformation with four vector
    
    * pre-commit fixes
    
    * flake8 fixes
    
    * More flake8 fixes
    
    * Added blank space for flake8
    
    * Added reference
    
    * Trailing whitespace fix
    
    * Replaced argument u with velocity (descriptive name fix)
    
    * Added tests for functions + moved velocity check to beta function
    
    * Modified condition to 'not symbolic' in the transform function
    
    * trainling whitespace fix
    
    * Added type hint for 'smybolic' argument in transform function
    
    * Changed reference to avoid pre-commit fails because of spelling issue related to the URL
    
    * Added tests for gamma and transformation_matrix functions
    
    * Fixed transformation_matrix tests
    
    * Fixed tests on beta and gamma functions
    avivfaraj committed May 16, 2022
  2. Add sin function to maths (#5949)

    * Add sin function to /maths.
    
    * Fix typo in /maths/sin.py
    
    * Format sin.py to meet the new black rules.
    
    * Some improvements.
    
    * Fix a formating error.
    zer0-x committed May 16, 2022

Commits on May 13, 2022

  1. Improve code on f-strings and brevity (#6126)

    * Update strassen_matrix_multiplication.py
    
    * Update matrix_operation.py
    
    * Update enigma_machine2.py
    
    * Update enigma_machine.py
    
    * Update enigma_machine2.py
    
    * Update rod_cutting.py
    
    * Update external_sort.py
    
    * Update sol1.py
    
    * Update hill_cipher.py
    
    * Update prime_numbers.py
    
    * Update integration_by_simpson_approx.py
    Pysics committed May 13, 2022
  2. Add missing type annotations for strings directory (#5817)

    * Type annotations for `strings/autocomplete_using_trie.py`
    
    * Update autocomplete_using_trie.py
    
    * Update detecting_english_programmatically.py
    
    * Update detecting_english_programmatically.py
    
    * Update frequency_finder.py
    
    * Update frequency_finder.py
    
    * Update frequency_finder.py
    
    * Update word_occurrence.py
    
    * Update frequency_finder.py
    
    * Update z_function.py
    
    * Update z_function.py
    
    * Update frequency_finder.py
    Rohanrbharadwaj committed May 13, 2022

Commits on May 12, 2022

  1. Improve Project Euler problem 074 solution 2 (#5803)

    * Fix statement
    
    * Improve solution
    
    * Fix
    
    * Add tests
    MaximSmolskiy committed May 12, 2022
  2. fix mypy annotations for arithmetic_analysis (#6040)

    * fixed mypy annotations for arithmetic_analysis
    
    * shortened numpy references
    Leoriem-code committed May 12, 2022
  3. Fix typos (#6127)

    Pysics committed May 12, 2022
  4. Fix some typos in solution 1 of euler 686 (#6112)

    While reading this code I noticed some typos in the doc strings and wanted to fix them.
    KerimovEmil committed May 12, 2022

Commits on May 2, 2022

  1. Add the Horn-Schunck algorithm (#5333)

    * Added implementation of the Horn-Schunck algorithm
    
    * Cleaner variable names
    
    * added doctests
    
    * Fix doctest
    
    * Update horn_schunck.py
    
    * Update horn_schunck.py
    
    * Update horn_schunck.py
    
    * Update horn_schunck.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    skief and poyea committed May 2, 2022
  2. Add sol for P104 Project Euler (#5257)

    * Hacktoberfest: added sol for P104 Project Euler
    
    * bot requests resolved
    
    * pre-commit
    
    * Update sol.py
    
    * Update sol.py
    
    * remove trailing zeroes
    
    * Update sol.py
    
    * Update sol.py
    
    * Update sol.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    Enkryp and poyea committed May 2, 2022
  3. Add solution to Problem 145 of Project Euler (#5464)

    * Solution to Problem 145 of Project Euler
    
    * Provided more descriptive filename
    
    * Update sol1.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    VinWare and poyea committed May 2, 2022

Commits on May 1, 2022

  1. fix black at prefix string (#6122)

    * fix black at prefix string
    
    * Type -> type
    
    * Type unused
    poyea committed May 1, 2022
  2. Fix some typos (#6113)

    * Fix some typos.
    
    * Update volume.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    Yulv-git and poyea committed May 1, 2022
  3. Add prefix conversions for strings (#5453)

    * First commit for add_prefix_conversion
    
    * Class names in CamelCase, str.format() to f-string
    
    * Fixed following pre-commit guidelines
    
    * solved issues with mypy and enum.Enum
    
    * Rename add_prefix_conversion.py to prefix_conversions_string.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    manueldilullo and poyea committed May 1, 2022

Commits on Apr 28, 2022

  1. docs: Fix quicksort & binary tree traversal doc (#4878)

    * Fix quicksort doc
    
    * add binary tree traversals doc
    
    * Add link to the reference
    
    * Fix job
    
    * Change url
    
    * Update binary_tree_traversals.md
    
    * Update normal_distribution_quick_sort.md
    
    * Update normal_distribution_quick_sort.md
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    varopxndx and poyea committed Apr 28, 2022

Commits on Apr 8, 2022

  1. Remove duplicate is_prime related functions (#5892)

    * Fixes (#5434)
    
    * Update ciphers.rabin_miller.py
             maths.miller_rabin.py
    
    * Fixing ERROR maths/miller_rabin.py - ModuleNotFoundError and changing project_euler's isPrime to is_prime function names
    
    * Update sol1.py
    
    * fix: try to change to list
    
    * fix pre-commit
    
    * fix capital letters
    
    * Update miller_rabin.py
    
    * Update rabin_miller.py
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    paulosgf and poyea committed Apr 8, 2022

Commits on Apr 4, 2022

  1. horizontal motion code physics (#4710)

    * Add files via upload
    
    * Changed print to f-string
    
    Also printed out results in a math notation
    
    * Add files via upload
    
    * Fixes: #4710 provided return type
    
    * File exists in another pull request
    
    * imported radians from math
    
    * Updated file according to pre-commit test
    
    * Updated file
    
    * Updated gamma
    
    * Deleted duplicate file
    
    * removed pi
    
    * reversed tests
    
    * Fixed angle condition
    
    * Modified prints to f-string
    
    * Update horizontal_projectile_motion.py
    
    * Update horizontal_projectile_motion.py
    
    * Fixes #4710 added exceptions and tests
    
    * Added float tests
    
    * Fixed type annotations
    
    * Fixed last annotation
    
    * Fixed annotations
    
    * fixed format
    
    * Revert "fixed format"
    
    This reverts commit 5b0249a.
    
    Undo changes
    @wq
    
    * Revert "Fixed annotations"
    
    This reverts commit c37bb95.
    
    * Revert "Fixed last annotation"
    
    This reverts commit e3678fd.
    
    * Revert "Fixed type annotations"
    
    This reverts commit 3f2b238.
    
    * Revert to 4e2fcaf
    
    * Fixing errors found during pre-commit
    avivfaraj committed Apr 4, 2022
  2. feat: add strings/ngram algorithm (#6074)

    * feat: added ngram algorithm
    * fix(test): use `math.isclose` to match floating point numbers approximately
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
    3 people committed Apr 4, 2022
Older