Leetcode Patterns & Solutions
1D Dynamic Programming
Java solutions with explanations, time and space complexity for 1D Dynamic Programming problems.
2D Dynamic Programming
Java solutions with explanations, time and space complexity for 2D Dynamic Programming problems.
Advanced Graphs
Java solutions with explanations, time and space complexity for Advanced Graph problems.
Arrays & Hashing
Java solutions with explanations, time and space complexity for Arrays & Hashing problems.
Backtracking
Java solutions with explanations, time and space complexity for Backtracking problems.
Binary Search
Java solutions with explanations, time and space complexity for Binary Search problems.
Bit Manipulation
Java solutions with explanations, time and space complexity for Bit Manipulation problems.
Graphs
Java solutions with explanations, time and space complexity for Graph problems.
Greedy
Java solutions with explanations, time and space complexity for Greedy problems.
Heap / PriorityQueue
Java solutions with explanations, time and space complexity for Heap / PriorityQueue problems.
Intervals
Java solutions with explanations, time and space complexity for Intervals problems.
Linked List
Java solutions with explanations, time and space complexity for Linked List problems.
Math & Geometry
Java solutions with explanations, time and space complexity for Math & Geometry problems.
Miscellaneous Data Structures & Algorithms
Java solutions with explanations, time and space complexity for Miscellaneous Data Structures & Algorithms problems.
Sliding Window
Java solutions with explanations, time and space complexity for Sliding Window problems.
Stack
Java solutions with explanations, time and space complexity for Stack problems.
Trees
Java solutions with explanations, time and space complexity for Trees problems.
Tries
Java solutions with explanations, time and space complexity for Tries problems.
Two Pointers
Java solutions with explanations, time and space complexity for Two Pointers problems.