Difficulty,Title,Frequency,Acceptance Rate,Link,Topics MEDIUM,Longest Substring Without Repeating Characters,100.0,0.004001913168512742,https://leetcode.com/problems/longest-substring-without-repeating-characters,"Hash Table, String, Sliding Window" MEDIUM,Number of Islands,96.9,0.006531446094380534,https://leetcode.com/problems/number-of-islands,"Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix" EASY,Valid Parentheses,95.2,0.004534117415370311,https://leetcode.com/problems/valid-parentheses,"String, Stack, Bracket Sequences" MEDIUM,Generate Parentheses,93.4,0.007971338523353258,https://leetcode.com/problems/generate-parentheses,"String, Dynamic Programming, Backtracking, Bracket Sequences" HARD,Trapping Rain Water,93.4,0.0068422555189191535,https://leetcode.com/problems/trapping-rain-water,"Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack" MEDIUM,Merge Intervals,93.4,0.0053025648312917985,https://leetcode.com/problems/merge-intervals,"Array, Sorting, Quicksort" MEDIUM,LRU Cache,93.4,0.004825722825290219,https://leetcode.com/problems/lru-cache,"Hash Table, Linked List, Design, Doubly-Linked List" EASY,Two Sum,87.0,0.005803622308911278,https://leetcode.com/problems/two-sum,"Array, Hash Table" MEDIUM,Group Anagrams,84.5,0.007344438860866744,https://leetcode.com/problems/group-anagrams,"Array, Hash Table, String, Sorting" MEDIUM,Search in Rotated Sorted Array,81.7,0.004579983309321303,https://leetcode.com/problems/search-in-rotated-sorted-array,"Array, Binary Search" MEDIUM,Word Break,81.7,0.005002421308462843,https://leetcode.com/problems/word-break,"Array, Hash Table, String, Dynamic Programming, Trie, Memoization, Brute-Force Search" MEDIUM,Divide Intervals Into Minimum Number of Groups,81.7,0.006347557235664485,https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups,"Array, Two Pointers, Greedy, Sorting, Heap (Priority Queue), Prefix Sum" EASY,Middle of the Linked List,81.7,0.008250614855441313,https://leetcode.com/problems/middle-of-the-linked-list,"Linked List, Two Pointers" MEDIUM,Delete and Earn,81.7,0.0057648439637667595,https://leetcode.com/problems/delete-and-earn,"Array, Hash Table, Dynamic Programming" MEDIUM,Container With Most Water,78.6,0.006103881997278695,https://leetcode.com/problems/container-with-most-water,"Array, Two Pointers, Greedy" MEDIUM,3Sum,78.6,0.004007312932178484,https://leetcode.com/problems/3sum,"Array, Two Pointers, Sorting" HARD,Number of Ways to Separate Numbers,78.6,0.0021885018166274846,https://leetcode.com/problems/number-of-ways-to-separate-numbers,"String, Dynamic Programming, Prefix Sum" EASY,The Winner University,78.6,0.007543423106947698,https://leetcode.com/problems/the-winner-university,Database HARD,Count Good Triplets in an Array,78.6,0.0065339216321243536,https://leetcode.com/problems/count-good-triplets-in-an-array,"Array, Binary Search, Divide and Conquer, Binary Indexed Tree, Segment Tree, Merge Sort, Ordered Set" HARD,Minimum Number of Operations to Make Arrays Similar,78.6,0.006167900246716009,https://leetcode.com/problems/minimum-number-of-operations-to-make-arrays-similar,"Array, Greedy, Sorting" MEDIUM,Minimum Operations to Make Array Equal II,78.6,0.0033482222819272794,https://leetcode.com/problems/minimum-operations-to-make-array-equal-ii,"Array, Math, Greedy" HARD,Maximum Number of Tasks You Can Assign,78.6,0.004991962606167702,https://leetcode.com/problems/maximum-number-of-tasks-you-can-assign,"Array, Two Pointers, Binary Search, Greedy, Queue, Sorting, Monotonic Queue" EASY,Count Elements With Maximum Frequency,78.6,0.007970347867780189,https://leetcode.com/problems/count-elements-with-maximum-frequency,"Array, Hash Table, Counting" EASY,Maximum Length Substring With Two Occurrences,78.6,0.007775085669429222,https://leetcode.com/problems/maximum-length-substring-with-two-occurrences,"Hash Table, String, Sliding Window" MEDIUM,Circular Permutation in Binary Representation,78.6,0.0073177464322190635,https://leetcode.com/problems/circular-permutation-in-binary-representation,"Math, Backtracking, Bit Manipulation" MEDIUM,Find the N-th Value After K Seconds,78.6,0.005383386404233838,https://leetcode.com/problems/find-the-n-th-value-after-k-seconds,"Array, Math, Simulation, Combinatorics, Prefix Sum" EASY,XOR Operation in an Array,78.6,0.008801635822868473,https://leetcode.com/problems/xor-operation-in-an-array,"Math, Bit Manipulation" EASY,Maximum Distance Between Unequal Words in Array I,78.6,0.008144208037825059,https://leetcode.com/problems/maximum-distance-between-unequal-words-in-array-i,"Array, String" MEDIUM,Top K Frequent Elements,75.1,0.006757427099969737,https://leetcode.com/problems/top-k-frequent-elements,"Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect" HARD,Max Stack,75.1,0.004605380336660356,https://leetcode.com/problems/max-stack,"Linked List, Stack, Design, Doubly-Linked List, Ordered Set" HARD,Trapping Rain Water II,75.1,0.006432132552120841,https://leetcode.com/problems/trapping-rain-water-ii,"Array, Breadth-First Search, Heap (Priority Queue), Matrix" MEDIUM,Sort Colors,71.1,0.007029502241457977,https://leetcode.com/problems/sort-colors,"Array, Two Pointers, Sorting, Quicksort, Bubble Sort" MEDIUM,Longest Consecutive Sequence,71.1,0.004728615778946082,https://leetcode.com/problems/longest-consecutive-sequence,"Array, Hash Table, Union-Find" MEDIUM,Coin Change,71.1,0.004930616706310801,https://leetcode.com/problems/coin-change,"Array, Dynamic Programming, Breadth-First Search, Knapsack Problem, Complete Knapsack" MEDIUM,Advantage Shuffle,71.1,0.005515222482435597,https://leetcode.com/problems/advantage-shuffle,"Array, Two Pointers, Greedy, Sorting" MEDIUM,Longest Palindromic Substring,66.3,0.0038866757720046586,https://leetcode.com/problems/longest-palindromic-substring,"Two Pointers, String, Dynamic Programming, Manacher" HARD,Merge k Sorted Lists,66.3,0.006078443866316191,https://leetcode.com/problems/merge-k-sorted-lists,"Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort, Tournament Sort" MEDIUM,Maximum Subarray,66.3,0.00539935960170864,https://leetcode.com/problems/maximum-subarray,"Array, Divide and Conquer, Dynamic Programming" MEDIUM,House Robber,66.3,0.0053686314011807245,https://leetcode.com/problems/house-robber,"Array, Dynamic Programming" EASY,First Unique Character in a String,66.3,0.006654133469797843,https://leetcode.com/problems/first-unique-character-in-a-string,"Hash Table, String, Queue, Counting" HARD,LFU Cache,66.3,0.005051298260124657,https://leetcode.com/problems/lfu-cache,"Hash Table, Linked List, Design, Doubly-Linked List" HARD,Find Median from Data Stream,66.3,0.005512005325213046,https://leetcode.com/problems/find-median-from-data-stream,"Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream" MEDIUM,Sort the Matrix Diagonally,66.3,0.008329533264537814,https://leetcode.com/problems/sort-the-matrix-diagonally,"Array, Sorting, Matrix" MEDIUM,Permutation in String,66.3,0.004992714672574866,https://leetcode.com/problems/permutation-in-string,"Hash Table, Two Pointers, String, Sliding Window" HARD,Median of Two Sorted Arrays,60.4,0.004785841052623307,https://leetcode.com/problems/median-of-two-sorted-arrays,"Array, Binary Search, Divide and Conquer" EASY,Longest Common Prefix,60.4,0.004853662441250515,https://leetcode.com/problems/longest-common-prefix,"Array, String, Trie" MEDIUM,Combination Sum,60.4,0.007727908804185191,https://leetcode.com/problems/combination-sum,"Array, Backtracking" MEDIUM,Spiral Matrix,60.4,0.005814592762393077,https://leetcode.com/problems/spiral-matrix,"Array, Matrix, Simulation" MEDIUM,Word Search,60.4,0.004831305354330426,https://leetcode.com/problems/word-search,"Array, String, Backtracking, Depth-First Search, Matrix" MEDIUM,Course Schedule II,60.4,0.005644355072448565,https://leetcode.com/problems/course-schedule-ii,"Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort" MEDIUM,Kth Largest Element in an Array,60.4,0.0069417407625481185,https://leetcode.com/problems/kth-largest-element-in-an-array,"Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect" MEDIUM,Subarray Sum Equals K,60.4,0.004835081459239531,https://leetcode.com/problems/subarray-sum-equals-k,"Array, Hash Table, Prefix Sum" MEDIUM,Zigzag Conversion,60.4,0.005537300770933206,https://leetcode.com/problems/zigzag-conversion,String MEDIUM,Integer to Roman,60.4,0.007185729393490961,https://leetcode.com/problems/integer-to-roman,"Hash Table, Math, String" MEDIUM,Palindromic Substrings,60.4,0.007333745738051381,https://leetcode.com/problems/palindromic-substrings,"Two Pointers, String, Dynamic Programming" MEDIUM,Rotting Oranges,60.4,0.005959401133076836,https://leetcode.com/problems/rotting-oranges,"Array, Breadth-First Search, Matrix" MEDIUM,Diagonal Traverse,60.4,0.006754085216285016,https://leetcode.com/problems/diagonal-traverse,"Array, Matrix, Simulation" MEDIUM,Set Matrix Zeroes,60.4,0.006378813710751141,https://leetcode.com/problems/set-matrix-zeroes,"Array, Hash Table, Matrix" MEDIUM,Construct Binary Tree from Inorder and Postorder Traversal,60.4,0.006980951358172188,https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal,"Array, Hash Table, Divide and Conquer, Tree, Binary Tree" EASY,Valid Palindrome,60.4,0.005452924144923419,https://leetcode.com/problems/valid-palindrome,"Two Pointers, String" MEDIUM,Next Permutation,60.4,0.004639580440319954,https://leetcode.com/problems/next-permutation,"Array, Two Pointers" EASY,Minimum Absolute Difference,60.4,0.0075163183966384,https://leetcode.com/problems/minimum-absolute-difference,"Array, Sorting" MEDIUM,Valid Sudoku,52.9,0.006525289751234946,https://leetcode.com/problems/valid-sudoku,"Array, Hash Table, Matrix" HARD,First Missing Positive,52.9,0.004397277393285868,https://leetcode.com/problems/first-missing-positive,"Array, Hash Table" HARD,Minimum Window Substring,52.9,0.00486970919289321,https://leetcode.com/problems/minimum-window-substring,"Hash Table, String, Sliding Window" HARD,Largest Rectangle in Histogram,52.9,0.005106156360578037,https://leetcode.com/problems/largest-rectangle-in-histogram,"Array, Stack, Monotonic Stack, Range Minimum/Maximum Query" MEDIUM,Decode Ways,52.9,0.0038775242149063902,https://leetcode.com/problems/decode-ways,"String, Dynamic Programming" MEDIUM,Binary Tree Zigzag Level Order Traversal,52.9,0.006466050859603392,https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal,"Tree, Breadth-First Search, Binary Tree" MEDIUM,Populating Next Right Pointers in Each Node,52.9,0.006792165878286821,https://leetcode.com/problems/populating-next-right-pointers-in-each-node,"Linked List, Tree, Depth-First Search, Breadth-First Search, Binary Tree" EASY,Best Time to Buy and Sell Stock,52.9,0.005752124029839985,https://leetcode.com/problems/best-time-to-buy-and-sell-stock,"Array, Dynamic Programming" MEDIUM,Copy List with Random Pointer,52.9,0.006388455518742504,https://leetcode.com/problems/copy-list-with-random-pointer,"Hash Table, Linked List" MEDIUM,Min Stack,52.9,0.005879072836885574,https://leetcode.com/problems/min-stack,"Stack, Design" MEDIUM,Rotate Array,52.9,0.004571846753016061,https://leetcode.com/problems/rotate-array,"Array, Math, Two Pointers" MEDIUM,Course Schedule,52.9,0.0052411728188860775,https://leetcode.com/problems/course-schedule,"Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort, Directed Acyclic Graph" HARD,Wildcard Matching,52.9,0.0033056230647383455,https://leetcode.com/problems/wildcard-matching,"String, Dynamic Programming, Greedy, Recursion" EASY,Move Zeroes,52.9,0.006450128371025824,https://leetcode.com/problems/move-zeroes,"Array, Two Pointers" MEDIUM,Subsets II,52.9,0.0062132562354362654,https://leetcode.com/problems/subsets-ii,"Array, Backtracking, Bit Manipulation" MEDIUM,Longest Increasing Subsequence,52.9,0.006009849100357148,https://leetcode.com/problems/longest-increasing-subsequence,"Array, Binary Search, Dynamic Programming, Longest Increasing Subsequence" MEDIUM,Maximum Sum of Distinct Subarrays With Length K,52.9,0.004359509274697511,https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k,"Array, Hash Table, Sliding Window" MEDIUM,The Maze,52.9,0.006056157974131196,https://leetcode.com/problems/the-maze,"Array, Depth-First Search, Breadth-First Search, Matrix" MEDIUM,Remove All Adjacent Duplicates in String II,52.9,0.006203668377768259,https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii,"String, Stack" MEDIUM,Next Greater Element III,52.9,0.003570284296028881,https://leetcode.com/problems/next-greater-element-iii,"Math, Two Pointers, String" HARD,Meeting Rooms III,52.9,0.005133970961732439,https://leetcode.com/problems/meeting-rooms-iii,"Array, Hash Table, Sorting, Heap (Priority Queue), Simulation" HARD,Candy,52.9,0.004941951655854013,https://leetcode.com/problems/candy,"Array, Greedy" MEDIUM,Find the Duplicate Number,52.9,0.00650094673845506,https://leetcode.com/problems/find-the-duplicate-number,"Array, Two Pointers, Binary Search, Bit Manipulation, Pigeonhole Principle, Floyd's Cycle Finding Algorithm" HARD,Sliding Window Maximum,52.9,0.004936743580253868,https://leetcode.com/problems/sliding-window-maximum,"Array, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue, Range Minimum/Maximum Query" HARD,Reverse Nodes in k-Group,42.5,0.006751127829876747,https://leetcode.com/problems/reverse-nodes-in-k-group,"Linked List, Recursion" MEDIUM,"Pow(x, n)",42.5,0.003926250908241679,https://leetcode.com/problems/powx-n,"Math, Recursion" EASY,Add Binary,42.5,0.005880362727200201,https://leetcode.com/problems/add-binary,"Math, String, Bit Manipulation, Simulation" MEDIUM,Product of Array Except Self,42.5,0.006937997644098914,https://leetcode.com/problems/product-of-array-except-self,"Array, Prefix Sum" MEDIUM,Flatten Nested List Iterator,42.5,0.0065940631310244975,https://leetcode.com/problems/flatten-nested-list-iterator,"Stack, Tree, Depth-First Search, Design, Queue, Iterator" MEDIUM,Daily Temperatures,42.5,0.006927662468942192,https://leetcode.com/problems/daily-temperatures,"Array, Stack, Monotonic Stack" MEDIUM,Longest Common Subsequence,42.5,0.005966797731631741,https://leetcode.com/problems/longest-common-subsequence,"String, Dynamic Programming, Longest Common Subsequence" MEDIUM,Contiguous Array,42.5,0.005261904530813888,https://leetcode.com/problems/contiguous-array,"Array, Hash Table, Prefix Sum" MEDIUM,Insert Interval,42.5,0.004619848750522195,https://leetcode.com/problems/insert-interval,Array MEDIUM,Search in Rotated Sorted Array II,42.5,0.004071635141358793,https://leetcode.com/problems/search-in-rotated-sorted-array-ii,"Array, Binary Search" MEDIUM,Triangle,42.5,0.005997383344306863,https://leetcode.com/problems/triangle,"Array, Dynamic Programming" MEDIUM,Combination Sum II,42.5,0.006034421411361775,https://leetcode.com/problems/combination-sum-ii,"Array, Backtracking" HARD,Count Different Palindromic Subsequences,42.5,0.004852082288008029,https://leetcode.com/problems/count-different-palindromic-subsequences,"String, Dynamic Programming" MEDIUM,Maximum Product Subarray,42.5,0.003722389864982254,https://leetcode.com/problems/maximum-product-subarray,"Array, Dynamic Programming" MEDIUM,Design Hit Counter,42.5,0.0069773327486426584,https://leetcode.com/problems/design-hit-counter,"Array, Binary Search, Design, Queue, Data Stream" MEDIUM,Find Minimum in Rotated Sorted Array,42.5,0.00554654295290061,https://leetcode.com/problems/find-minimum-in-rotated-sorted-array,"Array, Binary Search" MEDIUM,Meeting Rooms II,42.5,0.0052845025342410645,https://leetcode.com/problems/meeting-rooms-ii,"Array, Two Pointers, Greedy, Sorting, Heap (Priority Queue), Prefix Sum" MEDIUM,Asteroid Collision,42.5,0.004932937660708313,https://leetcode.com/problems/asteroid-collision,"Array, Stack, Simulation" MEDIUM,Subsets,42.5,0.00829324931786997,https://leetcode.com/problems/subsets,"Array, Backtracking, Bit Manipulation" EASY,Diameter of Binary Tree,42.5,0.006639930562032325,https://leetcode.com/problems/diameter-of-binary-tree,"Tree, Depth-First Search, Binary Tree, DP on Trees" EASY,Roman to Integer,42.5,0.006731045075296292,https://leetcode.com/problems/roman-to-integer,"Hash Table, Math, String" EASY,Rising Temperature,42.5,0.005243863046137142,https://leetcode.com/problems/rising-temperature,Database MEDIUM,Capacity To Ship Packages Within D Days,42.5,0.0074817924197012635,https://leetcode.com/problems/capacity-to-ship-packages-within-d-days,"Array, Binary Search" MEDIUM,Remove K Digits,42.5,0.003787993792995572,https://leetcode.com/problems/remove-k-digits,"String, Stack, Greedy, Monotonic Stack" MEDIUM,Edit Distance,42.5,0.006145645987478657,https://leetcode.com/problems/edit-distance,"String, Dynamic Programming" MEDIUM,Find All Duplicates in an Array,42.5,0.007722463774647419,https://leetcode.com/problems/find-all-duplicates-in-an-array,"Array, Hash Table, Sorting" EASY,Relative Sort Array,42.5,0.007550876797928336,https://leetcode.com/problems/relative-sort-array,"Array, Hash Table, Sorting, Counting Sort, Quicksort, Bubble Sort" MEDIUM,Number of Distinct Islands,42.5,0.006303565529284062,https://leetcode.com/problems/number-of-distinct-islands,"Array, Hash Table, Depth-First Search, Breadth-First Search, Union-Find, Sorting, Matrix, Hash Function" MEDIUM,Find All Anagrams in a String,42.5,0.005470402451893337,https://leetcode.com/problems/find-all-anagrams-in-a-string,"Hash Table, String, Sliding Window" MEDIUM,Longest Substring with At Least K Repeating Characters,42.5,0.0046875082031284186,https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters,"Hash Table, String, Divide and Conquer, Sliding Window" HARD,Reconstruct Itinerary,42.5,0.00451424329518969,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,Decode String,42.5,0.006337500536424176,https://leetcode.com/problems/decode-string,"String, Stack, Recursion" MEDIUM,Nearest Exit from Entrance in Maze,42.5,0.004930385989103061,https://leetcode.com/problems/nearest-exit-from-entrance-in-maze,"Array, Breadth-First Search, Matrix" MEDIUM,Furthest Building You Can Reach,42.5,0.005120214163959792,https://leetcode.com/problems/furthest-building-you-can-reach,"Array, Greedy, Heap (Priority Queue)" EASY,Remove Duplicates from Sorted Array,42.5,0.006397713371323589,https://leetcode.com/problems/remove-duplicates-from-sorted-array,"Array, Two Pointers" HARD,Bus Routes,42.5,0.0047602690011475796,https://leetcode.com/problems/bus-routes,"Array, Hash Table, Breadth-First Search" MEDIUM,Perfect Squares,42.5,0.005699474779262847,https://leetcode.com/problems/perfect-squares,"Math, Dynamic Programming, Breadth-First Search, Knapsack Problem, Complete Knapsack" MEDIUM,Subarray Product Less Than K,42.5,0.005490445799783963,https://leetcode.com/problems/subarray-product-less-than-k,"Array, Binary Search, Sliding Window, Prefix Sum" HARD,Basic Calculator,42.5,0.004727958474690424,https://leetcode.com/problems/basic-calculator,"Math, String, Stack, Recursion" EASY,Degree of an Array,42.5,0.005877455658951722,https://leetcode.com/problems/degree-of-an-array,"Array, Hash Table" MEDIUM,Time Based Key-Value Store,42.5,0.005025873265410447,https://leetcode.com/problems/time-based-key-value-store,"Hash Table, String, Binary Search, Design" MEDIUM,Task Scheduler,42.5,0.006400146325049962,https://leetcode.com/problems/task-scheduler,"Array, Hash Table, Greedy, Sorting, Heap (Priority Queue), Counting" MEDIUM,Letter Combinations of a Phone Number,42.5,0.006703752908400718,https://leetcode.com/problems/letter-combinations-of-a-phone-number,"Hash Table, String, Backtracking" HARD,Critical Connections in a Network,42.5,0.006073552571594348,https://leetcode.com/problems/critical-connections-in-a-network,"Depth-First Search, Graph Theory, Biconnected Component, Bridge (Graph)" MEDIUM,Game Play Analysis IV,42.5,0.004284770824621066,https://leetcode.com/problems/game-play-analysis-iv,Database MEDIUM,Robot Bounded In Circle,42.5,0.005666835279121057,https://leetcode.com/problems/robot-bounded-in-circle,"Math, String, Simulation" MEDIUM,Product Price at a Given Date,42.5,0.005891371539431851,https://leetcode.com/problems/product-price-at-a-given-date,Database MEDIUM,Binary Search Tree Iterator,42.5,0.0077122055175355055,https://leetcode.com/problems/binary-search-tree-iterator,"Stack, Tree, Design, Binary Search Tree, Binary Tree, Iterator" MEDIUM,Boats to Save People,42.5,0.006266564749820895,https://leetcode.com/problems/boats-to-save-people,"Array, Two Pointers, Greedy, Sorting, Timsort"