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.
OwO ?!!!!!
1..n + 1
can be written as1..=n
This comment is hidden because it contains spoiler information about the solution
Ahh this is what I was trying to do. (until I found I could cheat with x.is_power_of_two())
Javascript times out if you return literally nothing.
Getting the same problem here.
Similar to what I did but PLEASE PLEASE PLASE don't use eval in production.
i agree, for example 1e16+1 returns true when it shouldn't
From my understanding of python, when you remove an item from a list, python moves every number down. If the smallest number on the list is the one at index 0 then you have to move the whole list. It will still be in linear time, but it would be more efficient if you follow the directions and don't modify the list.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution