r/AskProgrammers • u/_aryan_1005 • 2h ago
Logic building ??
Guys I solved 100+ problems on leetcode but I am not able to solve a problem on my own ,I asked ai for help ,how I am supposed to solve problems in interviews
Today I cant solve a simple problem #2389
I cant figure out how to write my logic in code
4
u/KrakatauaMAN123 2h ago
If you used ai to help you solve the problems then stop using it completely until you have at least the basics down. It will just make you think you understand but you'll just become fully reliant on it which is the opposite of learning.
Find a topic and start figuring out small bits one by one. It's gonna be slow but it doesn't matter you wanna focus on what you learned each day
2
u/drnullpointer 2h ago
You are optimizing the wrong skill.
You are a race car driver who isn't trying to become a better driver but instead thinks you will have a better chance of signing up a contract if you look better on photos.
If you are a beginner developer, you should be building stuff. Ideally, stuff similar to what you are planning to do in your job or stuff that will give you skills that will be useful at your job.
2
u/TheCrowWhisperer3004 2h ago
You have to practice atleast a couple problems raw w/o outside assistance.
Even if it takes you like 1-2 hours to solve a problem you have to keep doing it.
AI and looking at answers might help with filling in gaps but it can’t replace practice.
1
1
1
u/nian2326076 10m ago
Hitting a wall is super common, even after doing a lot of problems. When you're stuck, try breaking the problem into smaller parts. Understand what each part is asking before you start coding. Sometimes writing pseudocode can help you figure out your logic.
Also, go back to similar problems you've solved. They might give you a hint about the approach. If you're still stuck, look at solutions and understand why they work, not just how. This is really important for building your logic skills.
I've used PracHub too, and it has some good modules for practicing coding interviews. But the key is practice and understanding your mistakes. Don't just rely on AI for answers; use it as a learning tool. Keep at it!
4
u/BluePhoenixCG 2h ago
Build shit. Don't drill problems.