Difficulty,Title,Frequency,Acceptance Rate,Link,Topics MEDIUM,LRU Cache,100.0,0.004825722526820416,https://leetcode.com/problems/lru-cache,"Hash Table, Linked List, Design, Doubly-Linked List" MEDIUM,Longest Substring Without Repeating Characters,91.5,0.004001909731852682,https://leetcode.com/problems/longest-substring-without-repeating-characters,"Hash Table, String, Sliding Window" MEDIUM,Lexicographically Smallest String After Operations With Constraint,91.5,0.006249202986486765,https://leetcode.com/problems/lexicographically-smallest-string-after-operations-with-constraint,"String, Greedy" HARD,Number of Distinct Roll Sequences,91.5,0.005849506033035261,https://leetcode.com/problems/number-of-distinct-roll-sequences,"Dynamic Programming, Memoization" HARD,Find Minimum Diameter After Merging Two Trees,91.5,0.005678806432316408,https://leetcode.com/problems/find-minimum-diameter-after-merging-two-trees,"Tree, Depth-First Search, Breadth-First Search, Graph Theory" HARD,Maximum Score with Co-Prime Element,91.5,0.0027292875301479697,https://leetcode.com/problems/maximum-score-with-co-prime-element,"Array, Hash Table, Math, Combinatorics, Enumeration, Number Theory" HARD,Trapping Rain Water,88.0,0.006842253698048119,https://leetcode.com/problems/trapping-rain-water,"Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack" MEDIUM,Number of Islands,83.9,0.006531447563585735,https://leetcode.com/problems/number-of-islands,"Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix" MEDIUM,Container With Most Water,79.0,0.006103880732766988,https://leetcode.com/problems/container-with-most-water,"Array, Two Pointers, Greedy" MEDIUM,Generate Parentheses,79.0,0.00797133703656111,https://leetcode.com/problems/generate-parentheses,"String, Dynamic Programming, Backtracking, Bracket Sequences" HARD,First Missing Positive,79.0,0.004397277117630338,https://leetcode.com/problems/first-missing-positive,"Array, Hash Table" MEDIUM,String Compression,79.0,0.006096660388761685,https://leetcode.com/problems/string-compression,"Two Pointers, String" EASY,Valid Parentheses,73.1,0.004534115623893582,https://leetcode.com/problems/valid-parentheses,"String, Stack, Bracket Sequences" HARD,Sliding Window Maximum,73.1,0.004936744746540709,https://leetcode.com/problems/sliding-window-maximum,"Array, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue, Range Minimum/Maximum Query" MEDIUM,Longest Repeating Character Replacement,73.1,0.006087673732392511,https://leetcode.com/problems/longest-repeating-character-replacement,"Hash Table, String, Sliding Window" MEDIUM,Best Time to Buy and Sell Stock II,73.1,0.007176547630634079,https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii,"Array, Dynamic Programming, Greedy" MEDIUM,Maximum Subarray,65.5,0.005399359182960285,https://leetcode.com/problems/maximum-subarray,"Array, Divide and Conquer, Dynamic Programming" HARD,Number of Visible People in a Queue,65.5,0.007379984166711741,https://leetcode.com/problems/number-of-visible-people-in-a-queue,"Array, Stack, Monotonic Stack" MEDIUM,Coin Change,65.5,0.004930614884070939,https://leetcode.com/problems/coin-change,"Array, Dynamic Programming, Breadth-First Search, Knapsack Problem, Complete Knapsack" MEDIUM,Check if a Parentheses String Can Be Valid,65.5,0.004534403631073088,https://leetcode.com/problems/check-if-a-parentheses-string-can-be-valid,"String, Stack, Greedy, Bracket Sequences" MEDIUM,Minimum Number of Swaps to Make the String Balanced,65.5,0.007811478727324349,https://leetcode.com/problems/minimum-number-of-swaps-to-make-the-string-balanced,"Two Pointers, String, Stack, Greedy, Bracket Sequences" MEDIUM,Jump Game II,65.5,0.00436665296593693,https://leetcode.com/problems/jump-game-ii,"Array, Dynamic Programming, Greedy" EASY,Merge Two Sorted Lists,65.5,0.006901785144139051,https://leetcode.com/problems/merge-two-sorted-lists,"Linked List, Recursion" HARD,Number of Music Playlists,65.5,0.0060150751187147255,https://leetcode.com/problems/number-of-music-playlists,"Math, Dynamic Programming, Combinatorics" EASY,Two Sum,54.8,0.005803622178749846,https://leetcode.com/problems/two-sum,"Array, Hash Table" MEDIUM,Longest Palindromic Substring,54.8,0.003886672015984904,https://leetcode.com/problems/longest-palindromic-substring,"Two Pointers, String, Dynamic Programming, Manacher" MEDIUM,Merge Intervals,54.8,0.005302562102250053,https://leetcode.com/problems/merge-intervals,"Array, Sorting, Quicksort" MEDIUM,Largest Number,54.8,0.004399287421821326,https://leetcode.com/problems/largest-number,"Array, String, Greedy, Sorting" EASY,Reverse Linked List,54.8,0.008116097292365638,https://leetcode.com/problems/reverse-linked-list,"Linked List, Recursion" MEDIUM,Kth Largest Element in an Array,54.8,0.006941743118616014,https://leetcode.com/problems/kth-largest-element-in-an-array,"Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect" EASY,Move Zeroes,54.8,0.006450132012363287,https://leetcode.com/problems/move-zeroes,"Array, Two Pointers" MEDIUM,Asteroid Collision,54.8,0.0049329332336914425,https://leetcode.com/problems/asteroid-collision,"Array, Stack, Simulation" MEDIUM,Rotting Oranges,54.8,0.00595939462408144,https://leetcode.com/problems/rotting-oranges,"Array, Breadth-First Search, Matrix" HARD,LFU Cache,54.8,0.005051292412834802,https://leetcode.com/problems/lfu-cache,"Hash Table, Linked List, Design, Doubly-Linked List" HARD,Minimum One Bit Operations to Make Integers Zero,54.8,0.007821166568725951,https://leetcode.com/problems/minimum-one-bit-operations-to-make-integers-zero,"Math, Dynamic Programming, Bit Manipulation, Recursion, Memoization" MEDIUM,"Pow(x, n)",54.8,0.003926250574734278,https://leetcode.com/problems/powx-n,"Math, Recursion" MEDIUM,Amount of Time for Binary Tree to Be Infected,54.8,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,Binary Tree Right Side View,54.8,0.007143264357428367,https://leetcode.com/problems/binary-tree-right-side-view,"Tree, Depth-First Search, Breadth-First Search, Binary Tree" MEDIUM,Pacific Atlantic Water Flow,54.8,0.00616186370594549,https://leetcode.com/problems/pacific-atlantic-water-flow,"Array, Depth-First Search, Breadth-First Search, Matrix" MEDIUM,Letter Combinations of a Phone Number,54.8,0.00670374888869475,https://leetcode.com/problems/letter-combinations-of-a-phone-number,"Hash Table, String, Backtracking" MEDIUM,4Sum,54.8,0.004194280054143501,https://leetcode.com/problems/4sum,"Array, Two Pointers, Sorting" MEDIUM,Number of Distinct Islands,54.8,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,Next Permutation,54.8,0.0046395793145070224,https://leetcode.com/problems/next-permutation,"Array, Two Pointers" MEDIUM,Gas Station,54.8,0.004888871573788137,https://leetcode.com/problems/gas-station,"Array, Greedy" MEDIUM,Find Peak Element,54.8,0.004726738240356211,https://leetcode.com/problems/find-peak-element,"Array, Binary Search" MEDIUM,Target Sum,54.8,0.005303004823024102,https://leetcode.com/problems/target-sum,"Array, Dynamic Programming, Backtracking, Knapsack Problem, 0-1 Knapsack" MEDIUM,Single Element in a Sorted Array,54.8,0.0059456391545347235,https://leetcode.com/problems/single-element-in-a-sorted-array,"Array, Binary Search" MEDIUM,Top K Frequent Elements,54.8,0.006757424996843381,https://leetcode.com/problems/top-k-frequent-elements,"Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect" HARD,Subarrays with K Different Integers,54.8,0.006918480637589581,https://leetcode.com/problems/subarrays-with-k-different-integers,"Array, Hash Table, Sliding Window, Counting" MEDIUM,House Robber II,54.8,0.004567987207179162,https://leetcode.com/problems/house-robber-ii,"Array, Dynamic Programming" MEDIUM,Maximum Profit From Trading Stocks,54.8,0.004844416692683942,https://leetcode.com/problems/maximum-profit-from-trading-stocks,"Array, Dynamic Programming" MEDIUM,Subarray Sum Equals K,54.8,0.004835075808913482,https://leetcode.com/problems/subarray-sum-equals-k,"Array, Hash Table, Prefix Sum" MEDIUM,Next Greater Element II,54.8,0.006933398379193092,https://leetcode.com/problems/next-greater-element-ii,"Array, Stack, Monotonic Stack" HARD,Word Ladder,54.8,0.004677980030668822,https://leetcode.com/problems/word-ladder,"Hash Table, String, Breadth-First Search, Bidirectional Search" MEDIUM,Simplify Path,54.8,0.005168686864684139,https://leetcode.com/problems/simplify-path,"String, Stack" MEDIUM,Fruit Into Baskets,54.8,0.00527615111654908,https://leetcode.com/problems/fruit-into-baskets,"Array, Hash Table, Sliding Window" MEDIUM,Longest Common Subsequence,54.8,0.005966796536398839,https://leetcode.com/problems/longest-common-subsequence,"String, Dynamic Programming, Longest Common Subsequence" MEDIUM,Combination Sum,54.8,0.007727906766045891,https://leetcode.com/problems/combination-sum,"Array, Backtracking" HARD,Critical Connections in a Network,54.8,0.006073539010937775,https://leetcode.com/problems/critical-connections-in-a-network,"Depth-First Search, Graph Theory, Biconnected Component, Bridge (Graph)" MEDIUM,Reverse Words in a String,54.8,0.005813324332389556,https://leetcode.com/problems/reverse-words-in-a-string,"Two Pointers, String" MEDIUM,Sort Colors,54.8,0.007029500256364891,https://leetcode.com/problems/sort-colors,"Array, Two Pointers, Sorting, Quicksort, Bubble Sort" MEDIUM,Product of Array Except Self,54.8,0.006937989196043433,https://leetcode.com/problems/product-of-array-except-self,"Array, Prefix Sum" HARD,Word Break II,54.8,0.005638990982253106,https://leetcode.com/problems/word-break-ii,"Array, Hash Table, String, Dynamic Programming, Backtracking, Trie, Memoization" MEDIUM,Search a 2D Matrix II,54.8,0.005828698523866629,https://leetcode.com/problems/search-a-2d-matrix-ii,"Array, Binary Search, Divide and Conquer, Matrix" EASY,Implement Queue using Stacks,54.8,0.007033206953772207,https://leetcode.com/problems/implement-queue-using-stacks,"Stack, Design, Queue"