Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
degree of the deuce got to dart
Translation Dart
536870912 is 2^29: www.google.com/search?q=2%5E29
There is an issue with this test number 536870912. The output of the log is 29.0000004 which should equate to false but expects true.
Damn it, you're right. I feel like an idiot now... I tried verifying that it really equals this value by dividing it by 2^85, and the calculator returned 1. I didn't think about how it must have been rounded up or down, because it's such a large number. Must have been the issue with my code too, so thanks for the help!
Wait, how can an odd number be a power of two
Some of the tests with large numbers are incorrect. For example 38685626227668133590597629 is exactly 2^85, yet the test expects False to be returned
This comment is hidden because it contains spoiler information about the solution
Can you please create a C++ version of this kata?
anyone ˶ᵔ ᵕ ᵔ˶
add new c# version with log2 plz (ㅅ´ ˘ `)
Nice Kata - appears simple but the large numbers cause some great alternative thinking on the python solutions. Thank you
Can't get past the high numbers! Timing out
Same
Yeah, python get run time error
Python is too slow for this kata
Loading more items...