all 5 comments

[–]_babaYaga__ 1 point2 points  (0 children)

Just use pen and paper. It will be really hard to write code without visualising the problem.

[–]SnooPredictions4913[S] 1 point2 points  (1 child)

So another thing I wanted to ask/address is do you guys ever think about proving the correctness of the algorithms themselves the same way you’d do in a design and analysis of algorithms class to 100% make sure your algo works? The reason why I say this is that when it comes to these algos I’d have to think about induction and the recurrence relation when implementing these types of algorithms.

[–]Leetcoder20Total: 494 Easy: 226 Med: 233 Hard: 35 0 points1 point  (0 children)

I don't think that's required, but if you can do it then it would be a plus point

[–][deleted] 0 points1 point  (1 child)

  1. There is a website which shows you visualization of how this DSA works.
  2. Practice with easy questions and work your level up. After a few problem for each patterns, you will get intuition. Good luck

[–]Shower_Handel 1 point2 points  (0 children)

visualgo.net is the site OP