-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Updated maths/number_of_digits.py #2221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added two more methods!
Hey @vasugamdha, TravisCI finished with status TravisBuddy Request Identifier: 847ae9e0-cb88-11ea-96be-d1d226963d5e |
@cclauss I don't know why my PR is failing TravisCI checks. Please suggest some changes that need to be implemented to pass the checks. @TravisBuddy |
Hey @vasugamdha, TravisCI finished with status TravisBuddy Request Identifier: 09501ee0-cbe0-11ea-acda-6fc69b852bf0 |
Unfortunately, I see no benchmark code. |
I haven't written benchmark code, as the function , I defined ( |
What proof do you have for those theoretical statements without benchmarking them with the same data? |
Hey @vasugamdha, TravisCI finished with status TravisBuddy Request Identifier: 2b156200-cf01-11ea-9502-ed86ad10d0d8 |
Hey @vasugamdha, TravisCI finished with status TravisBuddy Request Identifier: 59091e10-cf04-11ea-9502-ed86ad10d0d8 |
Travis tests have failedHey @vasugamdha, TravisBuddy Request Identifier: bcddb020-cf06-11ea-9502-ed86ad10d0d8 |
First comment update!!Added two more methods!
Here is the output of the benchmark code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cclauss Please review it now!
Hey @vasugamdha, TravisCI finished with status TravisBuddy Request Identifier: d95a44a0-cf26-11ea-9502-ed86ad10d0d8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive!!!
* Updated number_of_digits.py Added two more methods! * Update number_of_digits.py * Update number_of_digits.py * Added benchmarks! * Update number_of_digits.py * Update number_of_digits.py * Update number_of_digits.py * Update number_of_digits.py * Update number_of_digits.py * Update number_of_digits.py * Update number_of_digits.py
Added two more methods!
Fixes: #2220
I have added 2 methods for
maths/number_of_digits.py
:num_digits2()
: Also an O(n) algorithm approach.num_digits_fast()
: An O(1) algorithm for counting the number of digitsChecklist:
Fixes: #{$ISSUE_NO}
.closes #2220