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.
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.
This comment is hidden because it contains spoiler information about the solution
to truncate to 6 decimal places
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