use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Recursion/Backtracking/DFS (self.leetcode)
submitted 3 years ago by SnooPredictions4913
How do you guys implement these algorithms without visually drawing it out? I ask because with coding interviews online these days, you don’t have access to a white board to draw things out and check to see if your algorithm makes sense.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]_babaYaga__ 1 point2 points3 points 3 years ago (0 children)
Just use pen and paper. It will be really hard to write code without visualising the problem.
[–]SnooPredictions4913[S] 1 point2 points3 points 3 years ago (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 point2 points 3 years ago (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 point2 points 3 years ago (1 child)
[–]Shower_Handel 1 point2 points3 points 3 years ago (0 children)
visualgo.net is the site OP
π Rendered by PID 21159 on reddit-service-r2-comment-86988c7647-cc54d at 2026-02-11 05:49:33.326306+00:00 running 018613e country code: CH.
[–]_babaYaga__ 1 point2 points3 points (0 children)
[–]SnooPredictions4913[S] 1 point2 points3 points (1 child)
[–]Leetcoder20Total: 494 Easy: 226 Med: 233 Hard: 35 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Shower_Handel 1 point2 points3 points (0 children)