Difficulty,Title,Frequency,Acceptance Rate,Link,Topics MEDIUM,Longest Subarray of 1's After Deleting One Element,100.0,0.007164373235285464,https://leetcode.com/problems/longest-subarray-of-1s-after-deleting-one-element,"Array, Dynamic Programming, Sliding Window" EASY,Summary Ranges,91.6,0.0054872901794977514,https://leetcode.com/problems/summary-ranges,Array MEDIUM,Maximize Distance to Closest Person,91.6,0.005014144723563999,https://leetcode.com/problems/maximize-distance-to-closest-person,Array MEDIUM,Longest Substring Without Repeating Characters,86.4,0.004001911943480302,https://leetcode.com/problems/longest-substring-without-repeating-characters,"Hash Table, String, Sliding Window" EASY,Valid Palindrome II,83.8,0.004491378326989291,https://leetcode.com/problems/valid-palindrome-ii,"Two Pointers, String, Greedy" MEDIUM,Find K Closest Elements,83.3,0.0050199877544247155,https://leetcode.com/problems/find-k-closest-elements,"Array, Two Pointers, Binary Search, Sliding Window, Sorting, Heap (Priority Queue)" MEDIUM,String Compression,82.1,0.0060966499595730425,https://leetcode.com/problems/string-compression,"Two Pointers, String" MEDIUM,Subarray Sum Equals K,79.5,0.004835083229616944,https://leetcode.com/problems/subarray-sum-equals-k,"Array, Hash Table, Prefix Sum" MEDIUM,Merge Intervals,78.0,0.005302562140417426,https://leetcode.com/problems/merge-intervals,"Array, Sorting, Quicksort" EASY,Move Zeroes,72.9,0.006450128119268205,https://leetcode.com/problems/move-zeroes,"Array, Two Pointers" MEDIUM,Insert Delete GetRandom O(1),71.9,0.005556922188537606,https://leetcode.com/problems/insert-delete-getrandom-o1,"Array, Hash Table, Math, Design, Randomized" EASY,Longest Strictly Increasing or Strictly Decreasing Subarray,71.9,0.006480134709460145,https://leetcode.com/problems/longest-strictly-increasing-or-strictly-decreasing-subarray,Array EASY,Valid Palindrome,70.8,0.0054529260973630945,https://leetcode.com/problems/valid-palindrome,"Two Pointers, String" EASY,Isomorphic Strings,70.8,0.004925797077518992,https://leetcode.com/problems/isomorphic-strings,"Hash Table, String" MEDIUM,Longest Palindromic Substring,69.7,0.0038866746050618384,https://leetcode.com/problems/longest-palindromic-substring,"Two Pointers, String, Dynamic Programming, Manacher" MEDIUM,Line Reflection,69.7,0.003643784155645392,https://leetcode.com/problems/line-reflection,"Array, Hash Table, Math" EASY,Two Sum,68.5,0.00580362307082514,https://leetcode.com/problems/two-sum,"Array, Hash Table" MEDIUM,One Edit Distance,68.5,0.003459620835061524,https://leetcode.com/problems/one-edit-distance,"Two Pointers, String" MEDIUM,Permutation in String,68.5,0.004992714672574866,https://leetcode.com/problems/permutation-in-string,"Hash Table, Two Pointers, String, Sliding Window" MEDIUM,Interval List Intersections,67.3,0.0073251283996731646,https://leetcode.com/problems/interval-list-intersections,"Array, Two Pointers, Sweep Line" MEDIUM,Find the Prefix Common Array of Two Arrays,67.3,0.00878881462958513,https://leetcode.com/problems/find-the-prefix-common-array-of-two-arrays,"Array, Hash Table, Bit Manipulation" MEDIUM,Find All Anagrams in a String,65.9,0.005470399800858343,https://leetcode.com/problems/find-all-anagrams-in-a-string,"Hash Table, String, Sliding Window" EASY,Merge Two Sorted Lists,62.9,0.0069017886488033685,https://leetcode.com/problems/merge-two-sorted-lists,"Linked List, Recursion" MEDIUM,Group Anagrams,62.9,0.007344441531412234,https://leetcode.com/problems/group-anagrams,"Array, Hash Table, String, Sorting" EASY,Merge Sorted Array,62.9,0.005590676703728125,https://leetcode.com/problems/merge-sorted-array,"Array, Two Pointers, Sorting" MEDIUM,Number of Islands,62.9,0.00653144764809101,https://leetcode.com/problems/number-of-islands,"Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix" EASY,Squares of a Sorted Array,62.9,0.007423233652386323,https://leetcode.com/problems/squares-of-a-sorted-array,"Array, Two Pointers, Sorting" MEDIUM,Design an ATM Machine,61.2,0.004661038277621434,https://leetcode.com/problems/design-an-atm-machine,"Array, Greedy, Design" EASY,Is Subsequence,61.2,0.004950178495995229,https://leetcode.com/problems/is-subsequence,"Two Pointers, String, Dynamic Programming" EASY,Valid Parentheses,59.3,0.004534117565777962,https://leetcode.com/problems/valid-parentheses,"String, Stack, Bracket Sequences" EASY,Symmetric Tree,59.3,0.006218975469698275,https://leetcode.com/problems/symmetric-tree,"Tree, Depth-First Search, Breadth-First Search, Binary Tree" MEDIUM,Find Duplicate Subtrees,59.3,0.006093836472830877,https://leetcode.com/problems/find-duplicate-subtrees,"Hash Table, Tree, Depth-First Search, Binary Tree" MEDIUM,Search in Rotated Sorted Array,57.3,0.004579983879962786,https://leetcode.com/problems/search-in-rotated-sorted-array,"Array, Binary Search" HARD,Trapping Rain Water,57.3,0.006842255974135337,https://leetcode.com/problems/trapping-rain-water,"Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack" MEDIUM,Max Consecutive Ones III,57.3,0.006860492176939046,https://leetcode.com/problems/max-consecutive-ones-iii,"Array, Binary Search, Sliding Window, Prefix Sum" MEDIUM,Min Stack,57.3,0.005879071462179459,https://leetcode.com/problems/min-stack,"Stack, Design" MEDIUM,Binary Tree Right Side View,57.3,0.007143266865577293,https://leetcode.com/problems/binary-tree-right-side-view,"Tree, Depth-First Search, Breadth-First Search, Binary Tree" MEDIUM,Product of Array Except Self,57.3,0.006937999643814856,https://leetcode.com/problems/product-of-array-except-self,"Array, Prefix Sum" MEDIUM,Container With Most Water,55.0,0.006103881944600095,https://leetcode.com/problems/container-with-most-water,"Array, Two Pointers, Greedy" MEDIUM,LRU Cache,55.0,0.004825727256052667,https://leetcode.com/problems/lru-cache,"Hash Table, Linked List, Design, Doubly-Linked List" MEDIUM,Lowest Common Ancestor of a Binary Tree,55.0,0.007028790690575888,https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree,"Tree, Depth-First Search, Binary Tree, Binary Lifting, Lowest Common Ancestor" HARD,Reconstruct Itinerary,55.0,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,Count Substrings Without Repeating Character,52.4,0.00759487776484284,https://leetcode.com/problems/count-substrings-without-repeating-character,"Hash Table, String, Sliding Window" MEDIUM,Add Two Numbers,49.4,0.004955364476302972,https://leetcode.com/problems/add-two-numbers,"Linked List, Math, Recursion" HARD,Median of Two Sorted Arrays,49.4,0.004785841628499309,https://leetcode.com/problems/median-of-two-sorted-arrays,"Array, Binary Search, Divide and Conquer" HARD,Merge k Sorted Lists,49.4,0.006078444931950874,https://leetcode.com/problems/merge-k-sorted-lists,"Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort, Tournament Sort" EASY,Remove Element,49.4,0.00627086931710931,https://leetcode.com/problems/remove-element,"Array, Two Pointers" HARD,Binary Tree Maximum Path Sum,49.4,0.004289435946117155,https://leetcode.com/problems/binary-tree-maximum-path-sum,"Dynamic Programming, Tree, Depth-First Search, Binary Tree, DP on Trees" MEDIUM,Maximum Subarray,49.4,0.005399360020456188,https://leetcode.com/problems/maximum-subarray,"Array, Divide and Conquer, Dynamic Programming" MEDIUM,Generate Parentheses,45.9,0.007971338523353258,https://leetcode.com/problems/generate-parentheses,"String, Dynamic Programming, Backtracking, Bracket Sequences" MEDIUM,Simplify Path,45.9,0.005168690224061714,https://leetcode.com/problems/simplify-path,"String, Stack" MEDIUM,Binary Tree Zigzag Level Order Traversal,45.9,0.006466052038024812,https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal,"Tree, Breadth-First Search, Binary Tree" EASY,Reverse Linked List,45.9,0.008116099464806325,https://leetcode.com/problems/reverse-linked-list,"Linked List, Recursion" MEDIUM,Perfect Squares,45.9,0.005699483590343006,https://leetcode.com/problems/perfect-squares,"Math, Dynamic Programming, Breadth-First Search, Knapsack Problem, Complete Knapsack" MEDIUM,Longest Substring with At Most K Distinct Characters,45.9,0.005016613504273714,https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters,"Hash Table, String, Sliding Window" MEDIUM,Design Hit Counter,45.9,0.006977338692550322,https://leetcode.com/problems/design-hit-counter,"Array, Binary Search, Design, Queue, Data Stream" MEDIUM,Longest Repeating Character Replacement,45.9,0.00608767561615917,https://leetcode.com/problems/longest-repeating-character-replacement,"Hash Table, String, Sliding Window" EASY,Destination City,45.9,0.007957221556998479,https://leetcode.com/problems/destination-city,"Array, Hash Table, String" EASY,Number of Recent Calls,45.9,0.00791866584018042,https://leetcode.com/problems/number-of-recent-calls,"Design, Queue, Data Stream" EASY,Remove Duplicates from Sorted Array,45.9,0.006397713695860957,https://leetcode.com/problems/remove-duplicates-from-sorted-array,"Array, Two Pointers" EASY,Best Time to Buy and Sell Stock,41.5,0.005752123158966607,https://leetcode.com/problems/best-time-to-buy-and-sell-stock,"Array, Dynamic Programming" EASY,Intersection of Two Arrays,41.5,0.00784945700530381,https://leetcode.com/problems/intersection-of-two-arrays,"Array, Hash Table, Two Pointers, Binary Search, Sorting" EASY,Max Consecutive Ones,41.5,0.00663299542884487,https://leetcode.com/problems/max-consecutive-ones,Array MEDIUM,Product of Two Run-Length Encoded Arrays,41.5,0.0059638297478088464,https://leetcode.com/problems/product-of-two-run-length-encoded-arrays,"Array, Two Pointers" MEDIUM,Basic Calculator II,41.5,0.004727709915588692,https://leetcode.com/problems/basic-calculator-ii,"Math, String, Stack" MEDIUM,Remove Nth Node From End of List,41.5,0.0052899947029778835,https://leetcode.com/problems/remove-nth-node-from-end-of-list,"Linked List, Two Pointers" HARD,Minimum Window Substring,36.0,0.0048697134148162425,https://leetcode.com/problems/minimum-window-substring,"Hash Table, String, Sliding Window" MEDIUM,Find Minimum in Rotated Sorted Array,36.0,0.005546540988861739,https://leetcode.com/problems/find-minimum-in-rotated-sorted-array,"Array, Binary Search" MEDIUM,Longest Increasing Subsequence,36.0,0.006009849100357148,https://leetcode.com/problems/longest-increasing-subsequence,"Array, Binary Search, Dynamic Programming, Longest Increasing Subsequence" EASY,First Unique Character in a String,36.0,0.006654136015217337,https://leetcode.com/problems/first-unique-character-in-a-string,"Hash Table, String, Queue, Counting" EASY,Can Place Flowers,36.0,0.002933289679624365,https://leetcode.com/problems/can-place-flowers,"Array, Greedy" EASY,Implement Queue using Stacks,36.0,0.0070332077451819375,https://leetcode.com/problems/implement-queue-using-stacks,"Stack, Design, Queue" MEDIUM,Binary Tree Level Order Traversal,36.0,0.007365526218298817,https://leetcode.com/problems/binary-tree-level-order-traversal,"Tree, Breadth-First Search, Binary Tree" MEDIUM,Lowest Common Ancestor of a Binary Tree III,36.0,0.008303105409540263,https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree-iii,"Hash Table, Two Pointers, Tree, Binary Tree, Binary Lifting, Lowest Common Ancestor" EASY,Matrix Diagonal Sum,36.0,0.008469625361225924,https://leetcode.com/problems/matrix-diagonal-sum,"Array, Matrix" EASY,Allow One Function Call,36.0,0.0086629513633014,https://leetcode.com/problems/allow-one-function-call, EASY,Maximum Average Subarray I,36.0,0.004943605065051194,https://leetcode.com/problems/maximum-average-subarray-i,"Array, Sliding Window" MEDIUM,Evaluate Reverse Polish Notation,36.0,0.005897500804891313,https://leetcode.com/problems/evaluate-reverse-polish-notation,"Array, Math, Stack" EASY,Palindrome Number,36.0,0.006104356028043827,https://leetcode.com/problems/palindrome-number,Math MEDIUM,Validate Binary Search Tree,28.4,0.0036499057056035653,https://leetcode.com/problems/validate-binary-search-tree,"Tree, Depth-First Search, Binary Search Tree, Binary Tree" MEDIUM,Lowest Common Ancestor of a Binary Search Tree,28.4,0.007154205132228547,https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree,"Tree, Depth-First Search, Binary Search Tree, Binary Tree, Binary Lifting, Lowest Common Ancestor" EASY,Intersection of Two Arrays II,28.4,0.006046902008584954,https://leetcode.com/problems/intersection-of-two-arrays-ii,"Array, Hash Table, Two Pointers, Binary Search, Sorting" MEDIUM,Continuous Subarray Sum,28.4,0.003174003747270294,https://leetcode.com/problems/continuous-subarray-sum,"Array, Hash Table, Math, Prefix Sum, Pigeonhole Principle" MEDIUM,4Sum,28.4,0.004194282566466615,https://leetcode.com/problems/4sum,"Array, Two Pointers, Sorting" MEDIUM,Coin Change,28.4,0.00493061911059222,https://leetcode.com/problems/coin-change,"Array, Dynamic Programming, Breadth-First Search, Knapsack Problem, Complete Knapsack" EASY,Merge Two 2D Arrays by Summing Values,28.4,0.008162616456617026,https://leetcode.com/problems/merge-two-2d-arrays-by-summing-values,"Array, Hash Table, Two Pointers" MEDIUM,Implement Rand10() Using Rand7(),28.4,0.004698310283314594,https://leetcode.com/problems/implement-rand10-using-rand7,"Math, Rejection Sampling, Randomized, Probability and Statistics" EASY,Design an Ordered Stream,28.4,0.008278430557248242,https://leetcode.com/problems/design-an-ordered-stream,"Array, Hash Table, Design, Data Stream" MEDIUM,Daily Temperatures,28.4,0.006927662468942192,https://leetcode.com/problems/daily-temperatures,"Array, Stack, Monotonic Stack" HARD,Find Median from Data Stream,28.4,0.005512009040932574,https://leetcode.com/problems/find-median-from-data-stream,"Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream" EASY,Add Strings,28.4,0.005226780590060729,https://leetcode.com/problems/add-strings,"Math, String, Simulation" MEDIUM,Swap Nodes in Pairs,28.4,0.007042719068670335,https://leetcode.com/problems/swap-nodes-in-pairs,"Linked List, Recursion" EASY,Linked List Cycle,28.4,0.0055246704461191206,https://leetcode.com/problems/linked-list-cycle,"Hash Table, Linked List, Two Pointers, Floyd's Cycle Finding Algorithm" EASY,Create Hello World Function,28.4,0.008193136739695574,https://leetcode.com/problems/create-hello-world-function, HARD,Sliding Window Maximum,28.4,0.004936745046250439,https://leetcode.com/problems/sliding-window-maximum,"Array, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue, Range Minimum/Maximum Query" EASY,Counter II,28.4,0.00812742881510029,https://leetcode.com/problems/counter-ii, EASY,Search Insert Position,28.4,0.005247772668429471,https://leetcode.com/problems/search-insert-position,"Array, Binary Search" EASY,Path Crossing,28.4,0.006275554595661966,https://leetcode.com/problems/path-crossing,"Hash Table, String" MEDIUM,Rotting Oranges,28.4,0.005959404961517556,https://leetcode.com/problems/rotting-oranges,"Array, Breadth-First Search, Matrix" EASY,Employees Earning More Than Their Managers,28.4,0.00740032519898912,https://leetcode.com/problems/employees-earning-more-than-their-managers,Database EASY,Find the Difference of Two Arrays,28.4,0.0081716150073987,https://leetcode.com/problems/find-the-difference-of-two-arrays,"Array, Hash Table" EASY,Find Common Elements Between Two Arrays,28.4,0.008404376103837851,https://leetcode.com/problems/find-common-elements-between-two-arrays,"Array, Hash Table" MEDIUM,Subarray Sums Divisible by K,28.4,0.005687803276147274,https://leetcode.com/problems/subarray-sums-divisible-by-k,"Array, Hash Table, Prefix Sum" EASY,Function Composition,28.4,0.008677574687171969,https://leetcode.com/problems/function-composition, MEDIUM,Minimum Size Subarray Sum,28.4,0.005316447249796692,https://leetcode.com/problems/minimum-size-subarray-sum,"Array, Binary Search, Sliding Window, Prefix Sum" MEDIUM,Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit,28.4,0.0058152531455910065,https://leetcode.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit,"Array, Queue, Sliding Window, Heap (Priority Queue), Ordered Set, Monotonic Queue" EASY,Maximum Product of Two Elements in an Array,28.4,0.008495639733988633,https://leetcode.com/problems/maximum-product-of-two-elements-in-an-array,"Array, Sorting, Heap (Priority Queue)" MEDIUM,Meeting Scheduler,28.4,0.005520068282760137,https://leetcode.com/problems/meeting-scheduler,"Array, Two Pointers, Sorting" MEDIUM,Top K Frequent Elements,28.4,0.006757427648792895,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,28.4,0.006918480637589581,https://leetcode.com/problems/subarrays-with-k-different-integers,"Array, Hash Table, Sliding Window, Counting" EASY,Add Binary,28.4,0.005880362727200201,https://leetcode.com/problems/add-binary,"Math, String, Bit Manipulation, Simulation" MEDIUM,Max Consecutive Ones II,28.4,0.005220284011707013,https://leetcode.com/problems/max-consecutive-ones-ii,"Array, Dynamic Programming, Sliding Window" MEDIUM,Valid Sudoku,28.4,0.006525287428261195,https://leetcode.com/problems/valid-sudoku,"Array, Hash Table, Matrix" MEDIUM,Memoize,28.4,0.006539264745129436,https://leetcode.com/problems/memoize, EASY,Roman to Integer,28.4,0.0067310454213706005,https://leetcode.com/problems/roman-to-integer,"Hash Table, Math, String" MEDIUM,Minimum Number of Steps to Make Two Strings Anagram,28.4,0.008261462700472483,https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram,"Hash Table, String, Counting" EASY,Find the Index of the First Occurrence in a String,28.4,0.004748365459138649,https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string,"Two Pointers, String, String Matching, Z Algorithm, Knuth–Morris–Pratt Algorithm, Boyer–Moore String-Search Algorithm" MEDIUM,Restore the Array From Adjacent Pairs,28.4,0.007519800411848565,https://leetcode.com/problems/restore-the-array-from-adjacent-pairs,"Array, Hash Table, Depth-First Search" EASY,Longest Continuous Increasing Subsequence,28.4,0.005254775325483432,https://leetcode.com/problems/longest-continuous-increasing-subsequence,Array MEDIUM,Number of Substrings Containing All Three Characters,28.4,0.0074447485504216685,https://leetcode.com/problems/number-of-substrings-containing-all-three-characters,"Hash Table, String, Sliding Window"