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.
@Tanvir47 no hard feelings!
If you really want to improve, I would suggest taking courses (lots of good stuff is available online free of charge), reading the documentation and technical literature, and most importantly - trying out the new concepts you have just learned by making projects.
If you're really interested in making efficient code, you should check out a Data Structures and Algorithms (DSA) course. I'm sorry, I can't give you any actual recommendations on those - most of the stuff I used and loved is in my native tongue.
By the way, both your solution and natro23's has the same time complexity, O(n).
im a teen
whats the best way to reach higher levels then have been using website sometimes for past 2 weeks i have reached almost 1.1k honor
That's bad advice to be honest. You don't become a "pro" by asking AI to do stuff for you, in my opinion, LLMs only ruin your training.
no idea tbh i dont remember started learning python and coding prob 2 weeks ago max
Hi, thanks for your comment. I'll keep it in mind for the future.
ye bro, but it's not efficient enough
bro just don't post code without a spoiler flag
i added the flag to your comment yo