Difficulty,Title,Frequency,Acceptance Rate,Link,Topics HARD,Contain Virus,100.0,0.005652886012415798,https://leetcode.com/problems/contain-virus,"Array, Depth-First Search, Breadth-First Search, Matrix, Simulation" MEDIUM,Maximum Points You Can Obtain from Cards,96.7,0.005853504796833982,https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards,"Array, Sliding Window, Prefix Sum" MEDIUM,Container With Most Water,84.6,0.006103890321574941,https://leetcode.com/problems/container-with-most-water,"Array, Two Pointers, Greedy" MEDIUM,Transform Array to All Equal Elements,82.6,0.0033463485932035283,https://leetcode.com/problems/transform-array-to-all-equal-elements,"Array, Greedy" MEDIUM,Rotting Oranges,80.3,0.005959392164771063,https://leetcode.com/problems/rotting-oranges,"Array, Breadth-First Search, Matrix" MEDIUM,Minimum Number of Coins to be Added,77.8,0.005823945349952061,https://leetcode.com/problems/minimum-number-of-coins-to-be-added,"Array, Greedy, Sorting" HARD,Design Movie Rental System,77.8,0.00620195676005374,https://leetcode.com/problems/design-movie-rental-system,"Array, Hash Table, Design, Heap (Priority Queue), Ordered Set" EASY,Two Sum,75.0,0.0058036178765062,https://leetcode.com/problems/two-sum,"Array, Hash Table" HARD,The Score of Students Solving Math Expression,75.0,0.0034874382207578255,https://leetcode.com/problems/the-score-of-students-solving-math-expression,"Array, Hash Table, Math, String, Dynamic Programming, Stack, Memoization" MEDIUM,Minimum Cost to Reach City With Discounts,75.0,0.006232442510876321,https://leetcode.com/problems/minimum-cost-to-reach-city-with-discounts,"Graph Theory, Heap (Priority Queue), Shortest Path, Dijkstra's Algorithm" MEDIUM,Numbers With Same Consecutive Differences,75.0,0.00594057327233751,https://leetcode.com/problems/numbers-with-same-consecutive-differences,"Backtracking, Breadth-First Search" HARD,Triples with Bitwise AND Equal To Zero,75.0,0.00607158297117113,https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero,"Array, Hash Table, Bit Manipulation" MEDIUM,Minimum Limit of Balls in a Bag,75.0,0.0065847879091246704,https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag,"Array, Binary Search" EASY,Find The Least Frequent Digit,75.0,0.006886016451233843,https://leetcode.com/problems/find-the-least-frequent-digit,"Array, Hash Table, Math, Counting" MEDIUM,Sum of Decoded Numbers,75.0,0.004478378527641244,https://leetcode.com/problems/sum-of-decoded-numbers,"Array, Math, Simulation" MEDIUM,Gas Station,71.9,0.004888867847670787,https://leetcode.com/problems/gas-station,"Array, Greedy" HARD,Trapping Rain Water,68.2,0.006842249691716513,https://leetcode.com/problems/trapping-rain-water,"Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack" HARD,Largest Rectangle in Histogram,68.2,0.005106155252599022,https://leetcode.com/problems/largest-rectangle-in-histogram,"Array, Stack, Monotonic Stack, Range Minimum/Maximum Query" EASY,Next Greater Element I,63.9,0.007697152368736589,https://leetcode.com/problems/next-greater-element-i,"Array, Hash Table, Stack, Monotonic Stack" MEDIUM,Cheapest Flights Within K Stops,63.9,0.004272264719690899,https://leetcode.com/problems/cheapest-flights-within-k-stops,"Dynamic Programming, Depth-First Search, Breadth-First Search, Graph Theory, Heap (Priority Queue), Shortest Path" MEDIUM,Kth Largest Element in an Array,58.7,0.00694174114085985,https://leetcode.com/problems/kth-largest-element-in-an-array,"Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect" HARD,Create Maximum Number,58.7,0.003752895634038034,https://leetcode.com/problems/create-maximum-number,"Array, Two Pointers, Stack, Greedy, Monotonic Stack" MEDIUM,Koko Eating Bananas,58.7,0.00507168001150058,https://leetcode.com/problems/koko-eating-bananas,"Array, Binary Search" MEDIUM,Search in Rotated Sorted Array,58.7,0.004579981513487497,https://leetcode.com/problems/search-in-rotated-sorted-array,"Array, Binary Search" HARD,Cut Off Trees for Golf Event,58.7,0.0037089322701556165,https://leetcode.com/problems/cut-off-trees-for-golf-event,"Array, Breadth-First Search, Heap (Priority Queue), Matrix" HARD,Find Median from Data Stream,58.7,0.005511998317652397,https://leetcode.com/problems/find-median-from-data-stream,"Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream" MEDIUM,Sum of Subarray Minimums,58.7,0.003907149448015764,https://leetcode.com/problems/sum-of-subarray-minimums,"Array, Dynamic Programming, Stack, Monotonic Stack" MEDIUM,Unique Paths,58.7,0.006736987453323278,https://leetcode.com/problems/unique-paths,"Math, Dynamic Programming, Combinatorics" HARD,Rectangle Area II,58.7,0.005688581230686877,https://leetcode.com/problems/rectangle-area-ii,"Array, Segment Tree, Sweep Line, Ordered Set" MEDIUM,Edit Distance,52.0,0.006145645906580751,https://leetcode.com/problems/edit-distance,"String, Dynamic Programming" MEDIUM,Course Schedule,52.0,0.005241162184009473,https://leetcode.com/problems/course-schedule,"Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort, Directed Acyclic Graph" MEDIUM,Amount of Time for Binary Tree to Be Infected,52.0,0.006612980098577141,https://leetcode.com/problems/amount-of-time-for-binary-tree-to-be-infected,"Hash Table, Tree, Depth-First Search, Breadth-First Search, Binary Tree" MEDIUM,Asteroid Collision,52.0,0.004932930963088304,https://leetcode.com/problems/asteroid-collision,"Array, Stack, Simulation" MEDIUM,Minimum Area Rectangle,52.0,0.0055604928962141075,https://leetcode.com/problems/minimum-area-rectangle,"Array, Hash Table, Math, Geometry, Sorting" HARD,Cherry Pickup II,52.0,0.00726491824020464,https://leetcode.com/problems/cherry-pickup-ii,"Array, Dynamic Programming, Matrix" MEDIUM,Merge Intervals,52.0,0.005302573263470528,https://leetcode.com/problems/merge-intervals,"Array, Sorting, Quicksort" HARD,Reconstruct Itinerary,52.0,0.004514236792727408,https://leetcode.com/problems/reconstruct-itinerary,"Array, String, Depth-First Search, Graph Theory, Sorting, Heap (Priority Queue), Eulerian Circuit, Eulerian Path, Semi-Eulerian Graph" MEDIUM,Minimum Number of Days to Make m Bouquets,52.0,0.005732343656972108,https://leetcode.com/problems/minimum-number-of-days-to-make-m-bouquets,"Array, Binary Search" HARD,Word Ladder,52.0,0.004677976512367626,https://leetcode.com/problems/word-ladder,"Hash Table, String, Breadth-First Search, Bidirectional Search" MEDIUM,Generate Parentheses,52.0,0.007971335514753413,https://leetcode.com/problems/generate-parentheses,"String, Dynamic Programming, Backtracking, Bracket Sequences" MEDIUM,Next Permutation,52.0,0.0046395804985513685,https://leetcode.com/problems/next-permutation,"Array, Two Pointers" HARD,Critical Connections in a Network,52.0,0.006073543353589356,https://leetcode.com/problems/critical-connections-in-a-network,"Depth-First Search, Graph Theory, Biconnected Component, Bridge (Graph)" HARD,Trapping Rain Water II,52.0,0.006432132552120841,https://leetcode.com/problems/trapping-rain-water-ii,"Array, Breadth-First Search, Heap (Priority Queue), Matrix" MEDIUM,Next Greater Element II,52.0,0.0069334225537324755,https://leetcode.com/problems/next-greater-element-ii,"Array, Stack, Monotonic Stack" EASY,Best Time to Buy and Sell Stock,52.0,0.005752121271290462,https://leetcode.com/problems/best-time-to-buy-and-sell-stock,"Array, Dynamic Programming" MEDIUM,3Sum,52.0,0.004007310454867712,https://leetcode.com/problems/3sum,"Array, Two Pointers, Sorting" MEDIUM,Pacific Atlantic Water Flow,52.0,0.006161847497816401,https://leetcode.com/problems/pacific-atlantic-water-flow,"Array, Depth-First Search, Breadth-First Search, Matrix" MEDIUM,Longest Palindromic Substring,52.0,0.003886671216853797,https://leetcode.com/problems/longest-palindromic-substring,"Two Pointers, String, Dynamic Programming, Manacher" HARD,Merge k Sorted Lists,52.0,0.006078430747854691,https://leetcode.com/problems/merge-k-sorted-lists,"Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort, Tournament Sort" MEDIUM,Spiral Matrix,52.0,0.005814592867256155,https://leetcode.com/problems/spiral-matrix,"Array, Matrix, Simulation" MEDIUM,Jump Game II,52.0,0.004366656039919607,https://leetcode.com/problems/jump-game-ii,"Array, Dynamic Programming, Greedy" HARD,Median of Two Sorted Arrays,42.5,0.004785841111513346,https://leetcode.com/problems/median-of-two-sorted-arrays,"Array, Binary Search, Divide and Conquer" HARD,Binary Tree Maximum Path Sum,42.5,0.004289441278079543,https://leetcode.com/problems/binary-tree-maximum-path-sum,"Dynamic Programming, Tree, Depth-First Search, Binary Tree, DP on Trees" HARD,Dungeon Game,42.5,0.004253097027961885,https://leetcode.com/problems/dungeon-game,"Array, Dynamic Programming, Matrix" MEDIUM,Number of Islands,42.5,0.006531446455917994,https://leetcode.com/problems/number-of-islands,"Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix" MEDIUM,Subarray Sum Equals K,42.5,0.004835074565217614,https://leetcode.com/problems/subarray-sum-equals-k,"Array, Hash Table, Prefix Sum" HARD,Smallest Range Covering Elements from K Lists,42.5,0.007042661590953031,https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists,"Array, Hash Table, Greedy, Sliding Window, Sorting, Heap (Priority Queue)" MEDIUM,Maximum Width of Binary Tree,42.5,0.004620525893075393,https://leetcode.com/problems/maximum-width-of-binary-tree,"Tree, Depth-First Search, Breadth-First Search, Binary Tree" HARD,Cherry Pickup,42.5,0.004074181020637922,https://leetcode.com/problems/cherry-pickup,"Array, Dynamic Programming, Matrix" MEDIUM,Shortest Bridge,42.5,0.005986790330488956,https://leetcode.com/problems/shortest-bridge,"Array, Depth-First Search, Breadth-First Search, Matrix" MEDIUM,Capacity To Ship Packages Within D Days,42.5,0.007481786250078604,https://leetcode.com/problems/capacity-to-ship-packages-within-d-days,"Array, Binary Search" MEDIUM,Car Pooling,42.5,0.005657425241857692,https://leetcode.com/problems/car-pooling,"Array, Sorting, Heap (Priority Queue), Simulation, Prefix Sum" MEDIUM,Sort Colors,42.5,0.007029498138698923,https://leetcode.com/problems/sort-colors,"Array, Two Pointers, Sorting, Quicksort, Bubble Sort" MEDIUM,Rotate Image,42.5,0.008083476528805126,https://leetcode.com/problems/rotate-image,"Array, Math, Matrix" MEDIUM,Delete Node in a BST,42.5,0.005558417371549821,https://leetcode.com/problems/delete-node-in-a-bst,"Tree, Binary Search Tree, Binary Tree" MEDIUM,Ways to Split Array Into Good Subarrays,42.5,0.0035393131629901527,https://leetcode.com/problems/ways-to-split-array-into-good-subarrays,"Array, Math, Dynamic Programming" MEDIUM,Evaluate Division,42.5,0.006467511414493786,https://leetcode.com/problems/evaluate-division,"Array, String, Depth-First Search, Breadth-First Search, Union-Find, Graph Theory, Shortest Path, Bellman–Ford Algorithm, Floyd–Warshall Algorithm" MEDIUM,3Sum Closest,42.5,0.0047673712766763045,https://leetcode.com/problems/3sum-closest,"Array, Two Pointers, Sorting" MEDIUM,Course Schedule II,42.5,0.005644353952571894,https://leetcode.com/problems/course-schedule-ii,"Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort" HARD,Maximum Frequency Stack,42.5,0.006718534057935105,https://leetcode.com/problems/maximum-frequency-stack,"Hash Table, Stack, Design, Ordered Set" MEDIUM,Magnetic Force Between Two Balls,42.5,0.00727792695873333,https://leetcode.com/problems/magnetic-force-between-two-balls,"Array, Binary Search, Sorting" MEDIUM,Sort Characters By Frequency,42.5,0.0075890039750998416,https://leetcode.com/problems/sort-characters-by-frequency,"Hash Table, String, Sorting, Heap (Priority Queue), Bucket Sort, Counting" MEDIUM,Find Leaves of Binary Tree,42.5,0.008138531024482925,https://leetcode.com/problems/find-leaves-of-binary-tree,"Tree, Depth-First Search, Binary Tree, DP on Trees" MEDIUM,Find K Closest Elements,42.5,0.005019973620286628,https://leetcode.com/problems/find-k-closest-elements,"Array, Two Pointers, Binary Search, Sliding Window, Sorting, Heap (Priority Queue)" HARD,Number of Atoms,42.5,0.006527622735185517,https://leetcode.com/problems/number-of-atoms,"Hash Table, String, Stack, Sorting" MEDIUM,Maximal Square,42.5,0.005105149951983008,https://leetcode.com/problems/maximal-square,"Array, Dynamic Programming, Matrix" HARD,Serialize and Deserialize Binary Tree,42.5,0.006127519287145388,https://leetcode.com/problems/serialize-and-deserialize-binary-tree,"String, Tree, Depth-First Search, Breadth-First Search, Design, Binary Tree" MEDIUM,Min Stack,42.5,0.005879063266642558,https://leetcode.com/problems/min-stack,"Stack, Design" MEDIUM,Decode Ways,42.5,0.003877514922174397,https://leetcode.com/problems/decode-ways,"String, Dynamic Programming" MEDIUM,Find the Duplicate Number,42.5,0.006500941716400821,https://leetcode.com/problems/find-the-duplicate-number,"Array, Two Pointers, Binary Search, Bit Manipulation, Pigeonhole Principle, Floyd's Cycle Finding Algorithm" EASY,Valid Parentheses,42.5,0.004534116940466955,https://leetcode.com/problems/valid-parentheses,"String, Stack, Bracket Sequences" EASY,Diameter of Binary Tree,42.5,0.006639932770796674,https://leetcode.com/problems/diameter-of-binary-tree,"Tree, Depth-First Search, Binary Tree, DP on Trees" MEDIUM,LRU Cache,42.5,0.004825710937770274,https://leetcode.com/problems/lru-cache,"Hash Table, Linked List, Design, Doubly-Linked List" MEDIUM,Subsets,42.5,0.008293249017373048,https://leetcode.com/problems/subsets,"Array, Backtracking, Bit Manipulation" MEDIUM,Map Sum Pairs,42.5,0.0057478854659734615,https://leetcode.com/problems/map-sum-pairs,"Hash Table, String, Design, Trie" HARD,Split Array Largest Sum,42.5,0.006163984577816484,https://leetcode.com/problems/split-array-largest-sum,"Array, Binary Search, Dynamic Programming, Greedy, Prefix Sum" HARD,Russian Doll Envelopes,42.5,0.003833089964475047,https://leetcode.com/problems/russian-doll-envelopes,"Array, Binary Search, Dynamic Programming, Sorting, Longest Increasing Subsequence" MEDIUM,Loud and Rich,42.5,0.006426542848126944,https://leetcode.com/problems/loud-and-rich,"Array, Depth-First Search, Graph Theory, Topological Sort, Directed Acyclic Graph" MEDIUM,Remove Nth Node From End of List,42.5,0.005289988725936478,https://leetcode.com/problems/remove-nth-node-from-end-of-list,"Linked List, Two Pointers" MEDIUM,Jump Game,42.5,0.00416691020138183,https://leetcode.com/problems/jump-game,"Array, Dynamic Programming, Greedy" MEDIUM,Copy List with Random Pointer,42.5,0.006388444590948309,https://leetcode.com/problems/copy-list-with-random-pointer,"Hash Table, Linked List" MEDIUM,Daily Temperatures,42.5,0.006927663311703648,https://leetcode.com/problems/daily-temperatures,"Array, Stack, Monotonic Stack" MEDIUM,Unique Paths II,42.5,0.004523932737484101,https://leetcode.com/problems/unique-paths-ii,"Array, Dynamic Programming, Matrix"