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.
ok, that's your opinion, facts tell a different story on performance...
Python's standard library functions are implemented in C, so not only is this solution cleaner, it's also significantly faster, than your reinvent-the-wheel solution.
Requirements should be changed tbh, it's pretty stupid that you're expected to pad when unneccessary.
This comment is hidden because it contains spoiler information about the solution
we think same xd..... simplicity is best
Ohhhh...
This comment is hidden because it contains spoiler information about the solution
C# Translation
Lua translation!
Approved
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
python new test frameworks
for anyone solving this currently and confused by this edgecase: The solver appears to expect the output array to grow by at least 2 on each iteration, so if your result is an empty array after trimming leading and trailing zeroes you can create a new array of list.length + 2 and fill it with zeroes.
thought this will be voted most... go for the shortest version for the sake of it... damn..
Loading more items...