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 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
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
The Python translation is getting warnings, too:
/workspace/default/preloaded.py:34: FutureWarning: Possible nested set at position 1
parse(re.finditer(f'[[\]]|[^[\]]+',solution))
Looks like f-strings aren't needed here, and
re.finditer(r'\\|[^\\]+'), solution)
will do what the above code seems to be trying to do.This comment is hidden because it contains spoiler information about the solution
Nice...that was quick!!
The JS translation is getting a ton of "assertSimilar is deprecated, use assert.deepEqual" warnings on stderr. It's not critical, but should be fixed to avoid confusing beginners.
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...