Interactive Practice Portal
Master programming concepts by solving over 350+ structured problems in Python. View complexity mappings, dry runs, and compare naive vs optimal solutions, then run your code instantly.
Curriculum Roadmap
Positive or Negative number
BasicsDetailed guide and Python implementation for the 'Positive or Negative number' problem.
Even or Odd number
BasicsDetailed guide and Python implementation for the 'Even or Odd number' problem.
Sum of First N Natural numbers
BasicsDetailed guide and Python implementation for the 'Sum of First N Natural numbers' problem.
Sum of N natural numbers
BasicsDetailed guide and Python implementation for the 'Sum of N natural numbers' problem.
Sum of numbers in a given range
BasicsDetailed guide and Python implementation for the 'Sum of numbers in a given range' problem.
Greatest of two numbers
BasicsDetailed guide and Python implementation for the 'Greatest of two numbers' problem.
Greatest of the Three numbers
BasicsDetailed guide and Python implementation for the 'Greatest of the Three numbers' problem.
Leap year or not
BasicsDetailed guide and Python implementation for the 'Leap year or not' problem.
Prime number
BasicsDetailed guide and Python implementation for the 'Prime number' problem.
Prime number within a given range
BasicsDetailed guide and Python implementation for the 'Prime number within a given range' problem.
Sum of digits of a number
BasicsDetailed guide and Python implementation for the 'Sum of digits of a number' problem.
Reverse of a number
BasicsDetailed guide and Python implementation for the 'Reverse of a number' problem.
Palindrome number
BasicsDetailed guide and Python implementation for the 'Palindrome number' problem.
Armstrong number
BasicsDetailed guide and Python implementation for the 'Armstrong number' problem.
Armstrong number in a given range
BasicsDetailed guide and Python implementation for the 'Armstrong number in a given range' problem.
Fibonacci Series upto nth term
BasicsDetailed guide and Python implementation for the 'Fibonacci Series upto nth term' problem.
Find the Nth Term of the Fibonacci Series
BasicsDetailed guide and Python implementation for the 'Find the Nth Term of the Fibonacci Series' problem.
Factorial of a number
BasicsDetailed guide and Python implementation for the 'Factorial of a number' problem.
Power of a number
BasicsDetailed guide and Python implementation for the 'Power of a number' problem.
Factor of a number
BasicsDetailed guide and Python implementation for the 'Factor of a number' problem.
Finding Prime Factors of a number
BasicsDetailed guide and Python implementation for the 'Finding Prime Factors of a number' problem.
Strong number
BasicsDetailed guide and Python implementation for the 'Strong number' problem.
Perfect number
BasicsDetailed guide and Python implementation for the 'Perfect number' problem.
Perfect Square
BasicsDetailed guide and Python implementation for the 'Perfect Square' problem.
Automorphic number
BasicsDetailed guide and Python implementation for the 'Automorphic number' problem.
Harshad number
BasicsDetailed guide and Python implementation for the 'Harshad number' problem.
Abundant number
BasicsDetailed guide and Python implementation for the 'Abundant number' problem.
Friendly pair
BasicsDetailed guide and Python implementation for the 'Friendly pair' problem.
Highest Common Factor(HCF)
NumbersDetailed guide and Python implementation for the 'Highest Common Factor(HCF)' problem.
Lowest Common Multiple (LCM)
NumbersDetailed guide and Python implementation for the 'Lowest Common Multiple (LCM)' problem.
Greatest Common Divisor
NumbersDetailed guide and Python implementation for the 'Greatest Common Divisor' problem.
Binary to Decimal conversion
NumbersDetailed guide and Python implementation for the 'Binary to Decimal conversion' problem.
Octal to Decimal conversion
NumbersDetailed guide and Python implementation for the 'Octal to Decimal conversion' problem.
Hexadecimal to Decimal conversion
NumbersDetailed guide and Python implementation for the 'Hexadecimal to Decimal conversion' problem.
Decimal to Binary conversion
NumbersDetailed guide and Python implementation for the 'Decimal to Binary conversion' problem.
Decimal to Octal Conversion
NumbersDetailed guide and Python implementation for the 'Decimal to Octal Conversion' problem.
Decimal to Hexadecimal Conversion
NumbersDetailed guide and Python implementation for the 'Decimal to Hexadecimal Conversion' problem.
Binary to Octal conversion
NumbersDetailed guide and Python implementation for the 'Binary to Octal conversion' problem.
Octal to Binary conversion
NumbersDetailed guide and Python implementation for the 'Octal to Binary conversion' problem.
Quadrants in which a given coordinate lies
NumbersDetailed guide and Python implementation for the 'Quadrants in which a given coordinate lies' problem.
Permutations in which n people can occupy r seats
NumbersDetailed guide and Python implementation for the 'Permutations in which n people can occupy r seats' problem.
Maximum number of handshakes
NumbersDetailed guide and Python implementation for the 'Maximum number of handshakes' problem.
Addition of two fractions
NumbersDetailed guide and Python implementation for the 'Addition of two fractions' problem.
Replace all 0’s with 1 in a given integer
NumbersDetailed guide and Python implementation for the 'Replace all 0’s with 1 in a given integer' problem.
Can a number be expressed as a sum of two prime numbers
NumbersDetailed guide and Python implementation for the 'Can a number be expressed as a sum of two prime numbers' problem.
Count possible decoding of a given digit sequence
NumbersDetailed guide and Python implementation for the 'Count possible decoding of a given digit sequence' problem.
Calculate the area of a circle
NumbersDetailed guide and Python implementation for the 'Calculate the area of a circle' problem.
Find the prime numbers between 1 to 100
NumbersDetailed guide and Python implementation for the 'Find the prime numbers between 1 to 100' problem.
Calculate the number of digits in an integer
NumbersDetailed guide and Python implementation for the 'Calculate the number of digits in an integer' problem.
Convert digit/number to words
NumbersDetailed guide and Python implementation for the 'Convert digit/number to words' problem.
Counting number of days in a given month of a year
NumbersDetailed guide and Python implementation for the 'Counting number of days in a given month of a year' problem.
Finding Number of times x digit occurs
NumbersDetailed guide and Python implementation for the 'Finding Number of times x digit occurs' problem.
Finding number of integers which has exactly x divisors
NumbersDetailed guide and Python implementation for the 'Finding number of integers which has exactly x divisors' problem.
Finding Roots of a quadratic equation
NumbersDetailed guide and Python implementation for the 'Finding Roots of a quadratic equation' problem.
Power of a Number using Recursion
RecursionDetailed guide and Python implementation for the 'Power of a Number using Recursion' problem.
Prime Number using Recursion
RecursionDetailed guide and Python implementation for the 'Prime Number using Recursion' problem.
Largest element in an array
RecursionDetailed guide and Python implementation for the 'Largest element in an array' problem.
Smallest element in an array
RecursionDetailed guide and Python implementation for the 'Smallest element in an array' problem.
Reversing a Number using Recursion
RecursionDetailed guide and Python implementation for the 'Reversing a Number using Recursion' problem.
HCF using Recursion
RecursionDetailed guide and Python implementation for the 'HCF using Recursion' problem.
LCM using Recursion
RecursionDetailed guide and Python implementation for the 'LCM using Recursion' problem.
Program to calculate length of string using recursion
RecursionDetailed guide and Python implementation for the 'Program to calculate length of string using recursion' problem.
Print All Permutations of a String
RecursionDetailed guide and Python implementation for the 'Print All Permutations of a String' problem.
F(N)th term recursion problem
RecursionDetailed guide and Python implementation for the 'F(N)th term recursion problem' problem.
Sum of all subsets
RecursionDetailed guide and Python implementation for the 'Sum of all subsets' problem.
Last non-zero digit in factorial
RecursionDetailed guide and Python implementation for the 'Last non-zero digit in factorial' problem.
Nth row of Pascal Triangle
RecursionDetailed guide and Python implementation for the 'Nth row of Pascal Triangle' problem.
Generate balanced parentheses
RecursionDetailed guide and Python implementation for the 'Generate balanced parentheses' problem.
Factorial using recursion
RecursionDetailed guide and Python implementation for the 'Factorial using recursion' problem.
Palindromic partitions
RecursionDetailed guide and Python implementation for the 'Palindromic partitions' problem.
N bit binary numbers
RecursionDetailed guide and Python implementation for the 'N bit binary numbers' problem.
Generate subsets
RecursionDetailed guide and Python implementation for the 'Generate subsets' problem.
Remove adjacent duplicates recursively
RecursionDetailed guide and Python implementation for the 'Remove adjacent duplicates recursively' problem.
Find Largest element in an array
ArraysDetailed guide and Python implementation for the 'Find Largest element in an array' problem.
Find Smallest Element in an Array
ArraysDetailed guide and Python implementation for the 'Find Smallest Element in an Array' problem.
Find the Smallest and largest element in an array
ArraysDetailed guide and Python implementation for the 'Find the Smallest and largest element in an array' problem.
Find Second Smallest Element in an Array
ArraysDetailed guide and Python implementation for the 'Find Second Smallest Element in an Array' problem.
Calculate the sum of elements in an array
ArraysDetailed guide and Python implementation for the 'Calculate the sum of elements in an array' problem.
Reverse an Array
ArraysDetailed guide and Python implementation for the 'Reverse an Array' problem.
Sort first half ascending and second half descending
ArraysDetailed guide and Python implementation for the 'Sort first half ascending and second half descending' problem.
Sort the elements of an array
ArraysDetailed guide and Python implementation for the 'Sort the elements of an array' problem.
Finding the frequency of elements in an array
ArraysDetailed guide and Python implementation for the 'Finding the frequency of elements in an array' problem.
Sorting elements of an array by frequency
ArraysDetailed guide and Python implementation for the 'Sorting elements of an array by frequency' problem.
Finding the Longest Palindrome in an Array
ArraysDetailed guide and Python implementation for the 'Finding the Longest Palindrome in an Array' problem.
Counting Distinct Elements in an Array
ArraysDetailed guide and Python implementation for the 'Counting Distinct Elements in an Array' problem.
Finding Repeating elements in an Array
ArraysDetailed guide and Python implementation for the 'Finding Repeating elements in an Array' problem.
Finding Non Repeating elements in an Array
ArraysDetailed guide and Python implementation for the 'Finding Non Repeating elements in an Array' problem.
Removing Duplicate elements from an array
ArraysDetailed guide and Python implementation for the 'Removing Duplicate elements from an array' problem.
Finding Minimum scalar product of two vectors
ArraysDetailed guide and Python implementation for the 'Finding Minimum scalar product of two vectors' problem.
Finding Maximum scalar product of two vectors
ArraysDetailed guide and Python implementation for the 'Finding Maximum scalar product of two vectors' problem.
Counting even and odd elements in an array
ArraysDetailed guide and Python implementation for the 'Counting even and odd elements in an array' problem.
Find all Symmetric pairs in an array
ArraysDetailed guide and Python implementation for the 'Find all Symmetric pairs in an array' problem.
Find maximum product sub-array
ArraysDetailed guide and Python implementation for the 'Find maximum product sub-array' problem.
Arrays are disjoint or not
ArraysDetailed guide and Python implementation for the 'Arrays are disjoint or not' problem.
Array subset check
ArraysDetailed guide and Python implementation for the 'Array subset check' problem.
Can all numbers of array be made equal
ArraysDetailed guide and Python implementation for the 'Can all numbers of array be made equal' problem.
Minimum sum absolute difference
ArraysDetailed guide and Python implementation for the 'Minimum sum absolute difference' problem.
Sort according to another array
ArraysDetailed guide and Python implementation for the 'Sort according to another array' problem.
Replace each element by rank
ArraysDetailed guide and Python implementation for the 'Replace each element by rank' problem.
Finding equilibrium index
ArraysDetailed guide and Python implementation for the 'Finding equilibrium index' problem.
Array rotation
ArraysDetailed guide and Python implementation for the 'Array rotation' problem.
Circular rotation by K positions
ArraysDetailed guide and Python implementation for the 'Circular rotation by K positions' problem.
Balanced Parenthesis Problem
ArraysDetailed guide and Python implementation for the 'Balanced Parenthesis Problem' problem.
Contains Duplicate
Arrays & HashingDetailed guide and Python implementation for the 'Contains Duplicate' problem.
Valid Anagram
Arrays & HashingDetailed guide and Python implementation for the 'Valid Anagram' problem.
Two Sum
Arrays & HashingDetailed guide and Python implementation for the 'Two Sum' problem.
Group Anagrams
Arrays & HashingDetailed guide and Python implementation for the 'Group Anagrams' problem.
Top K Frequent Elements
Arrays & HashingDetailed guide and Python implementation for the 'Top K Frequent Elements' problem.
Encode and Decode Strings
Arrays & HashingDetailed guide and Python implementation for the 'Encode and Decode Strings' problem.
Product of Array Except Self
Arrays & HashingDetailed guide and Python implementation for the 'Product of Array Except Self' problem.
Valid Sudoku
Arrays & HashingDetailed guide and Python implementation for the 'Valid Sudoku' problem.
Longest Consecutive Sequence
Arrays & HashingDetailed guide and Python implementation for the 'Longest Consecutive Sequence' problem.
Valid Palindrome
Two PointersDetailed guide and Python implementation for the 'Valid Palindrome' problem.
Two Sum II
Two PointersDetailed guide and Python implementation for the 'Two Sum II' problem.
3Sum
Two PointersDetailed guide and Python implementation for the '3Sum' problem.
Container With Most Water
Two PointersDetailed guide and Python implementation for the 'Container With Most Water' problem.
Trapping Rain Water
Two PointersDetailed guide and Python implementation for the 'Trapping Rain Water' problem.
Best Time to Buy And Sell Stock
Sliding WindowDetailed guide and Python implementation for the 'Best Time to Buy And Sell Stock' problem.
Longest Substring Without Repeating Characters
Sliding WindowDetailed guide and Python implementation for the 'Longest Substring Without Repeating Characters' problem.
Longest Repeating Character Replacement
Sliding WindowDetailed guide and Python implementation for the 'Longest Repeating Character Replacement' problem.
Permutation In String
Sliding WindowDetailed guide and Python implementation for the 'Permutation In String' problem.
Minimum Window Substring
Sliding WindowDetailed guide and Python implementation for the 'Minimum Window Substring' problem.
Sliding Window Maximum
Sliding WindowDetailed guide and Python implementation for the 'Sliding Window Maximum' problem.
Valid Parentheses
StackDetailed guide and Python implementation for the 'Valid Parentheses' problem.
Min Stack
StackDetailed guide and Python implementation for the 'Min Stack' problem.
Evaluate Reverse Polish Notation
StackDetailed guide and Python implementation for the 'Evaluate Reverse Polish Notation' problem.
Generate Parentheses
StackDetailed guide and Python implementation for the 'Generate Parentheses' problem.
Daily Temperatures
StackDetailed guide and Python implementation for the 'Daily Temperatures' problem.
Car Fleet
StackDetailed guide and Python implementation for the 'Car Fleet' problem.
Largest Rectangle In Histogram
StackDetailed guide and Python implementation for the 'Largest Rectangle In Histogram' problem.
Binary Search
Binary SearchDetailed guide and Python implementation for the 'Binary Search' problem.
Search a 2D Matrix
Binary SearchDetailed guide and Python implementation for the 'Search a 2D Matrix' problem.
Koko Eating Bananas
Binary SearchDetailed guide and Python implementation for the 'Koko Eating Bananas' problem.
Find Minimum In Rotated Sorted Array
Binary SearchDetailed guide and Python implementation for the 'Find Minimum In Rotated Sorted Array' problem.
Search In Rotated Sorted Array
Binary SearchDetailed guide and Python implementation for the 'Search In Rotated Sorted Array' problem.
Time Based Key Value Store
Binary SearchDetailed guide and Python implementation for the 'Time Based Key Value Store' problem.
Median of Two Sorted Arrays
Binary SearchDetailed guide and Python implementation for the 'Median of Two Sorted Arrays' problem.
Reverse Linked List
Linked ListDetailed guide and Python implementation for the 'Reverse Linked List' problem.
Merge Two Sorted Lists
Linked ListDetailed guide and Python implementation for the 'Merge Two Sorted Lists' problem.
Reorder List
Linked ListDetailed guide and Python implementation for the 'Reorder List' problem.
Remove Nth Node From End of List
Linked ListDetailed guide and Python implementation for the 'Remove Nth Node From End of List' problem.
Copy List With Random Pointer
Linked ListDetailed guide and Python implementation for the 'Copy List With Random Pointer' problem.
Add Two Numbers
Linked ListDetailed guide and Python implementation for the 'Add Two Numbers' problem.
Linked List Cycle
Linked ListDetailed guide and Python implementation for the 'Linked List Cycle' problem.
Find The Duplicate Number
Linked ListDetailed guide and Python implementation for the 'Find The Duplicate Number' problem.
LRU Cache
Linked ListDetailed guide and Python implementation for the 'LRU Cache' problem.
Merge K Sorted Lists
Linked ListDetailed guide and Python implementation for the 'Merge K Sorted Lists' problem.
Reverse Nodes In K Group
Linked ListDetailed guide and Python implementation for the 'Reverse Nodes In K Group' problem.
Invert Binary Tree
TreesDetailed guide and Python implementation for the 'Invert Binary Tree' problem.
Maximum Depth of Binary Tree
TreesDetailed guide and Python implementation for the 'Maximum Depth of Binary Tree' problem.
Diameter of Binary Tree
TreesDetailed guide and Python implementation for the 'Diameter of Binary Tree' problem.
Balanced Binary Tree
TreesDetailed guide and Python implementation for the 'Balanced Binary Tree' problem.
Same Binary Tree
TreesDetailed guide and Python implementation for the 'Same Binary Tree' problem.
Subtree of Another Tree
TreesDetailed guide and Python implementation for the 'Subtree of Another Tree' problem.
Lowest Common Ancestor of BST
TreesDetailed guide and Python implementation for the 'Lowest Common Ancestor of BST' problem.
Binary Tree Level Order Traversal
TreesDetailed guide and Python implementation for the 'Binary Tree Level Order Traversal' problem.
Binary Tree Right Side View
TreesDetailed guide and Python implementation for the 'Binary Tree Right Side View' problem.
Count Good Nodes In Binary Tree
TreesDetailed guide and Python implementation for the 'Count Good Nodes In Binary Tree' problem.
Validate BST
TreesDetailed guide and Python implementation for the 'Validate BST' problem.
Kth Smallest Element In BST
TreesDetailed guide and Python implementation for the 'Kth Smallest Element In BST' problem.
Construct Binary Tree
TreesDetailed guide and Python implementation for the 'Construct Binary Tree' problem.
Binary Tree Maximum Path Sum
TreesDetailed guide and Python implementation for the 'Binary Tree Maximum Path Sum' problem.
Serialize And Deserialize Binary Tree
TreesDetailed guide and Python implementation for the 'Serialize And Deserialize Binary Tree' problem.
Rotate Image
Math & GeometryDetailed guide and Python implementation for the 'Rotate Image' problem.
Spiral Matrix
Math & GeometryDetailed guide and Python implementation for the 'Spiral Matrix' problem.
Set Matrix Zeroes
Math & GeometryDetailed guide and Python implementation for the 'Set Matrix Zeroes' problem.
Happy Number
Math & GeometryDetailed guide and Python implementation for the 'Happy Number' problem.
Plus One
Math & GeometryDetailed guide and Python implementation for the 'Plus One' problem.
Pow(x, n)
Math & GeometryDetailed guide and Python implementation for the 'Pow(x, n)' problem.
Multiply Strings
Math & GeometryDetailed guide and Python implementation for the 'Multiply Strings' problem.
Detect Squares
Math & GeometryDetailed guide and Python implementation for the 'Detect Squares' problem.
Subsets
BacktrackingDetailed guide and Python implementation for the 'Subsets' problem.
Combination Sum
BacktrackingDetailed guide and Python implementation for the 'Combination Sum' problem.
Permutations
BacktrackingDetailed guide and Python implementation for the 'Permutations' problem.
Subsets II
BacktrackingDetailed guide and Python implementation for the 'Subsets II' problem.
Combination Sum II
BacktrackingDetailed guide and Python implementation for the 'Combination Sum II' problem.
Word Search
BacktrackingDetailed guide and Python implementation for the 'Word Search' problem.
Palindrome Partitioning
BacktrackingDetailed guide and Python implementation for the 'Palindrome Partitioning' problem.
Letter Combinations of a Phone Number
BacktrackingDetailed guide and Python implementation for the 'Letter Combinations of a Phone Number' problem.
N Queens
BacktrackingDetailed guide and Python implementation for the 'N Queens' problem.
Number of Islands
GraphsDetailed guide and Python implementation for the 'Number of Islands' problem.
Max Area of Island
GraphsDetailed guide and Python implementation for the 'Max Area of Island' problem.
Clone Graph
GraphsDetailed guide and Python implementation for the 'Clone Graph' problem.
Walls And Gates
GraphsDetailed guide and Python implementation for the 'Walls And Gates' problem.
Rotting Oranges
GraphsDetailed guide and Python implementation for the 'Rotting Oranges' problem.
Pacific Atlantic Water Flow
GraphsDetailed guide and Python implementation for the 'Pacific Atlantic Water Flow' problem.
Surrounded Regions
GraphsDetailed guide and Python implementation for the 'Surrounded Regions' problem.
Course Schedule
GraphsDetailed guide and Python implementation for the 'Course Schedule' problem.
Course Schedule II
GraphsDetailed guide and Python implementation for the 'Course Schedule II' problem.
Graph Valid Tree
GraphsDetailed guide and Python implementation for the 'Graph Valid Tree' problem.
Number of Connected Components
GraphsDetailed guide and Python implementation for the 'Number of Connected Components' problem.
Redundant Connection
GraphsDetailed guide and Python implementation for the 'Redundant Connection' problem.
Word Ladder
GraphsDetailed guide and Python implementation for the 'Word Ladder' problem.
Kth Largest Element In Stream
Heap / Priority QueueDetailed guide and Python implementation for the 'Kth Largest Element In Stream' problem.
Last Stone Weight
Heap / Priority QueueDetailed guide and Python implementation for the 'Last Stone Weight' problem.
K Closest Points to Origin
Heap / Priority QueueDetailed guide and Python implementation for the 'K Closest Points to Origin' problem.
Kth Largest Element In Array
Heap / Priority QueueDetailed guide and Python implementation for the 'Kth Largest Element In Array' problem.
Task Scheduler
Heap / Priority QueueDetailed guide and Python implementation for the 'Task Scheduler' problem.
Design Twitter
Heap / Priority QueueDetailed guide and Python implementation for the 'Design Twitter' problem.
Find Median From Data Stream
Heap / Priority QueueDetailed guide and Python implementation for the 'Find Median From Data Stream' problem.
Implement Trie Prefix Tree
TrieDetailed guide and Python implementation for the 'Implement Trie Prefix Tree' problem.
Design Add And Search Words
TrieDetailed guide and Python implementation for the 'Design Add And Search Words' problem.
Word Search II
TrieDetailed guide and Python implementation for the 'Word Search II' problem.
Reconstruct Itinerary
Advanced GraphsDetailed guide and Python implementation for the 'Reconstruct Itinerary' problem.
Min Cost to Connect All Points
Advanced GraphsDetailed guide and Python implementation for the 'Min Cost to Connect All Points' problem.
Network Delay Time
Advanced GraphsDetailed guide and Python implementation for the 'Network Delay Time' problem.
Swim In Rising Water
Advanced GraphsDetailed guide and Python implementation for the 'Swim In Rising Water' problem.
Alien Dictionary
Advanced GraphsDetailed guide and Python implementation for the 'Alien Dictionary' problem.
Cheapest Flights Within K Stops
Advanced GraphsDetailed guide and Python implementation for the 'Cheapest Flights Within K Stops' problem.
Climbing Stairs
1D DPDetailed guide and Python implementation for the 'Climbing Stairs' problem.
Min Cost Climbing Stairs
1D DPDetailed guide and Python implementation for the 'Min Cost Climbing Stairs' problem.
House Robber
1D DPDetailed guide and Python implementation for the 'House Robber' problem.
House Robber II
1D DPDetailed guide and Python implementation for the 'House Robber II' problem.
Longest Palindromic Substring
1D DPDetailed guide and Python implementation for the 'Longest Palindromic Substring' problem.
Palindromic Substrings
1D DPDetailed guide and Python implementation for the 'Palindromic Substrings' problem.
Decode Ways
1D DPDetailed guide and Python implementation for the 'Decode Ways' problem.
Coin Change
1D DPDetailed guide and Python implementation for the 'Coin Change' problem.
Maximum Product Subarray
1D DPDetailed guide and Python implementation for the 'Maximum Product Subarray' problem.
Word Break
1D DPDetailed guide and Python implementation for the 'Word Break' problem.
Longest Increasing Subsequence
1D DPDetailed guide and Python implementation for the 'Longest Increasing Subsequence' problem.
Partition Equal Subset Sum
1D DPDetailed guide and Python implementation for the 'Partition Equal Subset Sum' problem.
Unique Paths
2D DPDetailed guide and Python implementation for the 'Unique Paths' problem.
Longest Common Subsequence
2D DPDetailed guide and Python implementation for the 'Longest Common Subsequence' problem.
Best Time to Buy and Sell Stock with Cooldown
2D DPDetailed guide and Python implementation for the 'Best Time to Buy and Sell Stock with Cooldown' problem.
Coin Change II
2D DPDetailed guide and Python implementation for the 'Coin Change II' problem.
Target Sum
2D DPDetailed guide and Python implementation for the 'Target Sum' problem.
Interleaving String
2D DPDetailed guide and Python implementation for the 'Interleaving String' problem.
Longest Increasing Path In Matrix
2D DPDetailed guide and Python implementation for the 'Longest Increasing Path In Matrix' problem.
Distinct Subsequences
2D DPDetailed guide and Python implementation for the 'Distinct Subsequences' problem.
Edit Distance
2D DPDetailed guide and Python implementation for the 'Edit Distance' problem.
Burst Balloons
2D DPDetailed guide and Python implementation for the 'Burst Balloons' problem.
Regular Expression Matching
2D DPDetailed guide and Python implementation for the 'Regular Expression Matching' problem.
Maximum Subarray
GreedyDetailed guide and Python implementation for the 'Maximum Subarray' problem.
Jump Game
GreedyDetailed guide and Python implementation for the 'Jump Game' problem.
Jump Game II
GreedyDetailed guide and Python implementation for the 'Jump Game II' problem.
Gas Station
GreedyDetailed guide and Python implementation for the 'Gas Station' problem.
Hand of Straights
GreedyDetailed guide and Python implementation for the 'Hand of Straights' problem.
Merge Triplets
GreedyDetailed guide and Python implementation for the 'Merge Triplets' problem.
Partition Labels
GreedyDetailed guide and Python implementation for the 'Partition Labels' problem.
Valid Parenthesis String
GreedyDetailed guide and Python implementation for the 'Valid Parenthesis String' problem.
Insert Interval
IntervalsDetailed guide and Python implementation for the 'Insert Interval' problem.
Merge Intervals
IntervalsDetailed guide and Python implementation for the 'Merge Intervals' problem.
Non Overlapping Intervals
IntervalsDetailed guide and Python implementation for the 'Non Overlapping Intervals' problem.
Meeting Rooms
IntervalsDetailed guide and Python implementation for the 'Meeting Rooms' problem.
Meeting Rooms II
IntervalsDetailed guide and Python implementation for the 'Meeting Rooms II' problem.
Minimum Interval to Include Each Query
IntervalsDetailed guide and Python implementation for the 'Minimum Interval to Include Each Query' problem.
Single Number
Bit ManipulationDetailed guide and Python implementation for the 'Single Number' problem.
Number of 1 Bits
Bit ManipulationDetailed guide and Python implementation for the 'Number of 1 Bits' problem.
Counting Bits
Bit ManipulationDetailed guide and Python implementation for the 'Counting Bits' problem.
Reverse Bits
Bit ManipulationDetailed guide and Python implementation for the 'Reverse Bits' problem.
Missing Number
Bit ManipulationDetailed guide and Python implementation for the 'Missing Number' problem.
Sum of Two Integers
Bit ManipulationDetailed guide and Python implementation for the 'Sum of Two Integers' problem.
Reverse Integer
Bit ManipulationDetailed guide and Python implementation for the 'Reverse Integer' problem.
Linear Search
SearchingDetailed guide and Python implementation for the 'Linear Search' problem.
Binary Search
SearchingDetailed guide and Python implementation for the 'Binary Search' problem.
Bubble Sort
SortingDetailed guide and Python implementation for the 'Bubble Sort' problem.
Insertion Sort
SortingDetailed guide and Python implementation for the 'Insertion Sort' problem.
Selection Sort
SortingDetailed guide and Python implementation for the 'Selection Sort' problem.
Merge Sort
SortingDetailed guide and Python implementation for the 'Merge Sort' problem.
Quick Sort
SortingDetailed guide and Python implementation for the 'Quick Sort' problem.
Counting Sort
SortingDetailed guide and Python implementation for the 'Counting Sort' problem.
Radix Sort
SortingDetailed guide and Python implementation for the 'Radix Sort' problem.
Heap Sort
SortingDetailed guide and Python implementation for the 'Heap Sort' problem.
Singly Linked List
Linked ListsDetailed guide and Python implementation for the 'Singly Linked List' problem.
Doubly Linked List
Linked ListsDetailed guide and Python implementation for the 'Doubly Linked List' problem.
Circular Linked List
Linked ListsDetailed guide and Python implementation for the 'Circular Linked List' problem.
Insertions
Linked ListsDetailed guide and Python implementation for the 'Insertions' problem.
Deletions
Linked ListsDetailed guide and Python implementation for the 'Deletions' problem.
Reverse Linked List
Linked ListsDetailed guide and Python implementation for the 'Reverse Linked List' problem.
Middle of Linked List
Linked ListsDetailed guide and Python implementation for the 'Middle of Linked List' problem.
Palindrome Linked List
Linked ListsDetailed guide and Python implementation for the 'Palindrome Linked List' problem.
Fold Linked List
Linked ListsDetailed guide and Python implementation for the 'Fold Linked List' problem.
Stack using Array
StacksDetailed guide and Python implementation for the 'Stack using Array' problem.
Stack using Linked List
StacksDetailed guide and Python implementation for the 'Stack using Linked List' problem.
Infix Prefix Postfix
StacksDetailed guide and Python implementation for the 'Infix Prefix Postfix' problem.
Stack Applications
StacksDetailed guide and Python implementation for the 'Stack Applications' problem.
Queue using Array
QueuesDetailed guide and Python implementation for the 'Queue using Array' problem.
Queue using Linked List
QueuesDetailed guide and Python implementation for the 'Queue using Linked List' problem.
Circular Queue
QueuesDetailed guide and Python implementation for the 'Circular Queue' problem.
Priority Queue
QueuesDetailed guide and Python implementation for the 'Priority Queue' problem.
Queue using Stack
QueuesDetailed guide and Python implementation for the 'Queue using Stack' problem.
Binary Tree
TreesDetailed guide and Python implementation for the 'Binary Tree' problem.
BST
TreesDetailed guide and Python implementation for the 'BST' problem.
AVL Tree
TreesDetailed guide and Python implementation for the 'AVL Tree' problem.
B Tree
TreesDetailed guide and Python implementation for the 'B Tree' problem.
Tree Traversals
TreesDetailed guide and Python implementation for the 'Tree Traversals' problem.
BFS
TreesDetailed guide and Python implementation for the 'BFS' problem.
DFS
TreesDetailed guide and Python implementation for the 'DFS' problem.
Tree Construction
TreesDetailed guide and Python implementation for the 'Tree Construction' problem.
LCA
TreesDetailed guide and Python implementation for the 'LCA' problem.
Foldable Tree
TreesDetailed guide and Python implementation for the 'Foldable Tree' problem.
Symmetric Tree
TreesDetailed guide and Python implementation for the 'Symmetric Tree' problem.
Array Rotation
ArraysDetailed guide and Python implementation for the 'Array Rotation' problem.
Majority Element
ArraysDetailed guide and Python implementation for the 'Majority Element' problem.
Boyer Moore Voting
ArraysDetailed guide and Python implementation for the 'Boyer Moore Voting' problem.
K Pairs with smallest sum
ArraysDetailed guide and Python implementation for the 'K Pairs with smallest sum' problem.
Largest Sum Contiguous SubArray
ArraysDetailed guide and Python implementation for the 'Largest Sum Contiguous SubArray' problem.
Wave Form Sorting
ArraysDetailed guide and Python implementation for the 'Wave Form Sorting' problem.
Pythagorean Triplets
ArraysDetailed guide and Python implementation for the 'Pythagorean Triplets' problem.
Merge Arrays
ArraysDetailed guide and Python implementation for the 'Merge Arrays' problem.
BFS
GraphsDetailed guide and Python implementation for the 'BFS' problem.
DFS
GraphsDetailed guide and Python implementation for the 'DFS' problem.
Dijkstra
GraphsDetailed guide and Python implementation for the 'Dijkstra' problem.
Prim
GraphsDetailed guide and Python implementation for the 'Prim' problem.
Kruskal
GraphsDetailed guide and Python implementation for the 'Kruskal' problem.
Union Find
GraphsDetailed guide and Python implementation for the 'Union Find' problem.
Cycle Detection
GraphsDetailed guide and Python implementation for the 'Cycle Detection' problem.
Closest Pair
Searching & SortingDetailed guide and Python implementation for the 'Closest Pair' problem.
Closest Pair in Two Arrays
Searching & SortingDetailed guide and Python implementation for the 'Closest Pair in Two Arrays' problem.
Count 1s in Binary Array
Searching & SortingDetailed guide and Python implementation for the 'Count 1s in Binary Array' problem.
Wave Sort
Searching & SortingDetailed guide and Python implementation for the 'Wave Sort' problem.
Search in Almost Sorted Array
Searching & SortingDetailed guide and Python implementation for the 'Search in Almost Sorted Array' problem.
Count Binary Strings
Dynamic ProgrammingDetailed guide and Python implementation for the 'Count Binary Strings' problem.
Matrix Chain Multiplication
Dynamic ProgrammingDetailed guide and Python implementation for the 'Matrix Chain Multiplication' problem.
Binomial Coefficient
Dynamic ProgrammingDetailed guide and Python implementation for the 'Binomial Coefficient' problem.
Coin Change Problem
Dynamic ProgrammingDetailed guide and Python implementation for the 'Coin Change Problem' problem.
0-1 Knapsack
Dynamic ProgrammingDetailed guide and Python implementation for the '0-1 Knapsack' problem.
Longest Palindromic Subsequence
Dynamic ProgrammingDetailed guide and Python implementation for the 'Longest Palindromic Subsequence' problem.
Rod Cutting
Dynamic ProgrammingDetailed guide and Python implementation for the 'Rod Cutting' problem.
Longest Common Sequence
Dynamic ProgrammingDetailed guide and Python implementation for the 'Longest Common Sequence' problem.
Longest Increasing Subsequence
Dynamic ProgrammingDetailed guide and Python implementation for the 'Longest Increasing Subsequence' problem.
Min Cost Path
Dynamic ProgrammingDetailed guide and Python implementation for the 'Min Cost Path' problem.
Edit Distance
Dynamic ProgrammingDetailed guide and Python implementation for the 'Edit Distance' problem.
Longest Bitonic Subsequence
Dynamic ProgrammingDetailed guide and Python implementation for the 'Longest Bitonic Subsequence' problem.
Maximum Sum Increasing Subsequence
Dynamic ProgrammingDetailed guide and Python implementation for the 'Maximum Sum Increasing Subsequence' problem.
Egg Dropping Puzzle
Dynamic ProgrammingDetailed guide and Python implementation for the 'Egg Dropping Puzzle' problem.
Palindrome Partitioning
Dynamic ProgrammingDetailed guide and Python implementation for the 'Palindrome Partitioning' problem.
Partition Problem
Dynamic ProgrammingDetailed guide and Python implementation for the 'Partition Problem' problem.
Fibonacci Numbers
Dynamic ProgrammingDetailed guide and Python implementation for the 'Fibonacci Numbers' problem.
Ugly Numbers
Dynamic ProgrammingDetailed guide and Python implementation for the 'Ugly Numbers' problem.
Minimum Jumps
Dynamic ProgrammingDetailed guide and Python implementation for the 'Minimum Jumps' problem.
Maximum Size Square Sub Matrix
Dynamic ProgrammingDetailed guide and Python implementation for the 'Maximum Size Square Sub Matrix' problem.
Longest Palindromic Substring
Dynamic ProgrammingDetailed guide and Python implementation for the 'Longest Palindromic Substring' problem.
Subset Sum
Dynamic ProgrammingDetailed guide and Python implementation for the 'Subset Sum' problem.
Tiling Problem
Dynamic ProgrammingDetailed guide and Python implementation for the 'Tiling Problem' problem.
Count ways to reach nth stair
Dynamic ProgrammingDetailed guide and Python implementation for the 'Count ways to reach nth stair' problem.
Largest Sum Contiguous Subarray
Dynamic ProgrammingDetailed guide and Python implementation for the 'Largest Sum Contiguous Subarray' problem.
Maximum Sum Rectangle
Dynamic ProgrammingDetailed guide and Python implementation for the 'Maximum Sum Rectangle' problem.
Count ways to reach score
Dynamic ProgrammingDetailed guide and Python implementation for the 'Count ways to reach score' problem.
Minimum number of coins
Dynamic ProgrammingDetailed guide and Python implementation for the 'Minimum number of coins' problem.
Sum from 1 to n
Dynamic ProgrammingDetailed guide and Python implementation for the 'Sum from 1 to n' problem.
Non decreasing numbers with n digits
Dynamic ProgrammingDetailed guide and Python implementation for the 'Non decreasing numbers with n digits' problem.
Trie Implementation
TrieDetailed guide and Python implementation for the 'Trie Implementation' problem.
Phone Directory
TrieDetailed guide and Python implementation for the 'Phone Directory' problem.
Minimum XOR Pair
TrieDetailed guide and Python implementation for the 'Minimum XOR Pair' problem.
Maximum XOR Pair
TrieDetailed guide and Python implementation for the 'Maximum XOR Pair' problem.
Fractional Knapsack
GreedyDetailed guide and Python implementation for the 'Fractional Knapsack' problem.
Activity Selection
GreedyDetailed guide and Python implementation for the 'Activity Selection' problem.
Job Sequencing
GreedyDetailed guide and Python implementation for the 'Job Sequencing' problem.
Minimum Swaps brackets balancing
GreedyDetailed guide and Python implementation for the 'Minimum Swaps brackets balancing' problem.
Minimum time to finish jobs
GreedyDetailed guide and Python implementation for the 'Minimum time to finish jobs' problem.
Maximize the sum of array
GreedyDetailed guide and Python implementation for the 'Maximize the sum of array' problem.
Maximum sum absolute difference
GreedyDetailed guide and Python implementation for the 'Maximum sum absolute difference' problem.
Partition into two subarrays
GreedyDetailed guide and Python implementation for the 'Partition into two subarrays' problem.
Minimum sum absolute difference pairs
GreedyDetailed guide and Python implementation for the 'Minimum sum absolute difference pairs' problem.
Minimum operations to make GCD multiple of k
GreedyDetailed guide and Python implementation for the 'Minimum operations to make GCD multiple of k' problem.
Minimum sum formed by digits
GreedyDetailed guide and Python implementation for the 'Minimum sum formed by digits' problem.
Lexicographically smallest array
GreedyDetailed guide and Python implementation for the 'Lexicographically smallest array' problem.
Lexicographically largest array
GreedyDetailed guide and Python implementation for the 'Lexicographically largest array' problem.