r/CodingForBeginners • • 3d ago

Quick Question

How much time must spent for solve eolymp or leetcode problems

0 Upvotes

13 comments sorted by

View all comments

Show parent comment

-2

u/ISAISMAK 3d ago

Asking ai good or try solve myself?

4

u/xarop_pa_toss 3d ago

Using AI to generate any sort of code for leetcode problems is basically cheating. It actually is cheating in 99% of interviews.

The hard part is not writing the code but coming up with an efficient solution. The code is just the representation. I've solved some leetcode problems in like under 5 minutes and have taken hours on others, filling up multiple notebook pages. There is no learning without struggle.

1

u/TheUmgawa 3d ago

Coming up with how to solve the problem is the hard part. Code is easy, problem solving is where most “coders” are weak, so if you’re having problems with that, using a crutch isn’t going to teach you how to think it through.

Sometimes I’ll use playing cards as data simulations. If you can solve it by hand, you can solve it in code. You just need to be able to repeat the process in exactly the same way every time, and that’s hard for a lot of people. But you’d be surprised by how many Leetcode problems are kind of trivial to solve by hand.

1

u/1544756405 3d ago

Do you want to test whether AI can solve the problem? Or whether you can?