Difficulty,Title,Frequency,Acceptance Rate,Link,Topics EASY,Two Sum,100.0,0.005803618456370095,https://leetcode.com/problems/two-sum,"Array, Hash Table" EASY,Best Time to Buy and Sell Stock,88.4,0.005752114965245343,https://leetcode.com/problems/best-time-to-buy-and-sell-stock,"Array, Dynamic Programming" HARD,Smallest Divisible Digit Product II,86.2,0.004484888044180793,https://leetcode.com/problems/smallest-divisible-digit-product-ii,"Math, String, Backtracking, Greedy, Number Theory" MEDIUM,Subarray Sum Equals K,86.2,0.0048350629251496646,https://leetcode.com/problems/subarray-sum-equals-k,"Array, Hash Table, Prefix Sum" EASY,Palindrome Number,83.8,0.006104361204584299,https://leetcode.com/problems/palindrome-number,Math EASY,Smallest Divisible Digit Product I,83.8,0.007278206364513018,https://leetcode.com/problems/smallest-divisible-digit-product-i,"Math, Enumeration" MEDIUM,Minimum Number of Operations to Have Distinct Elements,83.8,0.004244683245189603,https://leetcode.com/problems/minimum-number-of-operations-to-have-distinct-elements,"Array, Hash Table" MEDIUM,Longest Substring Without Repeating Characters,81.1,0.0040019110558488,https://leetcode.com/problems/longest-substring-without-repeating-characters,"Hash Table, String, Sliding Window" EASY,Sum of Values at Indices With K Set Bits,81.1,0.00859111590136824,https://leetcode.com/problems/sum-of-values-at-indices-with-k-set-bits,"Array, Bit Manipulation" EASY,Maximum Area of Longest Diagonal Rectangle,81.1,0.0045913747111369215,https://leetcode.com/problems/maximum-area-of-longest-diagonal-rectangle,Array EASY,Permutation Difference between Two Strings,81.1,0.008756617977691068,https://leetcode.com/problems/permutation-difference-between-two-strings,"Hash Table, String" EASY,Majority Element,81.1,0.0066535591945468715,https://leetcode.com/problems/majority-element,"Array, Hash Table, Divide and Conquer, Sorting, Counting, Boyer–Moore Majority Vote Algorithm" MEDIUM,Reverse Integer,78.2,0.0032681447219781974,https://leetcode.com/problems/reverse-integer,Math EASY,Count Tested Devices After Test Operations,78.2,0.007859673150111275,https://leetcode.com/problems/count-tested-devices-after-test-operations,"Array, Simulation, Counting" EASY,Find Subsequence of Length K With the Largest Sum,78.2,0.005728896897141461,https://leetcode.com/problems/find-subsequence-of-length-k-with-the-largest-sum,"Array, Hash Table, Sorting, Heap (Priority Queue)" EASY,Ant on the Boundary,78.2,0.007456686138658697,https://leetcode.com/problems/ant-on-the-boundary,"Array, Simulation, Prefix Sum" EASY,Minimum Right Shifts to Sort the Array,78.2,0.005733767632856364,https://leetcode.com/problems/minimum-right-shifts-to-sort-the-array,Array MEDIUM,Maximum Subarray,74.8,0.005399360192572644,https://leetcode.com/problems/maximum-subarray,"Array, Divide and Conquer, Dynamic Programming" EASY,Climbing Stairs,74.8,0.005440645783661309,https://leetcode.com/problems/climbing-stairs,"Math, Dynamic Programming, Memoization" EASY,Move Zeroes,74.8,0.006450127024116515,https://leetcode.com/problems/move-zeroes,"Array, Two Pointers" MEDIUM,Container With Most Water,70.9,0.006103881654586658,https://leetcode.com/problems/container-with-most-water,"Array, Two Pointers, Greedy" MEDIUM,Second Highest Salary,70.9,0.00487627023687468,https://leetcode.com/problems/second-highest-salary,Database MEDIUM,Rotate Array,70.9,0.00457183683921221,https://leetcode.com/problems/rotate-array,"Array, Math, Two Pointers" MEDIUM,Koko Eating Bananas,70.9,0.00507167150277493,https://leetcode.com/problems/koko-eating-bananas,"Array, Binary Search" MEDIUM,3Sum,66.3,0.004007314255577538,https://leetcode.com/problems/3sum,"Array, Two Pointers, Sorting" EASY,Remove Duplicates from Sorted Array,66.3,0.006397703461163523,https://leetcode.com/problems/remove-duplicates-from-sorted-array,"Array, Two Pointers" MEDIUM,Letter Combinations of a Phone Number,66.3,0.00670374500616168,https://leetcode.com/problems/letter-combinations-of-a-phone-number,"Hash Table, String, Backtracking" MEDIUM,Number of Islands,66.3,0.0065314499832500724,https://leetcode.com/problems/number-of-islands,"Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix" EASY,Intersection of Two Arrays,66.3,0.007849442101903975,https://leetcode.com/problems/intersection-of-two-arrays,"Array, Hash Table, Two Pointers, Binary Search, Sorting" HARD,Median of Two Sorted Arrays,60.7,0.004785839836195041,https://leetcode.com/problems/median-of-two-sorted-arrays,"Array, Binary Search, Divide and Conquer" MEDIUM,Merge Intervals,60.7,0.005302591314851284,https://leetcode.com/problems/merge-intervals,"Array, Sorting, Quicksort" EASY,Max Consecutive Ones,60.7,0.006633013448946064,https://leetcode.com/problems/max-consecutive-ones,Array HARD,Shortest Palindrome,60.7,0.004332339880763053,https://leetcode.com/problems/shortest-palindrome,"String, Rolling Hash, String Matching, Hash Function, Manacher, Z Algorithm, Knuth–Morris–Pratt Algorithm" EASY,Contains Duplicate II,60.7,0.005206165051285645,https://leetcode.com/problems/contains-duplicate-ii,"Array, Hash Table, Sliding Window" MEDIUM,Remove Nth Node From End of List,60.7,0.005289989385146155,https://leetcode.com/problems/remove-nth-node-from-end-of-list,"Linked List, Two Pointers" MEDIUM,4Sum,60.7,0.004194274055177994,https://leetcode.com/problems/4sum,"Array, Two Pointers, Sorting" EASY,Count Partitions with Even Sum Difference,60.7,0.008520343028419183,https://leetcode.com/problems/count-partitions-with-even-sum-difference,"Array, Math, Prefix Sum" MEDIUM,Next Permutation,60.7,0.00463957937273576,https://leetcode.com/problems/next-permutation,"Array, Two Pointers" MEDIUM,Consecutive Numbers,60.7,0.004971491398123428,https://leetcode.com/problems/consecutive-numbers,Database EASY,Students and Examinations,60.7,0.006224851383262509,https://leetcode.com/problems/students-and-examinations,Database MEDIUM,Longest Palindromic Substring,53.6,0.003886668706827204,https://leetcode.com/problems/longest-palindromic-substring,"Two Pointers, String, Dynamic Programming, Manacher" EASY,Merge Sorted Array,53.6,0.005590678999489594,https://leetcode.com/problems/merge-sorted-array,"Array, Two Pointers, Sorting" EASY,Pascal's Triangle,53.6,0.007947626188829982,https://leetcode.com/problems/pascals-triangle,"Array, Dynamic Programming" MEDIUM,Find Peak Element,53.6,0.00472673433219757,https://leetcode.com/problems/find-peak-element,"Array, Binary Search" EASY,Happy Number,53.6,0.006042656926866559,https://leetcode.com/problems/happy-number,"Hash Table, Math, Two Pointers, Floyd's Cycle Finding Algorithm" MEDIUM,Count Primes,53.6,0.0035791453300368335,https://leetcode.com/problems/count-primes,"Array, Math, Enumeration, Number Theory, Primality Test, Sieve Theory, Prime Number Sieve" EASY,Contains Duplicate,53.6,0.006479967056168323,https://leetcode.com/problems/contains-duplicate,"Array, Hash Table, Sorting" EASY,Valid Anagram,53.6,0.00687675286010321,https://leetcode.com/problems/valid-anagram,"Hash Table, String, Sorting" MEDIUM,Perfect Squares,53.6,0.005699513341491261,https://leetcode.com/problems/perfect-squares,"Math, Dynamic Programming, Breadth-First Search, Knapsack Problem, Complete Knapsack" EASY,Fibonacci Number,53.6,0.007473590829218873,https://leetcode.com/problems/fibonacci-number,"Math, Dynamic Programming, Recursion, Memoization" MEDIUM,Kth Largest Element in an Array,53.6,0.006941737288510885,https://leetcode.com/problems/kth-largest-element-in-an-array,"Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect" EASY,Middle of the Linked List,53.6,0.008250609976727954,https://leetcode.com/problems/middle-of-the-linked-list,"Linked List, Two Pointers" EASY,Search Insert Position,53.6,0.0052477680842056,https://leetcode.com/problems/search-insert-position,"Array, Binary Search" EASY,Average Time of Process per Machine,53.6,0.006711076390198936,https://leetcode.com/problems/average-time-of-process-per-machine,Database EASY,Convert Sorted Array to Binary Search Tree,53.6,0.007624237932053733,https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree,"Array, Divide and Conquer, Tree, Binary Search Tree, Binary Tree" MEDIUM,Sort Characters By Frequency,53.6,0.007588999504270568,https://leetcode.com/problems/sort-characters-by-frequency,"Hash Table, String, Sorting, Heap (Priority Queue), Bucket Sort, Counting" EASY,Employees Earning More Than Their Managers,53.6,0.007400337987304174,https://leetcode.com/problems/employees-earning-more-than-their-managers,Database HARD,Trapping Rain Water,53.6,0.006842244593083674,https://leetcode.com/problems/trapping-rain-water,"Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack" MEDIUM,Search in Rotated Sorted Array II,53.6,0.004071628218680303,https://leetcode.com/problems/search-in-rotated-sorted-array-ii,"Array, Binary Search" HARD,Largest Rectangle in Histogram,53.6,0.005106146885964811,https://leetcode.com/problems/largest-rectangle-in-histogram,"Array, Stack, Monotonic Stack, Range Minimum/Maximum Query" MEDIUM,String Compression,53.6,0.006096652552642459,https://leetcode.com/problems/string-compression,"Two Pointers, String" MEDIUM,LRU Cache,53.6,0.004825707971452333,https://leetcode.com/problems/lru-cache,"Hash Table, Linked List, Design, Doubly-Linked List" EASY,Isomorphic Strings,53.6,0.004925796769670758,https://leetcode.com/problems/isomorphic-strings,"Hash Table, String" EASY,Roman to Integer,43.5,0.006731042146138217,https://leetcode.com/problems/roman-to-integer,"Hash Table, Math, String" EASY,Longest Common Prefix,43.5,0.004853664245459692,https://leetcode.com/problems/longest-common-prefix,"Array, String, Trie" MEDIUM,Find First and Last Position of Element in Sorted Array,43.5,0.004980549843321583,https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array,"Array, Binary Search" MEDIUM,Rotate Image,43.5,0.008083474800248883,https://leetcode.com/problems/rotate-image,"Array, Math, Matrix" EASY,Maximum Depth of Binary Tree,43.5,0.00787234074817687,https://leetcode.com/problems/maximum-depth-of-binary-tree,"Tree, Depth-First Search, Breadth-First Search, Binary Tree" EASY,Valid Palindrome,43.5,0.005452910793805371,https://leetcode.com/problems/valid-palindrome,"Two Pointers, String" HARD,Candy,43.5,0.004941929748762611,https://leetcode.com/problems/candy,"Array, Greedy" MEDIUM,Reverse Words in a String,43.5,0.005813305235664461,https://leetcode.com/problems/reverse-words-in-a-string,"Two Pointers, String" MEDIUM,Largest Number,43.5,0.004399281696781741,https://leetcode.com/problems/largest-number,"Array, String, Greedy, Sorting" MEDIUM,Longest Increasing Subsequence,43.5,0.006009861472213195,https://leetcode.com/problems/longest-increasing-subsequence,"Array, Binary Search, Dynamic Programming, Longest Increasing Subsequence" EASY,Next Greater Element I,43.5,0.00769714701963619,https://leetcode.com/problems/next-greater-element-i,"Array, Hash Table, Stack, Monotonic Stack" EASY,Find the Difference,43.5,0.006081555322758621,https://leetcode.com/problems/find-the-difference,"Hash Table, String, Bit Manipulation, Sorting" MEDIUM,String to Integer (atoi),43.5,0.002191935134349504,https://leetcode.com/problems/string-to-integer-atoi,String HARD,Minimum Insertion Steps to Make a String Palindrome,43.5,0.007454671202661783,https://leetcode.com/problems/minimum-insertion-steps-to-make-a-string-palindrome,"String, Dynamic Programming" EASY,Single Number,43.5,0.007843394853977918,https://leetcode.com/problems/single-number,"Array, Bit Manipulation" EASY,Reverse String,43.5,0.008145954719598331,https://leetcode.com/problems/reverse-string,"Two Pointers, String" HARD,Divide Nodes Into the Maximum Number of Groups,43.5,0.00668001234224132,https://leetcode.com/problems/divide-nodes-into-the-maximum-number-of-groups,"Depth-First Search, Breadth-First Search, Union-Find, Graph Theory" EASY,Find the Difference of Two Arrays,43.5,0.00817161388038413,https://leetcode.com/problems/find-the-difference-of-two-arrays,"Array, Hash Table" MEDIUM,Best Time to Buy and Sell Stock II,43.5,0.007176541180537741,https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii,"Array, Dynamic Programming, Greedy" MEDIUM,Remove K Digits,43.5,0.003787996450734562,https://leetcode.com/problems/remove-k-digits,"String, Stack, Greedy, Monotonic Stack" MEDIUM,Contiguous Array,43.5,0.005261869487117803,https://leetcode.com/problems/contiguous-array,"Array, Hash Table, Prefix Sum" HARD,Longest Valid Parentheses,43.5,0.0041368948785120195,https://leetcode.com/problems/longest-valid-parentheses,"String, Dynamic Programming, Stack, Bracket Sequences" MEDIUM,Sum of Subarray Minimums,43.5,0.003907139745226057,https://leetcode.com/problems/sum-of-subarray-minimums,"Array, Dynamic Programming, Stack, Monotonic Stack" MEDIUM,Word Search,43.5,0.004831293092326878,https://leetcode.com/problems/word-search,"Array, String, Backtracking, Depth-First Search, Matrix" MEDIUM,Rank Scores,43.5,0.006914035104366782,https://leetcode.com/problems/rank-scores,Database MEDIUM,Rotate Function,43.5,0.005404296712991939,https://leetcode.com/problems/rotate-function,"Array, Math, Dynamic Programming" EASY,Squares of a Sorted Array,43.5,0.00742322870487193,https://leetcode.com/problems/squares-of-a-sorted-array,"Array, Two Pointers, Sorting" MEDIUM,Binary Tree Right Side View,43.5,0.007143242620742899,https://leetcode.com/problems/binary-tree-right-side-view,"Tree, Depth-First Search, Breadth-First Search, Binary Tree" EASY,Merge Two Sorted Lists,43.5,0.006901780894413272,https://leetcode.com/problems/merge-two-sorted-lists,"Linked List, Recursion" MEDIUM,Maximum Swap,43.5,0.00521297856576811,https://leetcode.com/problems/maximum-swap,"Math, Greedy" EASY,Article Views I,43.5,0.007696728426596227,https://leetcode.com/problems/article-views-i,Database EASY,Final Value of Variable After Performing Operations,43.5,0.00906159540675102,https://leetcode.com/problems/final-value-of-variable-after-performing-operations,"Array, String, Simulation" EASY,Excel Sheet Column Title,43.5,0.0047856727011274715,https://leetcode.com/problems/excel-sheet-column-title,"Math, String" MEDIUM,Majority Element II,43.5,0.005692207010454214,https://leetcode.com/problems/majority-element-ii,"Array, Hash Table, Sorting, Counting, Boyer–Moore Majority Vote Algorithm" HARD,Regular Expression Matching,43.5,0.00319894529506001,https://leetcode.com/problems/regular-expression-matching,"String, Dynamic Programming, Recursion" EASY,Find Pivot Index,43.5,0.0064125170976495095,https://leetcode.com/problems/find-pivot-index,"Array, Prefix Sum" MEDIUM,Group Anagrams,43.5,0.007344438567310827,https://leetcode.com/problems/group-anagrams,"Array, Hash Table, String, Sorting" HARD,N-Queens,43.5,0.007667730728659936,https://leetcode.com/problems/n-queens,"Array, Backtracking, Algorithm X"