DEV Community

#dsa

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Trie Data Structure: Efficient Prefix Matching and Autocomplete Implementation

Trie Data Structure: Efficient Prefix Matching and Autocomplete Implementation

Comments
5 min read
Dynamic Programming Demystified: From Memoization to Tabulation and Space Optimization

Dynamic Programming Demystified: From Memoization to Tabulation and Space Optimization

Comments
5 min read
Storing Documents: From a JSON String to Bytes on Disk

Storing Documents: From a JSON String to Bytes on Disk

7
Comments
12 min read
Union-Find (Disjoint Set Union): Path Compression and Union by Rank Explained

Union-Find (Disjoint Set Union): Path Compression and Union by Rank Explained

Comments
4 min read
Topological Sort: Kahn Algorithm vs Post-Order DFS for Dependency Resolution

Topological Sort: Kahn Algorithm vs Post-Order DFS for Dependency Resolution

Comments
4 min read
Graph Traversal Patterns: BFS vs DFS with Cycle Detection in Directed and Undirected Graphs

Graph Traversal Patterns: BFS vs DFS with Cycle Detection in Directed and Undirected Graphs

Comments
4 min read
Binary Search Beyond Arrays: Searching on the Answer Space

Binary Search Beyond Arrays: Searching on the Answer Space

Comments
4 min read
Top K Frequent Elements

Top K Frequent Elements

1
Comments
2 min read
LeetCode #198. House Robber

LeetCode #198. House Robber

Comments
3 min read
The LeetCode Problem Anatomy

The LeetCode Problem Anatomy

Comments
5 min read
Logarithms vs Exponentials: The Simple Idea Behind O(log n) and O(2ⁿ)

Logarithms vs Exponentials: The Simple Idea Behind O(log n) and O(2ⁿ)

2
Comments
3 min read
DSA: Topic 3: Two Pointers

DSA: Topic 3: Two Pointers

Comments
3 min read
Mastering Monotonic Stacks: Next Greater Element and Histogram Problems

Mastering Monotonic Stacks: Next Greater Element and Histogram Problems

Comments
4 min read
Two Pointers in Practice: Opposite Direction vs Fast and Slow Pointers

Two Pointers in Practice: Opposite Direction vs Fast and Slow Pointers

Comments
4 min read
The Sliding Window Technique: Solving Subarray and Substring Problems in O(N)

The Sliding Window Technique: Solving Subarray and Substring Problems in O(N)

Comments
4 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.