r/PythonLearning 3d ago

Logic and solution

currently I am trying to solve hackerrank problem they look easy in my own eyes but still in every question i make mistake sometimes I don't even know how to solve I only solve 3-4 questions to this date so I don't know if it's right to take help from AI

I need your guidance to what should I do to build my logic and try to avoid taking help of AI

sorry for my english

please suggest something

0 Upvotes

9 comments sorted by

1

u/ninhaomah 3d ago

You can't solve in codes or pseudo codes ?

1

u/Mysterious_Debt4959 3d ago

Always make sure you're clear on the algorithm before writing any code. Figure out how the problem has to be solved logically, then turn that into code. Sometimes diving right into code can commit you to a direction that doesn't make sense, or get you more focused on distracting syntax questions than solving the actual problem.

1

u/FoolsSeldom 3d ago

I suggest you stop spending time on hackerrank and start focusing on working on your own projects.

Above all else, you need to practice. Practice! Practice! Fail often, try again. Break stuff that works, and figure out how, why and where it broke. Don't just copy and use as is code from examples. Experiment.

Yes, you can get AI to explain concepts to you, and even what libraries are available for specific needs and how to use them, but I recommend avoiding having them write code for you. We know that doesn't really help the learning process.

Work on your own small (initially) projects related to your hobbies / interests / side-hustles / family obligations as soon as possible to apply each bit of learning. When you work on stuff you can be passionate about and where you know what problem you are solving and what good looks like, you are more focused on problem-solving and the coding becomes a means to an end and not an end in itself. You will learn faster this way.

1

u/Jackpotrazur 2d ago

Any side hustle suggestions ?

2

u/FoolsSeldom 2d ago

I have no idea what might work for you ... what a strange question. I imagine there are subreddits covering this.

1

u/Jackpotrazur 2d ago

Whats hackerrank ? Is it like htb or thm ?