Skip to content

Conversation

liuzhen153
Copy link
Owner

No description provided.

gattlin1 and others added 11 commits April 30, 2019 21:16
* Added an O(1) solution to problem 002

* Removed comments from sol3.py that were accidentally added to sol4.py
To avoid confusion all 'sorted' to 'ascending sorted' in comments
Current implementation is buggy and hard to read.

* Negative values were raising a TypeError due to `math.sqrt`
* 1 was considered prime, it is not.
* 2 was considered not prime, it is.

The implementation has been corrected to fix the bugs and to enhance
readability.

A docstring has been added with the definition of a prime number.

A complete test suite has been written, it tests the 10 first primes, a
negative value, 0, 1 and some not prime numbers.

closes #795
* Added page-rank algorithm implementation

* changed init variables
@liuzhen153 liuzhen153 merged commit d0f3150 into liuzhen153:master May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants