Updated maths/number_of_digits.py#2221
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. |
vasugamdha
left a comment
There was a problem hiding this comment.
@cclauss Please review it now!
|
Hey @vasugamdha, TravisCI finished with status TravisBuddy Request Identifier: d95a44a0-cf26-11ea-9502-ed86ad10d0d8 |
* 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: #2220I 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