Data Structures and Algorithms (DSA)
Data Structures and Algorithms (DSA) is the study of organizing, storing, and processing data efficiently. It provides fundamental techniques for solving computational problems and building fast, scalable, and optimized software applications.
Array / String4 articles
Array + HashMap11 articles
Sliding Window14 articles
Maximum Average Subarray I
Longest Substring Without Repeating Characters
Best Time to Buy and Sell Stock
Best Time to Buy and Sell Stock II
Maximum Number of Vowels in a Substring of Given Length
Max Consecutive Ones III
Longest Subarray of 1's After Deleting One Element
Minimum Size Subarray Sum
Longest Repeating Character Replacement
Find All Anagrams in a String
Permutation in String
Sliding Window Maximum
Minimum Window Substring
Substring with Concatenation of All Words
Two Pointer17 articles
Is Subsequence
Valid Palindrome
Happy Number
Reverse Vowels of a String
Remove Duplicates from Sorted Array
Move Zeroes
Two Sum II – Input Array Is Sorted
Find the Duplicate Number
Max Number of K-Sum Pairs
Rotate Array
Next Permutation
String Compression
Reverse Words in a String
Container With Most Water
3Sum
Remove Duplicates from Sorted Array II
Trapping Rain Water
Linked List14 articles
Middle of the Linked List
Linked List Cycle
Reverse Linked List
Palindrome Linked List
Merge Two Sorted Lists
Copy List with Random Pointer
Reorder List
Add Two Numbers
Delete the Middle Node of a Linked List
Odd Even Linked List
Flatten a Multilevel Doubly Linked List
Remove Nth Node From End of List
LRU Cache
Reverse Nodes in k-Group
Binary Search10 articles
Stack10 articles
Matrix4 articles
Trees DFS/BFS + BST24 articles
Maximum Depth of Binary Tree
Minimum Depth of Binary Tree
Invert Binary Tree
Same Tree
Subtree of Another Tree
Balanced Binary Tree
Diameter of Binary Tree
Path Sum
Path Sum II
Leaf-Similar Trees
Search in a Binary Search Tree
Binary Tree Level Order Traversal
Maximum Level Sum of a Binary Tree
Count Good Nodes in Binary Tree
Path Sum III
Longest ZigZag Path in a Binary Tree
Binary Tree Right Side View
Validate Binary Search Tree
Delete Node in a BST
Kth Smallest Element in a BST
Lowest Common Ancestor of a Binary Tree
Construct Binary Tree from Preorder and Postorder Traversal
Binary Tree Maximum Path Sum
Serialize and Deserialize Binary Tree
Backtracking14 articles
Heap and Priority Queue10 articles
Graph + Topological Sort16 articles
Number of Islands
Max Area of Island
Surrounded Regions
Number of Provinces
Rotting Oranges
Keys and Rooms
Number of Connected Components in an Undirected Graph
Reorder Routes to Make All Paths Lead to the City Zero
Graph Valid Tree
Clone Graph
Pacific Atlantic Water Flow
Course Schedule
Course Schedule II
Dijkstra's Algorithm
Word Ladder
Alien Dictionary
Dynamic Programming25 articles
Fibonacci Number
Climbing Stairs
Min Cost Climbing Stairs
House Robber
House Robber II
Unique Paths
Interleaving String
Coin Change
Coin Change II
Longest Increasing Subsequence
Palindromic Substrings
Longest Palindromic Substring
Longest Palindromic Subsequence
Longest Common Subsequence
Word Break
Maximum Product Subarray
Decode Ways
0/1 Knapsack
Distinct Subsequences
Best Time to Buy and Sell Stock with Cooldown
Partition Equal Subset Sum
Edit Distance
Regular Expression Matching
Burst Balloons
Longest Increasing Path in a Matrix