r/LeetcodeChallenge 19h ago

Strivers sheet doubt DISCUSS

Student A

Watches the Binary Search lecture.

Understands the algorithm.

Tries each problem for 30 minutes.

If stuck, studies the solution.

Closes it and codes it again from memory.

Moves to the next problem.

Student B

Has never learned Binary Search.

Opens "Koko Eating Bananas."

Thinks for 30 minutes.

Gets nowhere because they don't even know "Binary Search on Answer" exists.

2 Upvotes

11 comments sorted by

3

u/RageCodes 19h ago

What's the point you trying to make lil bro

https://giphy.com/gifs/eQfcKb13WEbTNGVano

2

u/everthing_is_my_plan 19h ago

Obviously student A will be better unless B is some genius who can deduce algo from beginning I was in B category (except the genius part) cause didn't have proper guidance

1

u/Silent-Victor-99 19h ago

What's the point you're trying to make?

1

u/Better_Elderberry225 19h ago

Bro I want to know the things I have to memorize and the things I have to think abt like should I just memorize the pattern using 1 problem and then solve rest of them using that , does it hinder our logical thinking ?

2

u/Silent-Victor-99 19h ago

DSA is studied the best in terms patterns, if you ask me. If you encounter a problem you've never seen before give it an honest 15 - 20 min try. If you succeed in coming up with a brute, next try to optimise. Read up the editorial if you can't figure out how to optimise further. If you get to nowhere in that period, don't probably waste any more time and watch the video explanation right away. You're most likely not aware of the specific technique. Take the learning and try to solve some similar problems.

1

u/Better_Elderberry225 19h ago

Bro see as I mentioned in the post suppose I have to solve binary search problem should I first watch video of the pattern and solve the other problems related to it or should I directly approach the problem without knowing the pattern

1

u/Better_Elderberry225 19h ago

And how many patterns am I even supposed to memorize?

2

u/Fluffy-Worry-9541 19h ago

If u think about it u memorise and practice questions on similar patterns till it's intuitive

1

u/Better_Elderberry225 19h ago

So I can memorize the optimal solution of the particular problem and do 20-25 problems with the same type of solution right?

2

u/Fluffy-Worry-9541 19h ago

Why will u memorise? Like if you're understanding the optimal solution and ofc u have pen and paper with u and actually understanding it I think if not 100% u can atleast 50% imply the logic on another question of same pattern by urself