Skip to content
DeepForgeby svx

Data Structures problems

Stacks, queues, trees, heaps, tries. The containers that make algorithms fast.

355 problems125 Easy159 Medium71 Hard

50 problems

Stack Push and Pop Simulation
ds-001
Easy
Balanced Brackets
ds-002
Easy
Postfix Expression Evaluation
ds-003
Medium
Min Stack with O(1) Minimum
ds-004
Hard
Queue Implemented with Two Stacks
ds-005
Medium
Circular Queue Simulation
ds-006
Medium
Deque Operations
ds-007
Medium
Reverse a Singly Linked List
ds-008
Easy
Middle Node of a Linked List
ds-009
Easy
Merge Two Sorted Lists
ds-010
Easy
Remove Duplicates from Sorted List
ds-011
Easy
Doubly Linked List Insert and Delete
ds-012
Medium
Linked List Cycle Detection
ds-013
Medium
djb2 String Hash
ds-014
Easy
Hash Set Operations
ds-015
Easy
String Set Deduplication
ds-016
Easy
First Non-Repeating Character
ds-017
Easy
Binary Heap Parent and Child Indices
ds-018
Easy
Heap Sift Up
ds-019
Medium
Heapify Build Min-Heap
ds-020
Hard
Heap Push and Pop
ds-021
Medium
Kth Largest Element via Heap
ds-022
Medium
Trie Insert, Search, and StartsWith
ds-023
Medium
Trie Collect Words with Prefix
ds-024
Hard
BST Insert and Preorder Traversal
ds-025
Medium
BST Minimum and Maximum
ds-026
Easy
BST Height
ds-027
Easy
Validate Binary Search Tree
ds-028
Medium
Iterative Inorder Traversal
ds-029
Medium
Level-Order Traversal
ds-030
Medium
Build an Adjacency List
ds-031
Easy
Hash Map with Separate Chaining
ds-032
Hard
Union-Find Find with Path Compression
ds-033
Medium
Union-Find Union by Rank
ds-034
Medium
Detect Cycle in Undirected Graph via DSU
ds-035
Medium
Segment Tree Range Sum
ds-036
Hard
Fenwick Tree Prefix Sum
ds-037
Hard
LRU Cache
ds-038
Hard
Median Finder with Two Heaps
ds-039
Hard
Next Greater Element with Monotonic Stack
ds-040
Medium
Rotate Array by Reversal
ds-041
Easy
Partition Array by Pivot
ds-042
Easy
Find Missing and Duplicate
ds-043
Medium
Majority Element (Boyer-Moore)
ds-044
Easy
Two-Sum Indices with Hash Set
ds-045
Easy
Intersection of Two Arrays
ds-046
Easy
Union of Sorted Arrays
ds-047
Easy
Interval Merging with Sorted Sweep
ds-048
Medium
Insert into Sorted Array
ds-049
Easy
Binary Search on Sorted List
ds-050
Easy

Showing 50 of 355 problems.

Other categories