LeetCode The Hard Way

0000 - 0099

Solutions categorised by Problem IDs

0001 - Two Sum (Easy)Explore solutions to LeetCode 0001 - Two Sum (Easy), with explanations and code implementations.0002 - Add Two Numbers (Medium)Explore solutions to LeetCode 0002 - Add Two Numbers (Medium), with explanations and code implementations.0003 - Longest Substring Without Repeating Characters (Medium)Explore solutions to LeetCode 0003 - Longest Substring Without Repeating Characters (Medium), with explanations and code implementations.0004 - Median of Two Sorted ArraysExplore solutions to LeetCode 0004 - Median of Two Sorted Arrays, with explanations and code implementations.0005 - Longest Palindromic Substring (Medium)Explore solutions to LeetCode 0005 - Longest Palindromic Substring (Medium), with explanations and code implementations.0006 - Zigzag Conversion (Medium)Explore solutions to LeetCode 0006 - Zigzag Conversion (Medium), with explanations and code implementations.0007 - Reverse Integer (Medium)Explore solutions to LeetCode 0007 - Reverse Integer (Medium), with explanations and code implementations.0009 - Palindrome Number (Easy)Explore solutions to LeetCode 0009 - Palindrome Number (Easy), with explanations and code implementations.0010 - Regular Expression Matching (Hard)Explore solutions to LeetCode 0010 - Regular Expression Matching (Hard), with explanations and code implementations.0011 - Container With Most Water (Medium)Explore solutions to LeetCode 0011 - Container With Most Water (Medium), with explanations and code implementations.0012 - Integer to Roman (Medium)Explore solutions to LeetCode 0012 - Integer to Roman (Medium), with explanations and code implementations.0013 - Roman to Integer (Easy)Explore solutions to LeetCode 0013 - Roman to Integer (Easy), with explanations and code implementations.0014 - Longest Common Prefix (Easy)Explore solutions to LeetCode 0014 - Longest Common Prefix (Easy), with explanations and code implementations.0017 - Letter Combinations of a Phone Number (Medium)Explore solutions to LeetCode 0017 - Letter Combinations of a Phone Number (Medium), with explanations and code implementations.0019 - Remove Nth Node From End of List (Easy)Explore solutions to LeetCode 0019 - Remove Nth Node From End of List (Easy), with explanations and code implementations.0020 - Valid Parentheses (Easy)Explore solutions to LeetCode 0020 - Valid Parentheses (Easy), with explanations and code implementations.0021 - Merge Two Sorted Lists (Easy)Explore solutions to LeetCode 0021 - Merge Two Sorted Lists (Easy), with explanations and code implementations.0022 - Generate Parentheses (Medium)Explore solutions to LeetCode 0022 - Generate Parentheses (Medium), with explanations and code implementations.0023 - Merge k Sorted Lists (Hard)Explore solutions to LeetCode 0023 - Merge k Sorted Lists (Hard), with explanations and code implementations.0024 - Swap Nodes in Pairs (Medium)Explore solutions to LeetCode 0024 - Swap Nodes in Pairs (Medium), with explanations and code implementations.0025 - Reverse Nodes in k-Group (Hard)Explore solutions to LeetCode 0025 - Reverse Nodes in k-Group (Hard), with explanations and code implementations.0026 - Remove Duplicates from Sorted Array (Easy)Explore solutions to LeetCode 0026 - Remove Duplicates from Sorted Array (Easy), with explanations and code implementations.0027 - Remove Element (Easy)Explore solutions to LeetCode 0027 - Remove Element (Easy), with explanations and code implementations.0028 - Find the Index of the First Occurrence in a String (Easy)Explore solutions to LeetCode 0028 - Find the Index of the First Occurrence in a String (Easy), with explanations and code implementations.0033 - Search in Rotated Sorted Array (Medium)Explore solutions to LeetCode 0033 - Search in Rotated Sorted Array (Medium), with explanations and code implementations.0034 - Find First and Last Position of Element in Sorted Array (Medium)Explore solutions to LeetCode 0034 - Find First and Last Position of Element in Sorted Array (Medium), with explanations and code implementations.0035 - Search Insert Position (Easy)Explore solutions to LeetCode 0035 - Search Insert Position (Easy), with explanations and code implementations.0036 - Valid Sudoku (Easy)Explore solutions to LeetCode 0036 - Valid Sudoku (Easy), with explanations and code implementations.0037 - Sudoku Solver (Hard)Explore solutions to LeetCode 0037 - Sudoku Solver (Hard), with explanations and code implementations.0039 - Combination Sum (Medium)Explore solutions to LeetCode 0039 - Combination Sum (Medium), with explanations and code implementations.0040 - Combination Sum II (Medium)Explore solutions to LeetCode 0040 - Combination Sum II (Medium), with explanations and code implementations.0042 - Trapping Rain Water (Hard)Explore solutions to LeetCode 0042 - Trapping Rain Water (Hard), with explanations and code implementations.0045 - Jump Game II (Medium)Explore solutions to LeetCode 0045 - Jump Game II (Medium), with explanations and code implementations.0046 - Permutations (Medium)Explore solutions to LeetCode 0046 - Permutations (Medium), with explanations and code implementations.0048 - Rotate Image (Medium)Explore solutions to LeetCode 0048 - Rotate Image (Medium), with explanations and code implementations.0049 - Group Anagrams (Medium)Explore solutions to LeetCode 0049 - Group Anagrams (Medium), with explanations and code implementations.0050 - Pow(x, n) (Medium)Explore solutions to LeetCode 0050 - Pow(x, n) (Medium), with explanations and code implementations.0051 - N-Queens (Hard)Explore solutions to LeetCode 0051 - N-Queens (Hard), with explanations and code implementations.0053 - Maximum Subarray (Medium)Explore solutions to LeetCode 0053 - Maximum Subarray (Medium), with explanations and code implementations.0054 - Spiral Matrix (Medium)Explore solutions to LeetCode 0054 - Spiral Matrix (Medium), with explanations and code implementations.0055 - Jump Game (Medium)Explore solutions to LeetCode 0055 - Jump Game (Medium), with explanations and code implementations.0056 - Merge Intervals (Medium)Explore solutions to LeetCode 0056 - Merge Intervals (Medium), with explanations and code implementations.0057 - Insert Interval (Medium)Explore solutions to LeetCode 0057 - Insert Interval (Medium), with explanations and code implementations.0058 - Length of Last WordExplore solutions to LeetCode 0058 - Length of Last Word, with explanations and code implementations.0061 - Rotate List (Medium)Explore solutions to LeetCode 0061 - Rotate List (Medium), with explanations and code implementations.0062 - Unique Paths (Medium)Explore solutions to LeetCode 0062 - Unique Paths (Medium), with explanations and code implementations.0063 - Unique Paths II (Medium)Explore solutions to LeetCode 0063 - Unique Paths II (Medium), with explanations and code implementations.0066 - Plus One (Easy)Explore solutions to LeetCode 0066 - Plus One (Easy), with explanations and code implementations.0067 - Add Binary (easy)Explore solutions to LeetCode 0067 - Add Binary (easy), with explanations and code implementations.0069 - Sqrt(x) (Easy)Explore solutions to LeetCode 0069 - Sqrt(x) (Easy), with explanations and code implementations.0070 - Climbing Stairs (Easy)Explore solutions to LeetCode 0070 - Climbing Stairs (Easy), with explanations and code implementations.0072 - Edit Distance (Hard)Explore solutions to LeetCode 0072 - Edit Distance (Hard), with explanations and code implementations.0073 - Set Matrix Zeroes (Medium)Explore solutions to LeetCode 0073 - Set Matrix Zeroes (Medium), with explanations and code implementations.0074 - Search a 2D Matrix (Medium)Explore solutions to LeetCode 0074 - Search a 2D Matrix (Medium), with explanations and code implementations.0075 - Sort Colors (Medium)Explore solutions to LeetCode 0075 - Sort Colors (Medium), with explanations and code implementations.0076 - Minimum Window Substring (Hard)Explore solutions to LeetCode 0076 - Minimum Window Substring (Hard), with explanations and code implementations.0077 - Combinations (Medium)Explore solutions to LeetCode 0077 - Combinations (Medium), with explanations and code implementations.0078 - Subsets (Medium)Explore solutions to LeetCode 0078 - Subsets (Medium), with explanations and code implementations.0079 - Word Search (Medium)Explore solutions to LeetCode 0079 - Word Search (Medium), with explanations and code implementations.0084 - Largest Rectangle in Histogram (Hard)Explore solutions to LeetCode 0084 - Largest Rectangle in Histogram (Hard), with explanations and code implementations.0088 - Merge Sorted Array (Easy)Explore solutions to LeetCode 0088 - Merge Sorted Array (Easy), with explanations and code implementations.0090 - Subsets II (Medium)Explore solutions to LeetCode 0090 - Subsets II (Medium), with explanations and code implementations.0091 - Decode Ways (Medium)Explore solutions to LeetCode 0091 - Decode Ways (Medium), with explanations and code implementations.0093 - Restore IP Addresses (Medium)Explore solutions to LeetCode 0093 - Restore IP Addresses (Medium), with explanations and code implementations.0094 - Binary Tree Inorder Traversal (Easy)Explore solutions to LeetCode 0094 - Binary Tree Inorder Traversal (Easy), with explanations and code implementations.0097 - Interleaving String (Medium)Explore solutions to LeetCode 0097 - Interleaving String (Medium), with explanations and code implementations.0098 - Validate Binary Search Tree (Medium)Explore solutions to LeetCode 0098 - Validate Binary Search Tree (Medium), with explanations and code implementations.