baibaixiaoya / Python 与 Fork 源项目一致

1. 09 11月, 2020 2 次提交
2. 08 11月, 2020 2 次提交
3. 07 11月, 2020 2 次提交
• Fix handling of non ascii characters in swap case (fixes: #3847) (#3848) · c0d88d7f
Frank Schmitt 提交于
```* #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: NFrank Schmitt <frankschmitt@gmx.de>
Co-authored-by: NDhruv Manilawala <dhruvmanila@gmail.com>```
• Add solution for Project Euler problem 123 (#3072) · c8db6a20
Ravi Kandasamy Sundaram 提交于
```Name: Prime square remainders

Let pn be the nth prime: 2, 3, 5, 7, 11, ..., and
let r be the remainder when (pn−1)^n + (pn+1)^n is divided by pn^2.

For example, when n = 3, p3 = 5, and 43 + 63 = 280 ≡ 5 mod 25.
The least value of n for which the remainder first exceeds 10^9 is 7037.

Find the least value of n for which the remainder first exceeds 10^10.

Reference: https://projecteuler.net/problem=123

reference: #2695
Co-authored-by: NRavi Kandasamy Sundaram <rkandasamysundaram@luxoft.com>```
4. 05 11月, 2020 1 次提交
5. 03 11月, 2020 4 次提交
• HACKTOBERFEST - Added solution to Euler 64. (#3706) · 29d0fbb0
Shikhar Rai 提交于
```* Added solution to Euler 64.

Added Python solution to Project Euler Problem 64.

* Update sol1.py

Made formatting changes as mentioned by pre-commit

* Update sol1.py

Minor changes to variable naming and function calling as mentioned by @ruppysuppy

* Update sol1.py

Changes to function call as mentioned by @cclauss```
• Added a solution for Project Euler Problem 203 "Squarefree Binomial Coefficients" (#3513) · ff00bfa0
Fernando Benjamín PÉREZ MAURERA 提交于
```* Added a solution for Project Euler Problem 203 (https://projecteuler.net/problem=203)

* Simplified loop that calculates the coefficients of the Pascal's Triangle. Changes based on review suggestion.

* Moved get_squared_primes_to_use function outside the get_squarefree function and fixed a failing doctest with the former.```
• kth order statistic divide and conquer algorithm (#3690) · eaa7ef45
Cho Yin Yong 提交于
```* kth order statistics divide and conquer algorithm

* fix PEP8 line too long error

* update order to be compliant to isort

* make file black compliant```
• Project Euler 206 Solution (#3829) · 61cb921d
Peter Yao 提交于
```* Readd Project Euler 206 solution for issue #2695, dupe of pull request #3042

* Add PE 206 to directory

* updating DIRECTORY.md
6. 02 11月, 2020 1 次提交
• Update infix to postfix (#3817) · 786b3243
ishellhub 提交于
```* add test to infix_to_postfix_conversion

* fixed pre-commit error

* fixed build error

* updating DIRECTORY.md
7. 01 11月, 2020 3 次提交
• Add solution to problem 74 (#3110) · d8f573c0
GGn0 提交于
```* Add solution to problem 74

* Fix typo

* Edit unnecessary comment

* Rename folder, add default params in solution()

* Rename file to solve conflicts

* Fix doctests```
Akash Kumar 提交于
```* Added solution to Project Euler problem 301

* Added newline to end of file

* Fixed formatting and tests

* Changed lossCount to loss_count

* Fixed default parameter value for solution

* Removed helper function and modified print stmt

* Fixed code formatting

* Optimized solution from O(n^2) to O(1) constant time

* Update sol1.py```
• Shortened code (#3855) · 1f650074
jbaenaxd 提交于
8. 31 10月, 2020 1 次提交
• Added decimal_isolate.py (#3700) · a5389899
Jake Gerber 提交于
```* Add files via upload

* Delete decimal_isolate.py

* Update decimal_isolate.py

* Update decimal_isolate.py

* Update decimal_isolate.py

* Update decimal_isolate.py

* Update decimal_isolate.py

* Delete decimal_isolate.py

* Update maths/decimal_isolate.py
Co-authored-by: NChristian Clauss <cclauss@me.com>

* Update decimal_isolate.py

* Update decimal_isolate.py

* Update decimal_isolate.py

* Update decimal_isolate.py
Co-authored-by: NChristian Clauss <cclauss@me.com>```
9. 30 10月, 2020 1 次提交
• No issues so far (#3835) · c83ecacc
ParamonPlay 提交于
```* Simplify GitHub Actions

* Update stale.yml
Co-authored-by: NChristian Clauss <cclauss@me.com>```
10. 29 10月, 2020 9 次提交
• Balanced parentheses (#3768) · a03b3f76
ishellhub 提交于
```* Fixed balanced_parentheses.py

* fixed pre-commit

* eliminate is_paired

* remove unused line

* updating DIRECTORY.md

* Update data_structures/stacks/balanced_parentheses.py
Co-authored-by: NChristian Clauss <cclauss@me.com>

* Update data_structures/stacks/balanced_parentheses.py
Co-authored-by: NChristian Clauss <cclauss@me.com>
Co-authored-by: NChristian Clauss <cclauss@me.com>```
• math/greatest_common_divisor: add support for negative numbers (#2628) · a6831c89
Joyce 提交于
```* add type hints to math/gcd

* math/gcd - run black formatter

* math/gcd: remove manual doctest

* add correction to gcd of negative numbers

* add more doctest in iterative gcd```
• Add first solution for Project Euler Problem 207 (#3522) · 99adac0e
PetitNigaud 提交于
```* add solution to Project Euler problem 206

* Add solution to Project Euler problem 205

* updating DIRECTORY.md

* updating DIRECTORY.md

* Revert "Add solution to Project Euler problem 205"

This reverts commit 64e3d36cab2b68630b73a217c9ba455202d85cbb.

* Revert "add solution to Project Euler problem 206"

* add solution for project euler problem 207

* updating DIRECTORY.md

* add type hint for output of helper function

* Correct default parameter value in solution

* use descriptive variable names and remove problem solution from doctest Fixes: #2695
Co-authored-by: Nnico <esistegal-aber@gmx.de>
• Added solution for Project Euler problem 87. (#3141) · 9971f981
fpringle 提交于
```* Added solution for Project Euler problem 87. Fixes: #2695

* Update docstring and 0-padding in directory name. Reference: #3256```
Marcos Vinicius 提交于
```* adding doctest to radix_sort.py file

* fixup! Format Python code with psf/black push

* fixup! Format Python code with psf/black push

* line

* fix tests
Co-authored-by: NJohn Law <johnlaw.po@gmail.com>```
• Hacktoberfest: Added first solution to Project Euler problem 58 (#3599) · e172a8b0
sharmapulkit04 提交于
```* Added solution to problem 58

* Update sol1.py
Co-authored-by: NJohn Law <johnlaw.po@gmail.com>```
• Implement the melkman anlgorithm for computing convex hulls (#2916) · e20895a4
Simon Lammer 提交于
```* Implement the melkman anlgorithm for computing convex hulls

* Format melkman algorithm code

* Add type hints to functions

* Fix build errors```
• Add IBM Qiskit References (#2561) · fd7da5ff
Abhinand C 提交于
```* Added IBM Qiskit References

* space
Co-authored-by: NJohn Law <johnlaw.po@gmail.com>```
• Update graphs/depth_first_search_2.py (#3799) · 4fa8c9d4
Lewis Tian 提交于
```- update naming style to snake_case
11. 27 10月, 2020 1 次提交
• Added reverse_letters.py (#3730) · aebf9bda
Snimerjot Singh 提交于
```* Added reverse_letters.py

* Update strings/reverse_letters.py
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>```
12. 26 10月, 2020 7 次提交
• Fix Project Euler Readme (#3754) · a5aef147
John Law 提交于
```* Fix Project Euler Readme

* updating DIRECTORY.md

* Update CONTRIBUTING.md

* spacing
• Added two pointer solution for two sum problem (#3468) · 95db17ce
Shabab Karim 提交于
• fixes: #2969 (#3756) · 9eefe681
Gaurav Chaudhari 提交于
`Signed-off-by: NGaurav Chaudhari <capristar02@gmail.com>`
• Made improvements to combinations.py (#3681) · 8f81c460
Rolv Apneseth 提交于
```* Made improvements to combinations.py

* Update maths/combinations.py
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>

* Function now raises an error when given invalid input

* Update maths/combinations.py
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>```
• Update CONTRIBUTING.md (#3698) · 47199c12
xcodz-dot 提交于
```* Update CONTRIBUTING.md

Needed to tell people so we do not receive any duplicate solution. Do not count this as hactoberfest-accepted

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

typo fix
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>

* Update CONTRIBUTING.md
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
Co-authored-by: NJohn Law <johnlaw.po@gmail.com>```
• Update lucas_series.py to include another method (#3620) · b93a9d8e
Kushagra Bansal 提交于
```* Update lucas_series.py

Added another method to calculate lucas_numbers

* Fix pre-commit error

* Update lucas_series.py

* Update lucas_series.py

* Update lucas_series.py

* Update lucas_series.py```
• Update ceil and floor function (#3710) · 81b82bea
ishellhub 提交于
```* Update ceil and floor function

* updating DIRECTORY.md
13. 25 10月, 2020 5 次提交
• Add single bit manipulation operations. (#3284) · 1b5c1b83
Phil Bazun 提交于
```* Add single bit manipuation operations.

* fixup! Add single bit manipuation operations.

* Change wording.```
• Add solution to Project Euler problem 81 (#3408) · 3a191d9a
Ayoub Chegraoui 提交于
```* Add solution to problem 81 - project euler

* Update project_euler/problem_081/sol1.py
Co-authored-by: NChristian Clauss <cclauss@me.com>

* Update project_euler/problem_081/sol1.py
Co-authored-by: NChristian Clauss <cclauss@me.com>
Co-authored-by: NChristian Clauss <cclauss@me.com>```
• Fix style of the first ten solutions for Project Euler (#3242) · 98e9d6bd
Michael D 提交于
```* Fix style of the first ten solutions for Project Euler

or similar
- Fix docstrings to be properly multilined
- Add doctests where they were missing
- Remove doctests that test for the correct solution
- fix obvious spelling or grammar mistakes in comments and
exception messages
- Fix line endings to be UNIX. This makes two of the files seem
to have changed completely
- no functional changes in any of the solutions were done
(except for the spelling fixes mentioned above)

* Fix docstrings and main function as per Style Guide```
• Add 0-1-bfs. (#3285) · 5be77f33
Phil Bazun 提交于
```* Add 0-1-bfs.

* Check edge weights.

* Check edge vertecies.```
• removed extra line to match rest of file (#3528) · 89e8dbff
Sam Holst 提交于
14. 24 10月, 2020 1 次提交
• Forecast (#3219) · 12c69800
Nandiya 提交于
```* add forecasting code

* sort import

* sort import fix

* fixing black

* sort requirement

* optimize code

* try with limited data

* sort again

* sort fix

* sort fix

* delete warning and black

* use black

* add more hints to describe

* finding whitespace

* fixing doctest

* delete

* revert back

* revert back

* revert back again

* revert back again

* revert back again

* try trimming whitespace

* fixing reviews

* deleting all the space

* fixing the build

* delete x

* add description for safety checker

* deleting subscription integer

* fix docthint

* make def to use function parameters and return values

* make def to use function parameters and return values

* type hints on data safety checker

* optimize code

* Update run.py
Co-authored-by: NFVFYK3GEHV22 <fvfyk3gehv22@FVFYK3GEHV22s-MacBook-Pro.local>
Co-authored-by: NChristian Clauss <cclauss@me.com>```