pkg5leetcode
LeetCode
262 self-tested Java solutions from the curriculum. Each row opens the file in this library. The pages do not add problem statements beyond the notes already in the source.
Chapter LeetCode Practice
Starter
Blind 75
- 1Two Sum
- 121Best Time to Buy and Sell Stock
- 217Contains Duplicate
- 238Product of Array Except Self
- 53Maximum Subarray
- 152Maximum Product Subarray
- 153Find Minimum in Rotated Sorted Array
- 33Search in Rotated Sorted Array
- 153Sum
- 11Container With Most Water
- 371Sum of Two Integers
- 191Number of 1 Bits
- 338Counting Bits
- 268Missing Number
- 190Reverse Bits
- 70Climbing Stairs
- 322Coin Change
- 300Longest Increasing Subsequence
- 1143Longest Common Subsequence
- 139Word Break
- 39Combination Sum
- 198House Robber
- 213House Robber II
- 91Decode Ways
- 62Unique Paths
- 55Jump Game
- 133Clone Graph
- 207Course Schedule
- 417Pacific Atlantic Water Flow
- 200Number of Islands
- 128Longest Consecutive Sequence
- 269Alien Dictionary
- 261Graph Valid Tree
- 323Number of Connected Components in an Undirected Graph
- 57Insert Interval
- 56Merge Intervals
- 435Non-overlapping Intervals
- 252Meeting Rooms
- 253Meeting Rooms II
- 206Reverse Linked List
- 141Linked List Cycle
- 21Merge Two Sorted Lists
- 23Merge k Sorted Lists
- 19Remove Nth Node From End of List
- 143Reorder List
- 73Set Matrix Zeroes
- 54Spiral Matrix
- 48Rotate Image
- 79Word Search
- 3Longest Substring Without Repeating Characters
- 424Longest Repeating Character Replacement
- 76Minimum Window Substring
- 242Valid Anagram
- 49Group Anagrams
- 20Valid Parentheses
- 125Valid Palindrome
- 5Longest Palindromic Substring
- 647Palindromic Substrings
- 271Encode and Decode Strings
- 104Maximum Depth of Binary Tree
- 100Same Tree
- 226Invert Binary Tree
- 124Binary Tree Maximum Path Sum
- 102Binary Tree Level Order Traversal
- 297Serialize and Deserialize Binary Tree
- 572Subtree of Another Tree
- 105Construct Binary Tree from Preorder and Inorder
- 98Validate Binary Search Tree
- 230Kth Smallest Element in a BST
- 235Lowest Common Ancestor of a BST
- 208Implement Trie (Prefix Tree)
- 211Design Add and Search Words Data Structure
- 212Word Search II
- 347Top K Frequent Elements
- 295Find Median from Data Stream
LeetCode 75
- 11Container With Most Water
- 17Letter Combinations of a Phone Number
- 63Unique Paths II
- 72Edit Distance
- 74Search a 2D Matrix
- 104Maximum Depth of Binary Tree
- 123Best Time to Buy and Sell Stock III
- 151Reverse Words in a String
- 162Find Peak Element
- 188Best Time to Buy and Sell Stock IV
- 199Binary Tree Right Side View
- 206Reverse Linked List
- 208Implement Trie (Prefix Tree)
- 215Kth Largest Element in an Array
- 216Combination Sum III
- 221Maximal Square
- 230Kth Smallest Element in a BST
- 236Lowest Common Ancestor of a Binary Tree
- 238Product of Array Except Self
- 283Move Zeroes
- 328Odd Even Linked List
- 334Increasing Triplet Subsequence
- 338Counting Bits
- 345Reverse Vowels of a String
- 373Find K Pairs with Smallest Sums
- 374Guess Number Higher or Lower
- 392Is Subsequence
- 394Decode String
- 399Evaluate Division
- 435Non-overlapping Intervals
- 437Path Sum III
- 443String Compression
- 450Delete Node in a BST
- 452Minimum Number of Arrows to Burst Balloons
- 502IPO
- 605Can Place Flowers
- 643Maximum Average Subarray I
- 649Dota2 Senate
- 700Search in a Binary Search Tree
- 714Best Time to Buy and Sell Stock with Transaction Fee
- 724Find Pivot Index
- 735Asteroid Collision
- 739Daily Temperatures
- 746Min Cost Climbing Stairs
- 790Domino and Tromino Tiling
- 797All Paths From Source to Target
- 841Keys and Rooms
- 872Leaf-Similar Trees
- 901Online Stock Span
- 933Number of Recent Calls
- 994Rotting Oranges
- 1004Max Consecutive Ones III
- 1071Greatest Common Divisor of Strings
- 1161Maximum Level Sum of a Binary Tree
- 1207Unique Number of Occurrences
- 1268Search Suggestions System
- 1318Minimum Flips to Make a OR b Equal to c
- 1372Longest ZigZag Path in a Binary Tree
- 1431Kids With the Greatest Number of Candies
- 1448Count Good Nodes in Binary Tree
- 1456Maximum Number of Vowels in a Substring
- 1466Reorder Routes to Make All Paths Lead to City Zero
- 1493Longest Subarray of 1's After Deleting One Element
- 1657Determine if Two Strings Have Equal Character Frequency
- 1679Max Number of K-Sum Pairs
- 1732Find the Highest Altitude
- 1768Merge Strings Alternately
- 1926Nearest Exit from Entrance in Maze
- 2095Delete the Middle Node of a Linked List
- 2130Maximum Twin Sum of a Linked List
- 2215Find the Difference of Two Arrays
- 2336Smallest Number in Infinite Set
- 2352Equal Row and Column Pairs
- 2390Removing Stars From a String
- 2419Longest Subarray With Maximum Bitwise AND
Interview 150
- 2Add Two Numbers
- 4Median of Two Sorted Arrays
- 7Reverse Integer
- 9Palindrome Number
- 14Longest Common Prefix
- 26Remove Duplicates from Sorted Array
- 27Remove Element
- 35Search Insert Position
- 36Valid Sudoku
- 42Trapping Rain Water
- 45Jump Game II
- 58Length of Last Word
- 66Plus One
- 69Sqrt(x)
- 71Simplify Path
- 74Search a 2D Matrix
- 83Remove Duplicates from Sorted List
- 88Merge Sorted Array
- 94Binary Tree Inorder Traversal
- 101Symmetric Tree
- 116Populating Next Right Pointers in Each Node
- 118Pascal's Triangle
- 120Triangle
- 134Gas Station
- 136Single Number
- 146LRU Cache
- 150Evaluate Reverse Polish Notation
- 155Min Stack
- 167Two Sum II
- 169Majority Element
- 171Excel Sheet Column Number
- 173Binary Search Tree Iterator
- 189Rotate Array
- 202Happy Number
- 205Isomorphic Strings
- 210Course Schedule II
- 219Contains Duplicate II
- 227Basic Calculator II
- 228Summary Ranges
- 229Majority Element II
- 234Palindrome Linked List
- 236Lowest Common Ancestor of Binary Tree
- 283Move Zeroes
- 287Find the Duplicate Number
- 290Word Pattern
- 344Reverse String
- 380Insert Delete GetRandom O(1)
- 383Ransom Note
- 399Evaluate Division
- 409Longest Palindrome
- 438Find All Anagrams in a String
- 509Fibonacci Number
- 560Subarray Sum Equals K
- 684Redundant Connection
- 704Binary Search
- 721Accounts Merge
- 733Flood Fill
- 739Daily Temperatures
- 746Min Cost Climbing Stairs
- 763Partition Labels
- 767Reorganize String
- 787Cheapest Flights Within K Stops
- 791Custom Sort String
- 844Backspace String Compare
- 852Peak Index in a Mountain Array
- 875Koko Eating Bananas
- 876Middle of the Linked List
- 909Snakes and Ladders
- 921Minimum Add to Make Parentheses Valid
- 931Minimum Falling Path Sum
- 977Squares of a Sorted Array
- 981Time Based Key-Value Store
- 989Add Strings
- 994Rotting Oranges
- 1004Max Consecutive Ones III
Top 100
- 17Letter Combinations of a Phone Number
- 22Generate Parentheses
- 31Next Permutation
- 34Find First and Last Position of Element
- 46Permutations
- 51N-Queens
- 64Minimum Path Sum
- 72Edit Distance
- 75Sort Colors
- 78Subsets
- 84Largest Rectangle in Histogram
- 85Maximal Rectangle
- 86Partition List
- 96Unique Binary Search Trees
- 114Flatten Binary Tree to Linked List
- 148Sort List
- 215Kth Largest Element in an Array
- 222Count Complete Tree Nodes
- 239Sliding Window Maximum
- 240Search a 2D Matrix II
- 448Find All Numbers Disappeared in an Array
- 461Hamming Distance
- 494Target Sum
- 503Next Greater Element II
- 516Longest Palindromic Subsequence