DSA
9 pages in this topic.
- Syntax and Snippets Leetcode and DSA.
- Preventing Binary Search Confusion Binary search is fundamentally simple. The issue is consistently writing it correctly in code. A while ago somebody that's more maths-y than I am…
- Two Pointers Broadly speaking, there are four primary two-pointer patterns: the start+end approach where the points converge, slow+fast where one skips ahead,…
- Topological Sort Given a directed acyclic graph, you want to find some order to place these elements such that for each node you visit, you've visited all the nodes…
- Functional Iterators Have you ever seen people using functional tools like reduce, product, or accumulate? These can be quite overwhelming, and if you aren't familiar…
- Monotonic Stack Monotonic stacks are when your solution involves maintaining a stack or queue that remains strictly sorted. Usually this means if you hit a number…
- Recursion Patterns You can solve every problem with recursion. Sometimes it's easier, sometimes it is harder. Some competitive programming people will encourage you to…
- DP and Greedy Patterns I'll go over some pains I've had, then create a question list to explore to get better at greedy.
- Low Level Design Question Bank In 3 - My Interview Cookbook I mentioned a handful of "low level design" questions. To be fair, the type of low level design questions I'm referring…