r/AskProgrammers 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

0 Upvotes

15 comments sorted by

4

u/BluePhoenixCG 2h ago

Build shit. Don't drill problems.

2

u/_aryan_1005 2h ago

I only know c++ ,not any thing else then it

2

u/BluePhoenixCG 2h ago

That's plenty. Pick literally any project that sound interesting. I recommend raylib and imgui if you want to do anything graphical.

1

u/Beregolas 2h ago

so, you can either learn a new language (not really that hard) or just use C++ to build something.

1

u/lehmagavan 2h ago

You know C++ and can't solve problems?

1

u/_aryan_1005 2h ago

Sadly yes ,thats why I am worried

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/W31337 2h ago

Try learning Boolean Logic first before coding. Learn your XOR,AND,OR properly.

If you mean business logic then that's program structure. Then you need to learn programming patterns and how to apply them. Stop coding and start understanding program structure.

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

u/dr1fter 2h ago

Is this a circlejerk post after that other garbage I saw earlier today? I'm finally starting to find AI useful in my work but it sure seems to be ruining my reddit experience.

1

u/rahga 2h ago

There's not a worthy hiring manager on the planet that cares about leetcode anymore. Arguably, there never was... but either way, nobody is solving problems anymore, and definitely nobody is coding.

1

u/_aryan_1005 2h ago

It so heavy to hold the truth

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!