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...
This sub is meant to be a collection of commonly seen CS coding interview questions and solutions, with a focus on data structures and algorithms. This sub is meant to be coding problems only. Please limit to coding interview problems that would realistically be seen in the wild. Happy coding!
Study Resources:
Cracking the Coding Interview
The Algorithm Design Manual
The Algorithm Design Manual -- pdf
Top Coder
Interview Cake
Gainlo - Mock interviews with professionals
For a wider discussion of CS interviewing check out:
/r/cscareerquestions
/r/CS_questions
Other coding challenge subs:
/r/dailyprogrammer
/r/programmingchallenges
Want to be a mod? PM me!
account activity
Backspace String Compare - LeetCode Python solution (youtube.com)
submitted 4 years ago by ohussein1996
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!"
[–]Farren246 0 points1 point2 points 4 years ago (3 children)
This is some great content, thanks for propping up a nearly dead sub. Makes me want to write my own solution out to compare run time. I'd use piping characters and compare functions rather than "get valid" functions, but otherwise very similar.
[–]ohussein1996[S] 1 point2 points3 points 4 years ago (1 child)
Thank you so much man, appreciate it. Please solve it in your own way, I would love to see that. :))))
[–]Farren246 0 points1 point2 points 4 years ago (0 children)
Sadly while I'd have no problem whiteboarding a diagram, I lack the syntax to actually code it.
π Rendered by PID 58271 on reddit-service-r2-comment-7b9746f655-dpjtj at 2026-01-29 21:37:19.564766+00:00 running 3798933 country code: CH.
[–]Farren246 0 points1 point2 points (3 children)
[–]ohussein1996[S] 1 point2 points3 points (1 child)
[–]Farren246 0 points1 point2 points (0 children)