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.
good job! but i think u should make that a one-liner code, that'd be cool
the instructions specifically say the max value is one million, but i had the same exact concern/confusion reading this solution as you did. It took me a few seconds to realize why this still worked.
to truncate to 6 decimal places
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is a 5+ kyu for sure.
Try the sister kata https://www.codewars.com/kata/539a0e4d85e3425cb0000a88/ if you haven't done it. They look similar but are different; solving them will definitely make people learn more.
Yes, thanks, totally forgot about that. Regarding the comment, we need to remove O(log n) and we get O(n^2) time complexity.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...