DSA Worked Solutions
Solutions
Tags
BFS
DFS
array
binary search
binary tree
data structure
dynamic programming
graph
greedy
linked list
math
matrix
monthly challenge
recursion
shortest path
simulation
stack
string
tree
BFS
Lowest common ancestor of deepest leaves
25 Nov 2020
tree
BFS
Even odd tree
14 Nov 2020
binary tree
BFS
Minimum height trees
04 Nov 2020
graph
BFS
tree
monthly challenge
DFS
Jump game iii
29 Nov 2020
DFS
monthly challenge
Partition equal subset sum
27 Nov 2020
monthly challenge
DFS
dynamic programming
House robber iii
23 Nov 2020
tree
monthly challenge
DFS
Pseudo palindromic paths in a binary tree
05 Nov 2020
tree
DFS
array
Can place flowers
05 Dec 2020
greedy
monthly challenge
array
Sliding window maximum
28 Nov 2020
monthly challenge
array
Minimum operations to reduce x to zero
20 Nov 2020
array
Longest mountain in array
16 Nov 2020
array
monthly challenge
binary search
Find the smallest divisor given a threshold
06 Nov 2020
binary search
monthly challenge
binary tree
Even odd tree
14 Nov 2020
binary tree
BFS
Maximum difference between node and ancestor
09 Nov 2020
binary tree
recursion
data structure
Min stack
13 Nov 2020
stack
data structure
Maximum frequency stack
10 Nov 2020
stack
data structure
dynamic programming
Partition equal subset sum
27 Nov 2020
monthly challenge
DFS
dynamic programming
graph
Maximal network rank
12 Nov 2020
graph
Minimum height trees
04 Nov 2020
graph
BFS
tree
monthly challenge
Path with maximum probability
03 Nov 2020
graph
shortest path
greedy
Can place flowers
05 Dec 2020
greedy
monthly challenge
array
Smallest string with a given numeric value
22 Nov 2020
string
greedy
Minimum deletions to make string balanced
18 Nov 2020
greedy
Sell diminishing valued colored balls
15 Nov 2020
greedy
Furthest building you can reach
08 Nov 2020
greedy
linked list
Add two numbers ii
07 Nov 2020
linked list
recursion
monthly challenge
Insertion sort list
02 Nov 2020
linked list
recursion
monthly challenge
Convert binary number in a linked list to integer
01 Nov 2020
linked list
recursion
monthly challenge
math
Numbers at most n given digit set
21 Nov 2020
math
monthly challenge
Valid square
11 Nov 2020
math
monthly challenge
matrix
Spiral matrix
02 Nov 2020
matrix
monthly challenge
Populating next right pointers in each node ii
06 Dec 2020
tree
monthly challenge
Can place flowers
05 Dec 2020
greedy
monthly challenge
array
Increasing order search tree
03 Dec 2020
tree
recursion
monthly challenge
Jump game iii
29 Nov 2020
DFS
monthly challenge
Sliding window maximum
28 Nov 2020
monthly challenge
array
Partition equal subset sum
27 Nov 2020
monthly challenge
DFS
dynamic programming
Longest substring with at least k repeating characters
26 Nov 2020
string
monthly challenge
House robber iii
23 Nov 2020
tree
monthly challenge
DFS
Numbers at most n given digit set
21 Nov 2020
math
monthly challenge
Decode string
19 Nov 2020
monthly challenge
recursion
Mirror reflection
17 Nov 2020
monthly challenge
simulation
Longest mountain in array
16 Nov 2020
array
monthly challenge
Valid square
11 Nov 2020
math
monthly challenge
Add two numbers ii
07 Nov 2020
linked list
recursion
monthly challenge
Find the smallest divisor given a threshold
06 Nov 2020
binary search
monthly challenge
Minimum height trees
04 Nov 2020
graph
BFS
tree
monthly challenge
Insertion sort list
02 Nov 2020
linked list
recursion
monthly challenge
Convert binary number in a linked list to integer
01 Nov 2020
linked list
recursion
monthly challenge
recursion
Increasing order search tree
03 Dec 2020
tree
recursion
monthly challenge
Decode string
19 Nov 2020
monthly challenge
recursion
Maximum difference between node and ancestor
09 Nov 2020
binary tree
recursion
Add two numbers ii
07 Nov 2020
linked list
recursion
monthly challenge
Insertion sort list
02 Nov 2020
linked list
recursion
monthly challenge
Convert binary number in a linked list to integer
01 Nov 2020
linked list
recursion
monthly challenge
shortest path
Path with maximum probability
03 Nov 2020
graph
shortest path
simulation
Mirror reflection
17 Nov 2020
monthly challenge
simulation
stack
Basic calculator ii
24 Nov 2020
stack
Min stack
13 Nov 2020
stack
data structure
Maximum frequency stack
10 Nov 2020
stack
data structure
string
Longest substring with at least k repeating characters
26 Nov 2020
string
monthly challenge
Smallest string with a given numeric value
22 Nov 2020
string
greedy
tree
Populating next right pointers in each node ii
06 Dec 2020
tree
monthly challenge
Increasing order search tree
03 Dec 2020
tree
recursion
monthly challenge
Lowest common ancestor of deepest leaves
25 Nov 2020
tree
BFS
House robber iii
23 Nov 2020
tree
monthly challenge
DFS
Pseudo palindromic paths in a binary tree
05 Nov 2020
tree
DFS
Minimum height trees
04 Nov 2020
graph
BFS
tree
monthly challenge