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.
Your code has nested loops. This one uses only single loops. In a nested loop, you're performing
O(n^2)
operations.how did my two loops not work and this did?
it has been a minute, but I'm pretty sure my intent here was to make it work in O(n) time.
Man, time passes fast haha
whaaat?
haha, it's too difficult