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 solution does not mutate the input array.
"Do not mutate the input array" lol:D
cheating... 💔
this solution is more readable than the other one.
Very good solution i feel so stupid when i made more complicated i spent hours on this kata xD
Yeah that is the Optimal solution you are correct berky
This is kind of similar to mine only the computations are stored and only returned once, where as I return in each "if" block. Should I be aiming to only return once per function?
I still used "".join() thinking I was handling lists. but it works with strings too
closing then
this is brilliant brother
Bro, I try my best to come up with a solution using a couple of lines for every kata, and then there will be a guy like this whos one-liner code would look like:
return [the answer that you're looking for]
I truly feel like a noob :')
You don't need to do that actually, if the slice range doesn't exist, it just returns an empty string
This comment is hidden because it contains spoiler information about the solution
"(plus brackets, braces and chevrons) and even balancing characters that are identical"
This part of the description must be more specific
When i see test cases i do like that. But that should happen in this cases
a = [1, 2, 2, ,2, 3]
b = [2, 2]
result should be [1, 2, 3]?
Loading more items...