Difficulty,Title,Frequency,Acceptance Rate,Link,Topics HARD,Binary Tree Cameras,100.0,0.00482492092590306,https://leetcode.com/problems/binary-tree-cameras,"Dynamic Programming, Tree, Depth-First Search, Binary Tree, DP on Trees" MEDIUM,Find Minimum Cost to Remove Array Elements,88.3,0.0022515456744833253,https://leetcode.com/problems/find-minimum-cost-to-remove-array-elements,"Array, Dynamic Programming" MEDIUM,Maximum Number of Subsequences After One Inserting,84.4,0.003212066299648411,https://leetcode.com/problems/maximum-number-of-subsequences-after-one-inserting,"String, Dynamic Programming, Greedy, Prefix Sum" HARD,Minimum Number of Taps to Open to Water a Garden,77.9,0.00511132550234083,https://leetcode.com/problems/minimum-number-of-taps-to-open-to-water-a-garden,"Array, Dynamic Programming, Greedy" MEDIUM,Minimum Size Subarray in Infinite Array,77.9,0.0032496611040994717,https://leetcode.com/problems/minimum-size-subarray-in-infinite-array,"Array, Hash Table, Sliding Window, Prefix Sum" HARD,Maximum Points After Collecting Coins From All Nodes,76.0,0.003708589856347112,https://leetcode.com/problems/maximum-points-after-collecting-coins-from-all-nodes,"Array, Dynamic Programming, Bit Manipulation, Tree, Depth-First Search, Memoization, DP on Trees" MEDIUM,Removing Minimum Number of Magic Beans,76.0,0.004510903064487992,https://leetcode.com/problems/removing-minimum-number-of-magic-beans,"Array, Greedy, Sorting, Enumeration, Prefix Sum" MEDIUM,Maximum Subsequence Score,76.0,0.0055101879013716,https://leetcode.com/problems/maximum-subsequence-score,"Array, Greedy, Sorting, Heap (Priority Queue)" MEDIUM,Maximum Points Tourist Can Earn,76.0,0.004770832135257922,https://leetcode.com/problems/maximum-points-tourist-can-earn,"Array, Dynamic Programming, Matrix" HARD,Minimum Runes to Add to Cast Spell,73.8,0.004538386783284743,https://leetcode.com/problems/minimum-runes-to-add-to-cast-spell,"Array, Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort" MEDIUM,Letter Combinations of a Phone Number,71.4,0.0067037490716379934,https://leetcode.com/problems/letter-combinations-of-a-phone-number,"Hash Table, String, Backtracking" EASY,Relative Sort Array,71.4,0.007550868180778636,https://leetcode.com/problems/relative-sort-array,"Array, Hash Table, Sorting, Counting Sort, Quicksort, Bubble Sort" HARD,Sliding Window Maximum,71.4,0.004936741714616332,https://leetcode.com/problems/sliding-window-maximum,"Array, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue, Range Minimum/Maximum Query" HARD,Minimum Cost Walk in Weighted Graph,71.4,0.006801138852387209,https://leetcode.com/problems/minimum-cost-walk-in-weighted-graph,"Array, Bit Manipulation, Union-Find, Graph Theory" HARD,Number of Subarrays With AND Value of K,71.4,0.0035499154782029,https://leetcode.com/problems/number-of-subarrays-with-and-value-of-k,"Array, Binary Search, Bit Manipulation, Segment Tree" MEDIUM,Number of Substrings Containing All Three Characters,71.4,0.007444768721951037,https://leetcode.com/problems/number-of-substrings-containing-all-three-characters,"Hash Table, String, Sliding Window" HARD,Maximum Strength of K Disjoint Subarrays,68.8,0.002804685212298682,https://leetcode.com/problems/maximum-strength-of-k-disjoint-subarrays,"Array, Dynamic Programming, Prefix Sum" HARD,Find the Sum of the Power of All Subsequences,68.8,0.0038969212451097123,https://leetcode.com/problems/find-the-sum-of-the-power-of-all-subsequences,"Array, Dynamic Programming, Knapsack Problem, 0-1 Knapsack" MEDIUM,Minimum Deletions to Make String K-Special,68.8,0.006690583226651582,https://leetcode.com/problems/minimum-deletions-to-make-string-k-special,"Hash Table, String, Greedy, Sorting, Counting" MEDIUM,Greatest Sum Divisible by Three,68.8,0.005700484221071965,https://leetcode.com/problems/greatest-sum-divisible-by-three,"Array, Dynamic Programming, Greedy, Sorting" MEDIUM,Query Kth Smallest Trimmed Number,68.8,0.004841693506146148,https://leetcode.com/problems/query-kth-smallest-trimmed-number,"Array, String, Divide and Conquer, Sorting, Heap (Priority Queue), Radix Sort, Quickselect" MEDIUM,Equal Row and Column Pairs,68.8,0.007140503232287227,https://leetcode.com/problems/equal-row-and-column-pairs,"Array, Hash Table, Matrix, Simulation" HARD,Maximum Deletions on a String,68.8,0.0036579953638579046,https://leetcode.com/problems/maximum-deletions-on-a-string,"String, Dynamic Programming, Rolling Hash, String Matching, Hash Function" MEDIUM,Median of a Row Wise Sorted Matrix,68.8,0.007142083017232036,https://leetcode.com/problems/median-of-a-row-wise-sorted-matrix,"Array, Binary Search, Matrix" EASY,Determine the Winner of a Bowling Game,68.8,0.003808322824716267,https://leetcode.com/problems/determine-the-winner-of-a-bowling-game,"Array, Simulation" EASY,Take Gifts From the Richest Pile,68.8,0.007545076183328365,https://leetcode.com/problems/take-gifts-from-the-richest-pile,"Array, Heap (Priority Queue), Simulation" EASY,Find the Maximum Divisibility Score,68.8,0.005241372131754256,https://leetcode.com/problems/find-the-maximum-divisibility-score,Array MEDIUM,Max Number of K-Sum Pairs,68.8,0.0057471608856236875,https://leetcode.com/problems/max-number-of-k-sum-pairs,"Array, Hash Table, Two Pointers, Sorting" MEDIUM,Shortest String That Contains Three Strings,68.8,0.0032420320285812777,https://leetcode.com/problems/shortest-string-that-contains-three-strings,"String, Greedy, Enumeration" MEDIUM,Sum Game,68.8,0.00631720926588201,https://leetcode.com/problems/sum-game,"Math, String, Greedy, Game Theory" MEDIUM,Reorganize String,68.8,0.005768066906313869,https://leetcode.com/problems/reorganize-string,"Hash Table, String, Greedy, Sorting, Heap (Priority Queue), Counting" MEDIUM,Count Valid Sequences,68.8,0.0042428567181042424,https://leetcode.com/problems/count-valid-sequences,"Math, Combinatorics" HARD,Minimum Number of Refueling Stops,62.3,0.004204309953447233,https://leetcode.com/problems/minimum-number-of-refueling-stops,"Array, Dynamic Programming, Greedy, Heap (Priority Queue)" EASY,Count Binary Substrings,62.3,0.007063877089923181,https://leetcode.com/problems/count-binary-substrings,"Two Pointers, String" MEDIUM,Furthest Building You Can Reach,62.3,0.005120214163959792,https://leetcode.com/problems/furthest-building-you-can-reach,"Array, Greedy, Heap (Priority Queue)" HARD,Trapping Rain Water,58.3,0.00684224823490451,https://leetcode.com/problems/trapping-rain-water,"Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack" MEDIUM,Maximum Product Subarray,58.3,0.0037223909850379296,https://leetcode.com/problems/maximum-product-subarray,"Array, Dynamic Programming" MEDIUM,Insert Delete GetRandom O(1),58.3,0.005556959851923941,https://leetcode.com/problems/insert-delete-getrandom-o1,"Array, Hash Table, Math, Design, Randomized" HARD,Kth Smallest Number in Multiplication Table,58.3,0.005524910665402933,https://leetcode.com/problems/kth-smallest-number-in-multiplication-table,"Math, Binary Search" MEDIUM,Asteroid Collision,58.3,0.0049329329482691265,https://leetcode.com/problems/asteroid-collision,"Array, Stack, Simulation" MEDIUM,Longest Repeating Character Replacement,58.3,0.006087654889093407,https://leetcode.com/problems/longest-repeating-character-replacement,"Hash Table, String, Sliding Window" HARD,Median of Two Sorted Arrays,53.3,0.004785842489433072,https://leetcode.com/problems/median-of-two-sorted-arrays,"Array, Binary Search, Divide and Conquer" EASY,Valid Parentheses,53.3,0.00453411448062189,https://leetcode.com/problems/valid-parentheses,"String, Stack, Bracket Sequences" MEDIUM,Heaters,53.3,0.004283082038375395,https://leetcode.com/problems/heaters,"Array, Two Pointers, Binary Search, Sorting" MEDIUM,K-th Symbol in Grammar,53.3,0.004884076810719502,https://leetcode.com/problems/k-th-symbol-in-grammar,"Math, Bit Manipulation, Recursion" MEDIUM,Using a Robot to Print the Lexicographically Smallest String,53.3,0.00622391310341025,https://leetcode.com/problems/using-a-robot-to-print-the-lexicographically-smallest-string,"Hash Table, String, Stack, Greedy" HARD,K-th Smallest in Lexicographical Order,46.9,0.004670590753424657,https://leetcode.com/problems/k-th-smallest-in-lexicographical-order,Trie EASY,Majority Element,46.9,0.006653557791899981,https://leetcode.com/problems/majority-element,"Array, Hash Table, Divide and Conquer, Sorting, Counting, Boyer–Moore Majority Vote Algorithm" HARD,Split Array Largest Sum,46.9,0.0061639967219879535,https://leetcode.com/problems/split-array-largest-sum,"Array, Binary Search, Dynamic Programming, Greedy, Prefix Sum" HARD,Consecutive Numbers Sum,46.9,0.0043108005812988555,https://leetcode.com/problems/consecutive-numbers-sum,"Math, Enumeration" MEDIUM,Longest String Chain,46.9,0.0063556855597365946,https://leetcode.com/problems/longest-string-chain,"Array, Hash Table, Two Pointers, String, Dynamic Programming, Sorting" MEDIUM,Sum of Subarray Ranges,46.9,0.006212061435062916,https://leetcode.com/problems/sum-of-subarray-ranges,"Array, Stack, Monotonic Stack" MEDIUM,Find Triangular Sum of an Array,46.9,0.0081990552485643,https://leetcode.com/problems/find-triangular-sum-of-an-array,"Array, Math, Simulation, Combinatorics, Number Theory" MEDIUM,Number of Islands,46.9,0.006531452178254448,https://leetcode.com/problems/number-of-islands,"Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix" HARD,Longest Valid Parentheses,46.9,0.004136895753090945,https://leetcode.com/problems/longest-valid-parentheses,"String, Dynamic Programming, Stack, Bracket Sequences" MEDIUM,LRU Cache,46.9,0.0048257065069490825,https://leetcode.com/problems/lru-cache,"Hash Table, Linked List, Design, Doubly-Linked List" MEDIUM,Rotting Oranges,46.9,0.005959385783887344,https://leetcode.com/problems/rotting-oranges,"Array, Breadth-First Search, Matrix" HARD,Minimum Cost to Merge Stones,46.9,0.004727165527607311,https://leetcode.com/problems/minimum-cost-to-merge-stones,"Array, Dynamic Programming, Prefix Sum" MEDIUM,Longest Substring Without Repeating Characters,46.9,0.004001908063527696,https://leetcode.com/problems/longest-substring-without-repeating-characters,"Hash Table, String, Sliding Window" MEDIUM,Search a 2D Matrix,46.9,0.005434084773324906,https://leetcode.com/problems/search-a-2d-matrix,"Array, Binary Search, Matrix" MEDIUM,Maximal Square,46.9,0.005105147522843107,https://leetcode.com/problems/maximal-square,"Array, Dynamic Programming, Matrix" EASY,Count Vowel Substrings of a String,46.9,0.00737415176613257,https://leetcode.com/problems/count-vowel-substrings-of-a-string,"Hash Table, String" MEDIUM,Longest Consecutive Sequence,37.9,0.004728604783426727,https://leetcode.com/problems/longest-consecutive-sequence,"Array, Hash Table, Union-Find" MEDIUM,Basic Calculator II,37.9,0.004727704112315025,https://leetcode.com/problems/basic-calculator-ii,"Math, String, Stack" HARD,Put Marbles in Bags,37.9,0.007203301565063504,https://leetcode.com/problems/put-marbles-in-bags,"Array, Greedy, Sorting, Heap (Priority Queue)" MEDIUM,Open the Lock,37.9,0.006162096253137632,https://leetcode.com/problems/open-the-lock,"Array, Hash Table, String, Breadth-First Search, Bidirectional Search" HARD,Count the Number of Incremovable Subarrays II,37.9,0.004009270744923941,https://leetcode.com/problems/count-the-number-of-incremovable-subarrays-ii,"Array, Two Pointers, Binary Search" MEDIUM,4Sum,37.9,0.00419427419367053,https://leetcode.com/problems/4sum,"Array, Two Pointers, Sorting" MEDIUM,Find the Smallest Divisor Given a Threshold,37.9,0.0066928727496116955,https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold,"Array, Binary Search" MEDIUM,Find First and Last Position of Element in Sorted Array,37.9,0.004980555347014361,https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array,"Array, Binary Search" MEDIUM,Coin Change II,37.9,0.00590902144057203,https://leetcode.com/problems/coin-change-ii,"Array, Dynamic Programming, Knapsack Problem, Complete Knapsack" MEDIUM,Flatten Nested List Iterator,37.9,0.006594070204097183,https://leetcode.com/problems/flatten-nested-list-iterator,"Stack, Tree, Depth-First Search, Design, Queue, Iterator" EASY,Excel Sheet Column Title,37.9,0.004785675789324062,https://leetcode.com/problems/excel-sheet-column-title,"Math, String" MEDIUM,Maximize Score of Numbers in Ranges,37.9,0.0035905896468974973,https://leetcode.com/problems/maximize-score-of-numbers-in-ranges,"Array, Binary Search, Greedy, Sorting" MEDIUM,Design A Leaderboard,37.9,0.006801334834034318,https://leetcode.com/problems/design-a-leaderboard,"Hash Table, Design, Sorting" MEDIUM,Decode Ways,37.9,0.0038775164857825927,https://leetcode.com/problems/decode-ways,"String, Dynamic Programming" HARD,Text Justification,37.9,0.005245330526122124,https://leetcode.com/problems/text-justification,"Array, String, Simulation" HARD,Number of Ways to Wear Different Hats to Each Other,37.9,0.004704388497095042,https://leetcode.com/problems/number-of-ways-to-wear-different-hats-to-each-other,"Array, Dynamic Programming, Bit Manipulation, Bitmask, Bipartite Graph, Matching (Graph), Perfect Matching" HARD,Wildcard Matching,37.9,0.0033056173161205528,https://leetcode.com/problems/wildcard-matching,"String, Dynamic Programming, Greedy, Recursion" MEDIUM,Number of Ways to Select Buildings,37.9,0.005104014697141623,https://leetcode.com/problems/number-of-ways-to-select-buildings,"String, Dynamic Programming, Prefix Sum" MEDIUM,Maximum Width Ramp,37.9,0.005597561225850801,https://leetcode.com/problems/maximum-width-ramp,"Array, Two Pointers, Stack, Monotonic Stack" MEDIUM,Loud and Rich,37.9,0.006426542848126944,https://leetcode.com/problems/loud-and-rich,"Array, Depth-First Search, Graph Theory, Topological Sort, Directed Acyclic Graph" EASY,Two Sum,37.9,0.005803619385273128,https://leetcode.com/problems/two-sum,"Array, Hash Table" EASY,Merge Sorted Array,37.9,0.00559067218664377,https://leetcode.com/problems/merge-sorted-array,"Array, Two Pointers, Sorting" MEDIUM,Remove Duplicate Letters,37.9,0.005467632988828314,https://leetcode.com/problems/remove-duplicate-letters,"String, Stack, Greedy, Monotonic Stack" MEDIUM,House Robber II,37.9,0.004567977338774853,https://leetcode.com/problems/house-robber-ii,"Array, Dynamic Programming" MEDIUM,Recover Binary Search Tree,37.9,0.0061240959885303994,https://leetcode.com/problems/recover-binary-search-tree,"Tree, Depth-First Search, Binary Search Tree, Binary Tree" EASY,Valid Anagram,37.9,0.006876756337549323,https://leetcode.com/problems/valid-anagram,"Hash Table, String, Sorting" MEDIUM,Boats to Save People,37.9,0.006266557441869114,https://leetcode.com/problems/boats-to-save-people,"Array, Two Pointers, Greedy, Sorting, Timsort" MEDIUM,All Nodes Distance K in Binary Tree,37.9,0.006818721449988601,https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree,"Hash Table, Tree, Depth-First Search, Breadth-First Search, Binary Tree" MEDIUM,Coin Change,37.9,0.004930611283432774,https://leetcode.com/problems/coin-change,"Array, Dynamic Programming, Breadth-First Search, Knapsack Problem, Complete Knapsack" MEDIUM,Palindrome Partitioning,37.9,0.00748103623660194,https://leetcode.com/problems/palindrome-partitioning,"String, Dynamic Programming, Backtracking" HARD,Shortest Path in a Grid with Obstacles Elimination,37.9,0.004678145707974713,https://leetcode.com/problems/shortest-path-in-a-grid-with-obstacles-elimination,"Array, Breadth-First Search, Matrix" MEDIUM,Maximum Number of Removable Characters,37.9,0.004801414637164127,https://leetcode.com/problems/maximum-number-of-removable-characters,"Array, Two Pointers, String, Binary Search" MEDIUM,Max Consecutive Ones III,37.9,0.0068604786467397864,https://leetcode.com/problems/max-consecutive-ones-iii,"Array, Binary Search, Sliding Window, Prefix Sum" MEDIUM,Kth Largest Element in an Array,37.9,0.006941742121123445,https://leetcode.com/problems/kth-largest-element-in-an-array,"Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect" MEDIUM,Find Maximum Removals From Source String,37.9,0.003919140910197128,https://leetcode.com/problems/find-maximum-removals-from-source-string,"Array, Hash Table, Two Pointers, String, Dynamic Programming" EASY,Diameter of Binary Tree,37.9,0.006639928700911323,https://leetcode.com/problems/diameter-of-binary-tree,"Tree, Depth-First Search, Binary Tree, DP on Trees" MEDIUM,Predict the Winner,37.9,0.00600340898896564,https://leetcode.com/problems/predict-the-winner,"Array, Math, Dynamic Programming, Recursion, Minimax, Game Theory, Zero-Sum Game" MEDIUM,Find K Closest Elements,37.9,0.00501997368886366,https://leetcode.com/problems/find-k-closest-elements,"Array, Two Pointers, Binary Search, Sliding Window, Sorting, Heap (Priority Queue)" EASY,Best Time to Buy and Sell Stock,37.9,0.005752120075140459,https://leetcode.com/problems/best-time-to-buy-and-sell-stock,"Array, Dynamic Programming" HARD,Remove Max Number of Edges to Keep Graph Fully Traversable,37.9,0.007007306094020969,https://leetcode.com/problems/remove-max-number-of-edges-to-keep-graph-fully-traversable,"Union-Find, Graph Theory" HARD,Find Median from Data Stream,37.9,0.005511992744039022,https://leetcode.com/problems/find-median-from-data-stream,"Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream" MEDIUM,Meeting Rooms II,37.9,0.005284522651395987,https://leetcode.com/problems/meeting-rooms-ii,"Array, Two Pointers, Greedy, Sorting, Heap (Priority Queue), Prefix Sum" HARD,Create Maximum Number,37.9,0.00375287159497139,https://leetcode.com/problems/create-maximum-number,"Array, Two Pointers, Stack, Greedy, Monotonic Stack" EASY,Linked List Cycle,37.9,0.005524667006484562,https://leetcode.com/problems/linked-list-cycle,"Hash Table, Linked List, Two Pointers, Floyd's Cycle Finding Algorithm" HARD,Maximal Rectangle,37.9,0.0060089397140270315,https://leetcode.com/problems/maximal-rectangle,"Array, Dynamic Programming, Stack, Matrix, Monotonic Stack"