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).
Me too..That's why i asked for age and location buddy
im a teen
avermakov: Its actually a great advice cause as a beginner you wont be able to everything on your own that is the main reason of solving problems in codewars..To learn and AI can not only teach you stuff, it can make your code more efficient and you can practice with AI as well. I am not saying just to copy and paste everything to solve problem, I am saying to learn new concepts from it if and only if you are stuck..Btw i know that you are really good sir.No disrespect i am a newbie as well or pre intermidiate coder so dont get angry
Just complete katas to earn honor...btw whats ur age and where are you from?
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.
Dont worry bro.Keep practicing and you will be a master in no time.I am new too but ranked up in just 5 days.Use chatgpt for learning new things and optimizing code whenever you are stuck and belive me you will learn a lot and become a pro.I wish you the best of luck and dont stop.
no idea tbh i dont remember started learning python and coding prob 2 weeks ago max
Inefficient. Why adding ans variable when you can return k?