All Paths From Source to Target
Find all possible paths from source node to target node in a directed acyclic graph (DAG)
Coin Change II (Number of Ways)
Count the number of ways to make a given amount using coins
Detect Cycle in Undirected Graph
Determine if an undirected graph contains a cycle
Find K Smallest Elements
Find the k smallest elements from an unsorted array
Group Anagrams
Group strings that are anagrams of each other together.
Longest Substring Without Repeating Characters
Find the length of the longest substring without repeating characters
Meeting Rooms II
Find minimum number of meeting rooms required using heap
Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time
Move All Zeros to the End
Move all zeros in an array to the end while maintaining the relative order of non-zero elements
Number of Islands
Count the number of islands in a 2D grid
Trapping Rain Water
Calculate how much rainwater can be trapped between bars of different heights
Ugly Numbers (Heap-based)
Find the nth ugly number using heap-based approach
Valid Anagram
Determine if two strings are anagrams of each other