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.
This comment is hidden because it contains spoiler information about the solution
I had to scroll down a bazillion solutions to find someone else who bothered to solve in O(log n) time, o(1) space. Good job!
I wonder whether sorting the set and using bisect.bisect_left to find the endpoints of the numbers in
[a,b)
would pay off? It was only a 7 kyu problem, so I skipped that part.This comment is hidden because it contains spoiler information about the solution
I thought your code is similar to mine.
Fixed by avermakov
Ruby now has sample tests (added some time ago)
I totally agree with OP. The description sucks. Guessing your way out of a bad description does not count as a special required skill on the part of the solver, but of an obnoxious attitude of the author.
I solved in Ruby, which is where the broken test case is, but the "guessed degrees" part applies to all languages.
This comment is hidden because it contains spoiler information about the solution
Can you specify which language this occurs in please?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The restrictins in Python are ridiculous and don't allow for much variety in or elegant solutions.
This comment is hidden because it contains spoiler information about the solution
Loading more items...