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.
Really enjoyed this kata! It’s a neat way to explore splitting arrays based on conditions—simple, elegant, and thought-provoking. Thanks for creating it!
Thanks for this kata! 🙌
Really enjoyed how clean and focused the challenge was —
simple idea, but it pushes you to think carefully about edge cases.
Appreciate the neat design!
Finally, a kata that I managed to solve like everyone else! Now I feel Human.
lol vim is great
im 2 years late, but idk this might help someone.
string has indexes just like list (watch tutorials on these concepts!!). so for example i have this word x = 'hello', so indexes start with 0 unless otherwise specified. x[0] = h, x[1] = e, x[2] = l, x[3] = l, x[4] = o
welp there goes my for loop using range :')
double ditto :)
Thanks for this kata! It was a fun way to practice generating HTML dynamically and reminded me how useful small helper functions can be for templating. Really enjoyed it!
He is just like me
Very clever! Good catch that you didn't need to translate '456', as their position remains the same.
This is technically best practice, not top one
This comment is hidden because it contains spoiler information about the solution
I feel this solution is better with O(n) time complexity. The with sum, min, and max function would mean O(3n).
very concise solution. however it takes 2 * len(arr).
My code works for both, so I see no harm in accounting for more cases.
Loading more items...