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.
Im quite shocked this naive solution worked haha.
Really cool solution. I love it. The empty list check was a choice i took on the edge case for the test. But using a single depth list is likely a much better choice as you can do checks like
if list
on the result.Current solution is rather ugly. As it makes too many lists with the
range(1, len(lst) + 1)
but i wasnt able to figure out anything better. Any help appreciated!ikr lololol
Yandere dev would be proud.