Category - All
New
Algorithms Database Shell Concurrency
(/problemset/algorithms/)
(/problemset/database/)
(/problemset/shell/) (/problemset/concurrency/)
All Problems
(/problemset/all/)
Top 100 Liked Questions
(/problemset/top-100-liked-questions/)
Top Amazon Questions
(/problemset/top-amazon-questions/)
Top Facebook Questions
(/problemset/top-facebook-questions/)
Top Google Questions
(/problemset/top-google-questions/)
Top Interview Questions
(/problemset/top-interview-questions/)
Top LinkedIn Questions
(/problemset/top-linkedin-questions/)
Contribute Question
(/contribute/)
338/1298 Solved - Easy 114 Medium 170 Hard 54 Pick One (/problems/random-one-question/all)
Search question titles, description or IDs Difficulty Status Lists Tags
Easy
# Title Solution Acceptance Difficulty Frequency
1 Two Sum (/problems/two-sum) (/articles/two-sum) 44.9% Easy
20 Valid Parentheses (/articles/valid- 37.7% Easy
(/problems/valid-parentheses) parentheses)
53 Maximum Subarray (/articles/maximum- 45.3% Easy
(/problems/maximum- subarray)
subarray)
21 Merge Two Sorted Lists (/articles/merged- 50.4% Easy
(/problems/merge-two-sorted- two-sorted-lists)
lists)
202 Happy Number (/articles/happy- 47.8% Easy
(/problems/happy-number) number)
937 Reorder Data in Log Files (/articles/reorder- 53.9% Easy
(/problems/reorder-data-in-log- log-files)
files)
206 Reverse Linked List (/articles/reverse- 58.5% Easy
(/problems/reverse-linked-list) linked-list)
121 Best Time to Buy and Sell Stock (/articles/best-time- 48.9% Easy
(/problems/best-time-to-buy- to-buy-and-sell-stock)
and-sell-stock)
# Title Solution Acceptance Difficulty Frequency
953 Verifying an Alien Dictionary (/articles/verifying- 55.2% Easy
(/problems/verifying-an-alien- an-alien-dictionary)
dictionary)
88 Merge Sorted Array (/articles/merge- 37.6% Easy
(/problems/merge-sorted- sorted-arrays)
array)
7 Reverse Integer (/articles/reverse- 25.6% Easy
(/problems/reverse-integer) integer)
125 Valid Palindrome 33.4% Easy
(/problems/valid-palindrome)
412 Fizz Buzz (/problems/fizz-buzz) (/articles/fizz-buzz) 60.6% Easy
572 Subtree of Another Tree (/articles/subtree- 43.3% Easy
(/problems/subtree-of-another- of-another-tree)
tree)
811 Subdomain Visit Count 67.2% Easy
(/problems/subdomain-visit- (/articles/subdomain-
count) visit-count)
9 Palindrome Number 46.0% Easy
(/problems/palindrome- (/articles/palindrome-
number) number)
67 Add Binary (/problems/add- (/articles/add- 41.6% Easy
binary) binary)
13 Roman to Integer 54.0% Easy
(/problems/roman-to-integer)
# Title Solution Acceptance Difficulty Frequency
680 Valid Palindrome II (/articles/valid- 35.5% Easy
(/problems/valid-palindrome-ii) palindrome-ii)
344 Reverse String (/articles/reverse- 65.0% Easy
(/problems/reverse-string) string)
283 Move Zeroes (/problems/move- (/articles/move- 55.8% Easy
zeroes) zeroes)
155 Min Stack (/problems/min- 40.1% Easy
stack)
176 Second Highest Salary (/articles/second- 29.4% Easy
(/problems/second-highest- highest-salary)
salary)
70 Climbing Stairs (/articles/climbing- 45.7% Easy
(/problems/climbing-stairs) stairs)
387 First Unique Character in a String (/articles/first- 51.2% Easy
(/problems/first-unique- unique-character-in-a-
character-in-a-string) string)
415 Add Strings (/problems/add- 45.5% Easy
strings)
443 String Compression (/articles/string- 39.3% Easy
(/problems/string- compression)
compression)
175 Combine Two Tables (/articles/combine- 56.2% Easy
(/problems/combine-two- two-tables)
tables)
# Title Solution Acceptance Difficulty Frequency
543 Diameter of Binary Tree (/articles/diameter- 48.0% Easy
(/problems/diameter-of-binary- of-binary-tree)
tree)
14 Longest Common Prefix (/articles/longest- 34.5% Easy
(/problems/longest-common- common-prefix)
prefix)
706 Design HashMap (/articles/design- 58.1% Easy
(/problems/design-hashmap) hashmap)
819 Most Common Word (/articles/most- 43.4% Easy
(/problems/most-common- common-word)
word)
994 Rotting Oranges (/articles/rotting- 46.6% Easy
(/problems/rotting-oranges) oranges)
716 Max Stack (/problems/max- (/articles/max- 41.7% Easy
stack) stack)
840 Magic Squares In Grid (/articles/magic- 36.5% Easy
(/problems/magic-squares-in- squares-in-grid)
grid)
733 Flood Fill (/problems/flood-fill) (/articles/flood-fill) 52.6% Easy
198 House Robber (/problems/house- (/articles/house- 41.5% Easy
robber) robber)
509 Fibonacci Number (/articles/fibonacci- 66.6% Easy
(/problems/fibonacci-number) number)
242 Valid Anagram (/problems/valid- (/articles/valid- 54.5% Easy
anagram) anagram)
# Title Solution Acceptance Difficulty Frequency
697 Degree of an Array (/articles/degree-of- 52.3% Easy
(/problems/degree-of-an-array) an-array)
1114 Print in Order (/problems/print-in- (/articles/print-in- 61.6% Easy
order) order)
256 Paint House (/problems/paint- 50.8% Easy
house)
349 Intersection of Two Arrays 58.4% Easy
(/problems/intersection-of-two- (/articles/intersection-
arrays) of-two-arrays)
836 Rectangle Overlap (/articles/rectangle- 48.0% Easy
(/problems/rectangle-overlap) overlap)
234 Palindrome Linked List 37.5% Easy
(/problems/palindrome-linked- (/articles/palindrome-
list) linked-list)
136 Single Number (/articles/single- 62.3% Easy
(/problems/single-number) number)
167 Two Sum II - Input array is sorted (/articles/two-sum- 52.1% Easy
(/problems/two-sum-ii-input- ii-input-array-is-
array-is-sorted) sorted)
232 Implement Queue using Stacks 46.2% Easy
(/problems/implement-queue- (/articles/implement-
using-stacks) queue-using-stacks)
1108 Defanging an IP Address 85.3% Easy
(/problems/defanging-an-ip-
address)
# Title Solution Acceptance Difficulty Frequency
38 Count and Say (/problems/count- 42.5% Easy
and-say)
203 Remove Linked List Elements (/articles/remove- 36.8% Easy
(/problems/remove-linked-list- linked-list-elements)
elements)
350 Intersection of Two Arrays II 49.9% Easy
(/problems/intersection-of-two- (/articles/intersection-
arrays-ii) of-two-arrays-ii)
101 Symmetric Tree 45.2% Easy
(/problems/symmetric-tree) (/articles/symmetric-
tree)
122 Best Time to Buy and Sell Stock (/articles/best-time- 53.9% Easy
II (/problems/best-time-to-buy- to-buy-and-sell-stock-
and-sell-stock-ii) ii)
1047 Remove All Adjacent Duplicates (/articles/remove- 65.6% Easy
In String (/problems/remove-all- all-adjacent-
adjacent-duplicates-in-string) duplicates-in-string)
204 Count Primes (/problems/count- 30.3% Easy
primes)
141 Linked List Cycle (/articles/linked-list- 39.0% Easy
(/problems/linked-list-cycle) cycle)
346 Moving Average from Data (/articles/moving- 68.5% Easy
Stream (/problems/moving- average-from-data-
average-from-data-stream) stream)
69 Sqrt(x) (/problems/sqrtx) (/articles/sqrtx) 32.6% Easy
# Title Solution Acceptance Difficulty Frequency
268 Missing Number (/articles/missing- 49.8% Easy
(/problems/missing-number) number)
193 Valid Phone Numbers 25.5% Easy
(/problems/valid-phone-
numbers)
169 Majority Element (/articles/majority- 55.2% Easy
(/problems/majority-element) element)
28 Implement strStr() 33.4% Easy
(/problems/implement-strstr) (/articles/implement-
strstr)
437 Path Sum III (/problems/path- 44.4% Easy
sum-iii)
1122 Relative Sort Array 66.6% Easy
(/problems/relative-sort-array)
168 Excel Sheet Column Title 29.9% Easy
(/problems/excel-sheet-column-
title)
118 Pascal's Triangle (/articles/pascals- 49.2% Easy
(/problems/pascals-triangle) triangle)
938 Range Sum of BST (/articles/range- 78.7% Easy
(/problems/range-sum-of-bst) sum-of-bst)
278 First Bad Version (/articles/first-bad- 32.3% Easy
(/problems/first-bad-version) version)
189 Rotate Array (/problems/rotate- (/articles/rotate- 32.4% Easy
array) array)
# Title Solution Acceptance Difficulty Frequency
160 Intersection of Two Linked Lists 37.0% Easy
(/problems/intersection-of-two- (/articles/intersection-
linked-lists) of-two-linked-lists)
1002 Find Common Characters 66.3% Easy
(/problems/find-common-
characters)
226 Invert Binary Tree (/articles/invert- 60.8% Easy
(/problems/invert-binary-tree) binary-tree)
359 Logger Rate Limiter (/articles/logger- 67.9% Easy
(/problems/logger-rate-limiter) rate-limiter)
104 Maximum Depth of Binary Tree (/articles/maximum- 63.3% Easy
(/problems/maximum-depth-of- depth-of-binary-tree)
binary-tree)
26 Remove Duplicates from Sorted (/articles/remove- 42.8% Easy
Array (/problems/remove- duplicates-from-
duplicates-from-sorted-array) sorted-array)
977 Squares of a Sorted Array (/articles/squares- 71.9% Easy
(/problems/squares-of-a-sorted- of-a-sorted-array)
array)
557 Reverse Words in a String III (/articles/reverse- 66.7% Easy
(/problems/reverse-words-in-a- words-in-a-string-iii)
string-iii)
# Title Solution Acceptance Difficulty Frequency
628 Maximum Product of Three 46.8% Easy
Numbers (/problems/maximum- (/articles/maximmum-
product-of-three-numbers) product-of-three-
numbers)
243 Shortest Word Distance (/articles/shortest- 59.4% Easy
(/problems/shortest-word- word-distance)
distance)
108 Convert Sorted Array to Binary (/articles/convert- 54.1% Easy
Search Tree (/problems/convert- sorted-array-to-bst)
sorted-array-to-binary-search-
tree)
299 Bulls and Cows (/problems/bulls- 41.0% Easy
and-cows)
1170 Compare Strings by Frequency 58.1% Easy
of the Smallest Character
(/problems/compare-strings-by-
frequency-of-the-smallest-
character)
339 Nested List Weight Sum (/articles/nested- 71.0% Easy
(/problems/nested-list-weight- list-weight-sum)
sum)
482 License Key Formatting 42.3% Easy
(/problems/license-key-
formatting)
# Title Solution Acceptance Difficulty Frequency
448 Find All Numbers Disappeared in (/articles/find-all- 54.7% Easy
an Array (/problems/find-all- numbers-
numbers-disappeared-in-an- disappeared-in-an-
array) array)
83 Remove Duplicates from Sorted (/articles/remove- 43.9% Easy
List (/problems/remove- duplicates-from-
duplicates-from-sorted-list) sorted-list)
821 Shortest Distance to a Character (/articles/shortest- 65.1% Easy
(/problems/shortest-distance-to- distance-to-a-
a-character) character)
270 Closest Binary Search Tree Value (/articles/closest- 45.6% Easy
(/problems/closest-binary- bst-value)
search-tree-value)
1086 High Five (/problems/high-five) 76.2% Easy
746 Min Cost Climbing Stairs (/articles/min-cost- 48.6% Easy
(/problems/min-cost-climbing- climbing-stairs)
stairs)
205 Isomorphic Strings 38.7% Easy
(/problems/isomorphic-strings)
66 Plus One (/problems/plus-one) 41.8% Easy
844 Backspace String Compare 46.9% Easy
(/problems/backspace-string- (/articles/backspace-
compare) string-compare)
252 Meeting Rooms (/articles/meeting- 53.5% Easy
(/problems/meeting-rooms) rooms)
# Title Solution Acceptance Difficulty Frequency
724 Find Pivot Index (/problems/find- (/articles/find-pivot- 42.4% Easy
pivot-index) index)
1046 Last Stone Weight 62.4% Easy
(/problems/last-stone-weight)
496 Next Greater Element I (/articles/greater- 61.5% Easy
(/problems/next-greater-element- element-i)
i)
771 Jewels and Stones (/articles/jewels- 84.2% Easy
(/problems/jewels-and-stones) and-stones)
171 Excel Sheet Column Number 52.9% Easy
(/problems/excel-sheet-column-
number)
257 Binary Tree Paths (/articles/binary- 48.3% Easy
(/problems/binary-tree-paths) tree-paths)
1029 Two City Scheduling (/articles/two-city- 55.3% Easy
(/problems/two-city- scheduling)
scheduling)
703 Kth Largest Element in a Stream 47.7% Easy
(/problems/kth-largest-element-
in-a-stream)
605 Can Place Flowers (/articles/can-place- 31.5% Easy
(/problems/can-place-flowers) flowers)
112 Path Sum (/problems/path- (/articles/path-sum) 39.4% Easy
sum)
# Title Solution Acceptance Difficulty Frequency
1010 Pairs of Songs With Total 46.7% Easy
Durations Divisible by 60
(/problems/pairs-of-songs-with-
total-durations-divisible-by-60)
100 Same Tree (/problems/same- (/articles/same-tree) 51.4% Easy
tree)
1099 Two Sum Less Than K 60.2% Easy
(/problems/two-sum-less-than-
k)
235 Lowest Common Ancestor of a (/articles/lowest- 47.4% Easy
Binary Search Tree common-ancestor-of-
(/problems/lowest-common- a-binary-search-tree)
ancestor-of-a-binary-search-
tree)
665 Non-decreasing Array (/articles/non- 19.3% Easy
(/problems/non-decreasing- decreasing-array)
array)
195 Tenth Line (/problems/tenth- 33.8% Easy
line)
225 Implement Stack using Queues 42.0% Easy
(/problems/implement-stack- (/articles/implement-
using-queues) stack-using-queues)
463 Island Perimeter 62.4% Easy
(/problems/island-perimeter)
# Title Solution Acceptance Difficulty Frequency
532 K-diff Pairs in an Array 30.7% Easy
(/problems/k-diff-pairs-in-an-
array)
157 Read N Characters Given Read4 31.7% Easy
(/problems/read-n-characters-
given-read4)
1021 Remove Outermost Parentheses 76.0% Easy
(/problems/remove-outermost-
parentheses)
266 Palindrome Permutation 60.9% Easy
(/problems/palindrome- (/articles/palindrome-
permutation) permutation)
110 Balanced Binary Tree (/articles/balanced- 42.2% Easy
(/problems/balanced-binary- binary-tree)
tree)
290 Word Pattern (/problems/word- 36.0% Easy
pattern)
905 Sort Array By Parity (/articles/sort-array- 73.3% Easy
(/problems/sort-array-by- by-parity)
parity)
617 Merge Two Binary Trees (/articles/merge- 72.0% Easy
(/problems/merge-two-binary- two-binary-trees)
trees)
824 Goat Latin (/problems/goat- (/articles/goat-latin) 60.1% Easy
latin)
# Title Solution Acceptance Difficulty Frequency
217 Contains Duplicate (/articles/contains- 54.3% Easy
(/problems/contains-duplicate) duplicate)
409 Longest Palindrome (/articles/longest- 49.2% Easy
(/problems/longest- palindrome)
palindrome)
538 Convert BST to Greater Tree (/articles/convert- 53.0% Easy
(/problems/convert-bst-to- bst-to-greater-tree)
greater-tree)
709 To Lower Case (/problems/to- 78.2% Easy
lower-case)
832 Flipping an Image (/articles/flipping- 74.2% Easy
(/problems/flipping-an-image) an-image)
1185 Day of the Week (/problems/day- 64.1% Easy
of-the-week)
414 Third Maximum Number 29.7% Easy
(/problems/third-maximum-
number)
1071 Greatest Common Divisor of 53.8% Easy
Strings (/problems/greatest-
common-divisor-of-strings)
876 Middle of the Linked List (/articles/middle-of- 65.7% Easy
(/problems/middle-of-the-linked- the-linked-list)
list)
371 Sum of Two Integers 50.7% Easy
(/problems/sum-of-two-
integers)
# Title Solution Acceptance Difficulty Frequency
246 Strobogrammatic Number 43.7% Easy
(/problems/strobogrammatic-
number)
345 Reverse Vowels of a String 42.7% Easy
(/problems/reverse-vowels-of-a-
string)
181 Employees Earning More Than 52.3% Easy
Their Managers (/articles/employees-
(/problems/employees-earning- earning-more-than-
more-than-their-managers) their-managers)
751 IP to CIDR (/problems/ip-to- (/articles/ip-to-cidr) 61.6% Easy
cidr)
453 Minimum Moves to Equal Array (/articles/minimum- 49.7% Easy
Elements (/problems/minimum- moves-to-equal-array-
moves-to-equal-array- elements)
elements)
231 Power of Two (/problems/power- (/articles/power-of- 42.6% Easy
of-two) two)
686 Repeated String Match (/articles/repeated- 31.9% Easy
(/problems/repeated-string- string-match)
match)
852 Peak Index in a Mountain Array (/articles/peak- 70.5% Easy
(/problems/peak-index-in-a- index-in-a-mountain-
mountain-array) array)
# Title Solution Acceptance Difficulty Frequency
997 Find the Town Judge 49.3% Easy
(/problems/find-the-town-
judge)
237 Delete Node in a Linked List (/articles/delete- 57.1% Easy
(/problems/delete-node-in-a- node-linked-list)
linked-list)
581 Shortest Unsorted Continuous (/articles/shortest- 30.6% Easy
Subarray (/problems/shortest- unsorted-continous-
unsorted-continuous-subarray) subarray)
705 Design HashSet 57.2% Easy
(/problems/design-hashset)
788 Rotated Digits (/articles/rotated- 56.0% Easy
(/problems/rotated-digits) digits)
720 Longest Word in Dictionary (/articles/longest- 46.6% Easy
(/problems/longest-word-in- word-in-dictionary)
dictionary)
1051 Height Checker 68.3% Easy
(/problems/height-checker)
392 Is Subsequence (/problems/is- 47.7% Easy
subsequence)
860 Lemonade Change (/articles/lemonade- 51.0% Easy
(/problems/lemonade-change) change)
541 Reverse String II (/articles/reverse- 46.8% Easy
(/problems/reverse-string-ii) string-ii)
# Title Solution Acceptance Difficulty Frequency
758 Bold Words in String (/articles/bold- 44.0% Easy
(/problems/bold-words-in- words-in-string)
string)
558 Quad Tree Intersection 43.3% Easy
(/problems/quad-tree-
intersection)
653 Two Sum IV - Input is a BST (/articles/two-sum- 54.0% Easy
(/problems/two-sum-iv-input-is- iv)
a-bst)
867 Transpose Matrix (/articles/transpose- 63.7% Easy
(/problems/transpose-matrix) matrix)
657 Robot Return to Origin (/articles/judge- 72.6% Easy
(/problems/robot-return-to- route-circle)
origin)
367 Valid Perfect Square (/articles/valid- 40.7% Easy
(/problems/valid-perfect- perfect-square)
square)
258 Add Digits (/problems/add- 55.2% Easy
digits)
459 Repeated Substring Pattern 41.1% Easy
(/problems/repeated-substring-
pattern)
933 Number of Recent Calls (/articles/number- 69.9% Easy
(/problems/number-of-recent- of-recent-calls)
calls)
# Title Solution Acceptance Difficulty Frequency
796 Rotate String (/problems/rotate- (/articles/rotate- 49.4% Easy
string) string)
401 Binary Watch (/problems/binary- 46.2% Easy
watch)
111 Minimum Depth of Binary Tree (/articles/minimum- 36.3% Easy
(/problems/minimum-depth-of- depth-of-binary-tree)
binary-tree)
929 Unique Email Addresses (/articles/unique- 68.0% Easy
(/problems/unique-email- email-addresses)
addresses)
35 Search Insert Position 41.3% Easy
(/problems/search-insert-
position)
276 Paint Fence (/problems/paint- 37.3% Easy
fence)
892 Surface Area of 3D Shapes (/articles/surface- 57.3% Easy
(/problems/surface-area-of-3d- area-of-3d-shapes)
shapes)
717 1-bit and 2-bit Characters (/articles/1-bit-and- 49.1% Easy
(/problems/1-bit-and-2-bit- 2-bit-characters)
characters)
965 Univalued Binary Tree (/articles/univalued- 67.0% Easy
(/problems/univalued-binary- binary-tree)
tree)
# Title Solution Acceptance Difficulty Frequency
107 Binary Tree Level Order Traversal 49.2% Easy
II (/problems/binary-tree-level-
order-traversal-ii)
1025 Divisor Game (/problems/divisor- 65.4% Easy
game)
172 Factorial Trailing Zeroes 37.7% Easy
(/problems/factorial-trailing-
zeroes)
475 Heaters (/problems/heaters) 32.5% Easy
219 Contains Duplicate II (/articles/contains- 36.5% Easy
(/problems/contains-duplicate- duplicate-ii)
ii)
637 Average of Levels in Binary Tree (/articles/average- 60.6% Easy
(/problems/average-of-levels-in- of-levels)
binary-tree)
1137 N-th Tribonacci Number (/articles/n-th- 57.5% Easy
(/problems/n-th-tribonacci- tribonacci-number)
number)
896 Monotonic Array 56.5% Easy
(/problems/monotonic-array) (/articles/monotonic-
array)
27 Remove Element (/articles/remove- 46.4% Easy
(/problems/remove-element) element)
1189 Maximum Number of Balloons 61.2% Easy
(/problems/maximum-number-of-
balloons)
# Title Solution Acceptance Difficulty Frequency
766 Toeplitz Matrix (/articles/toeplitz- 63.2% Easy
(/problems/toeplitz-matrix) matrix)
405 Convert a Number to 42.9% Easy
Hexadecimal (/problems/convert-
a-number-to-hexadecimal)
551 Student Attendance Record I (/articles/student- 46.2% Easy
(/problems/student-attendance- attendance-record-i)
record-i)
404 Sum of Left Leaves 50.0% Easy
(/problems/sum-of-left-leaves)
961 N-Repeated Element in Size 2N (/articles/n- 72.7% Easy
Array (/problems/n-repeated- repeated-element-in-
element-in-size-2n-array) size-2n-array)
1279 Traffic Light Controlled 84.4% Easy
Intersection (/problems/traffic-
light-controlled-intersection)
859 Buddy Strings (/problems/buddy- (/articles/buddy- 27.8% Easy
strings) strings)
441 Arranging Coins 39.0% Easy
(/problems/arranging-coins)
507 Perfect Number (/articles/perfect- 35.1% Easy
(/problems/perfect-number) number)
119 Pascal's Triangle II 46.3% Easy
(/problems/pascals-triangle-ii)
# Title Solution Acceptance Difficulty Frequency
604 Design Compressed String (/articles/desing- 35.9% Easy
Iterator (/problems/design- compressed-string-
compressed-string-iterator) iterator)
804 Unique Morse Code Words (/articles/unique- 75.7% Easy
(/problems/unique-morse-code- morse-code-words)
words)
671 Second Minimum Node In a (/articles/second- 43.0% Easy
Binary Tree (/problems/second- minimum-node-in-a-
minimum-node-in-a-binary- binary-tree)
tree)
1160 Find Words That Can Be Formed 66.8% Easy
by Characters (/problems/find-
words-that-can-be-formed-by-
characters)
728 Self Dividing Numbers (/articles/self- 72.4% Easy
(/problems/self-dividing- dividing-numbers)
numbers)
888 Fair Candy Swap (/problems/fair- (/articles/fair-candy- 57.0% Easy
candy-swap) swap)
183 Customers Who Never Order 48.7% Easy
(/problems/customers-who- (/articles/customers-
never-order) who-never-order)
1213 Intersection of Three Sorted 77.2% Easy
Arrays (/problems/intersection-
of-three-sorted-arrays)
# Title Solution Acceptance Difficulty Frequency
669 Trim a Binary Search Tree (/articles/trim-a- 61.5% Easy
(/problems/trim-a-binary-search- binary-search-tree)
tree)
559 Maximum Depth of N-ary Tree (/articles/maximum- 66.8% Easy
(/problems/maximum-depth-of- depth-of-n-ary-tree)
n-ary-tree)
58 Length of Last Word 32.4% Easy
(/problems/length-of-last-
word)
383 Ransom Note 51.2% Easy
(/problems/ransom-note)
595 Big Countries (/problems/big- (/articles/big- 75.6% Easy
countries) countries)
687 Longest Univalue Path (/articles/longest- 34.9% Easy
(/problems/longest-univalue- univalue-path)
path)
627 Swap Salary (/problems/swap- (/articles/swap- 72.1% Easy
salary) salary)
1128 Number of Equivalent Domino 46.3% Easy
Pairs (/problems/number-of-
equivalent-domino-pairs)
1064 Fixed Point (/problems/fixed- 70.0% Easy
point)
326 Power of Three (/articles/power-of- 41.9% Easy
(/problems/power-of-three) three)
# Title Solution Acceptance Difficulty Frequency
561 Array Partition I (/problems/array- (/articles/array- 70.6% Easy
partition-i) partitioning-i)
303 Range Sum Query - Immutable (/articles/range- 41.1% Easy
(/problems/range-sum-query- sum-query-immutable)
immutable)
575 Distribute Candies (/articles/distribute- 60.4% Easy
(/problems/distribute-candies) candies)
521 Longest Uncommon (/articles/longest- 57.0% Easy
Subsequence I uncommon-
(/problems/longest-uncommon- subsequence-i)
subsequence-i)
949 Largest Time for Given Digits (/articles/largest- 34.9% Easy
(/problems/largest-time-for- time-for-given-digits)
given-digits)
942 DI String Match (/problems/di- (/articles/di-string- 70.4% Easy
string-match) match)
1179 Reformat Department Table 75.5% Easy
(/problems/reformat-department-
table)
191 Number of 1 Bits (/articles/number-1- 46.1% Easy
(/problems/number-of-1-bits) bits)
170 Two Sum III - Data structure (/articles/two-sum- 32.2% Easy
design (/problems/two-sum-iii- iii-data-structure-
data-structure-design) design)
# Title Solution Acceptance Difficulty Frequency
1221 Split a String in Balanced Strings 80.1% Easy
(/problems/split-a-string-in-
balanced-strings)
1022 Sum of Root To Leaf Binary 63.2% Easy
Numbers (/problems/sum-of-
root-to-leaf-binary-numbers)
590 N-ary Tree Postorder Traversal (/articles/n-ary-tree- 69.6% Easy
(/problems/n-ary-tree-postorder- postorder-transversal)
traversal)
999 Available Captures for Rook 65.8% Easy
(/problems/available-captures-
for-rook)
599 Minimum Index Sum of Two Lists (/articles/minimum- 49.3% Easy
(/problems/minimum-index-sum- index-sum-of-two-
of-two-lists) lists)
190 Reverse Bits (/problems/reverse- 34.1% Easy
bits)
485 Max Consecutive Ones (/articles/max- 55.9% Easy
(/problems/max-consecutive- consecutive-ones)
ones)
674 Longest Continuous Increasing (/articles/longest- 45.1% Easy
Subsequence continuous-
(/problems/longest-continuous- increasing-
increasing-subsequence) subsequence)
# Title Solution Acceptance Difficulty Frequency
1228 Missing Number In Arithmetic 52.7% Easy
Progression (/problems/missing-
number-in-arithmetic-
progression)
884 Uncommon Words from Two 61.6% Easy
Sentences (/articles/uncommon-
(/problems/uncommon-words- words-from-two-
from-two-sentences) sentences)
461 Hamming Distance 70.9% Easy
(/problems/hamming-distance)
1154 Day of the Year (/problems/day- 49.0% Easy
of-the-year)
748 Shortest Completing Word (/articles/shortest- 55.8% Easy
(/problems/shortest-completing- completing-word)
word)
455 Assign Cookies 48.9% Easy
(/problems/assign-cookies)
408 Valid Word Abbreviation 30.0% Easy
(/problems/valid-word-
abbreviation)
696 Count Binary Substrings (/articles/count- 54.6% Easy
(/problems/count-binary- binary-substrings)
substrings)
1118 Number of Days in a Month 56.6% Easy
(/problems/number-of-days-in-a-
month)
# Title Solution Acceptance Difficulty Frequency
1103 Distribute Candies to People (/articles/distribute- 60.1% Easy
(/problems/distribute-candies-to- candies-to-people)
people)
700 Search in a Binary Search Tree (/articles/search-in- 70.0% Easy
(/problems/search-in-a-binary- a-bst)
search-tree)
610 Triangle Judgement (/articles/triangle- 62.9% Easy
(/problems/triangle-judgement) judgement)
704 Binary Search (/problems/binary- (/articles/binary- 50.0% Easy
search) search)
594 Longest Harmonious (/articles/longest- 44.9% Easy
Subsequence harmonious-
(/problems/longest-harmonious- subsequence)
subsequence)
1113 Reported Posts 61.2% Easy
(/problems/reported-posts)
1184 Distance Between Bus Stops 55.5% Easy
(/problems/distance-between-
bus-stops)
849 Maximize Distance to Closest (/articles/maximize- 41.9% Easy
Person (/problems/maximize- distance-to-closest-
distance-to-closest-person) person)
917 Reverse Only Letters (/articles/reverse- 56.8% Easy
(/problems/reverse-only- only-letters)
letters)
# Title Solution Acceptance Difficulty Frequency
263 Ugly Number (/problems/ugly- 41.1% Easy
number)
633 Sum of Square Numbers (/articles/sum-of- 32.5% Easy
(/problems/sum-of-square- square-numbers)
numbers)
597 Friend Requests I: Overall (/articles/friend- 40.6% Easy
Acceptance Rate requests-i-overall-
(/problems/friend-requests-i- acceptance-rate)
overall-acceptance-rate)
374 Guess Number Higher or Lower (/articles/guess- 41.0% Easy
(/problems/guess-number- number-higher-or-
higher-or-lower) lower)
1217 Play with Chips (/problems/play- 64.0% Easy
with-chips)
1119 Remove Vowels from a String 88.3% Easy
(/problems/remove-vowels-from-
a-string)
993 Cousins in Binary Tree (/articles/cousins- 51.9% Easy
(/problems/cousins-in-binary- in-binary-tree)
tree)
874 Walking Robot Simulation (/articles/walking- 33.8% Easy
(/problems/walking-robot- robot-simulation)
simulation)
1200 Minimum Absolute Difference 66.0% Easy
(/problems/minimum-absolute-
difference)
# Title Solution Acceptance Difficulty Frequency
182 Duplicate Emails (/articles/duplicate- 58.3% Easy
(/problems/duplicate-emails) emails)
342 Power of Four (/problems/power- (/articles/power-of- 41.0% Easy
of-four) four)
784 Letter Case Permutation (/articles/letter- 60.7% Easy
(/problems/letter-case- case-permutation)
permutation)
806 Number of Lines To Write String (/articles/number- 63.8% Easy
(/problems/number-of-lines-to- of-lines-to-write-
write-string) string)
563 Binary Tree Tilt (/articles/binary- 47.5% Easy
(/problems/binary-tree-tilt) tree-tilt)
914 X of a Kind in a Deck of Cards (/articles/x-of-a- 33.9% Easy
(/problems/x-of-a-kind-in-a- kind-in-a-deck-of-
deck-of-cards) cards)
760 Find Anagram Mappings (/articles/find- 80.2% Easy
(/problems/find-anagram- anagram-mappings)
mappings)
893 Groups of Special-Equivalent (/articles/groups-of- 64.4% Easy
Strings (/problems/groups-of- special-equivalent-
special-equivalent-strings) strings)
1056 Confusing Number 50.6% Easy
(/problems/confusing-number)
# Title Solution Acceptance Difficulty Frequency
734 Sentence Similarity (/articles/sentence- 41.4% Easy
(/problems/sentence-similarity) similarity)
922 Sort Array By Parity II (/articles/sort-array- 67.6% Easy
(/problems/sort-array-by-parity- by-parity-ii)
ii)
1013 Partition Array Into Three Parts 56.8% Easy
With Equal Sum
(/problems/partition-array-into-
three-parts-with-equal-sum)
897 Increasing Order Search Tree (/articles/increasing- 66.7% Easy
(/problems/increasing-order- order-search-tree)
search-tree)
389 Find the Difference 54.1% Easy
(/problems/find-the-difference)
941 Valid Mountain Array (/articles/valid- 35.3% Easy
(/problems/valid-mountain- mountain-array)
array)
1069 Product Sales Analysis II 83.7% Easy
(/problems/product-sales-
analysis-ii)
661 Image Smoother (/articles/image- 49.9% Easy
(/problems/image-smoother) smoother)
500 Keyboard Row 63.3% Easy
(/problems/keyboard-row)
# Title Solution Acceptance Difficulty Frequency
606 Construct String from Binary Tree (/articles/construct- 52.7% Easy
(/problems/construct-string- string-from-binary-
from-binary-tree) tree)
624 Maximum Distance in Arrays (/articles/maximum- 38.3% Easy
(/problems/maximum-distance- distance-in-array)
in-arrays)
868 Binary Gap (/problems/binary- (/articles/binary- 60.1% Easy
gap) gap)
1030 Matrix Cells in Distance Order 64.4% Easy
(/problems/matrix-cells-in-
distance-order)
422 Valid Word Square 36.9% Easy
(/problems/valid-word-square)
501 Find Mode in Binary Search Tree 40.7% Easy
(/problems/find-mode-in-binary-
search-tree)
872 Leaf-Similar Trees (/articles/leaf- 64.4% Easy
(/problems/leaf-similar-trees) similar-trees)
1252 Cells with Odd Values in a Matrix 77.9% Easy
(/problems/cells-with-odd-
values-in-a-matrix)
292 Nim Game (/problems/nim- (/articles/nim-game) 56.0% Easy
game)
# Title Solution Acceptance Difficulty Frequency
196 Delete Duplicate Emails (/articles/delete- 36.7% Easy
(/problems/delete-duplicate- duplicate-emails)
emails)
744 Find Smallest Letter Greater (/articles/find- 44.7% Easy
Than Target (/problems/find- smallest-letter-greater-
smallest-letter-greater-than- than-target)
target)
1005 Maximize Sum Of Array After K 50.5% Easy
Negations (/problems/maximize-
sum-of-array-after-k-
negations)
589 N-ary Tree Preorder Traversal (/articles/n-ary-tree- 69.6% Easy
(/problems/n-ary-tree-preorder- preorder-traversal)
traversal)
1084 Sales Analysis III 54.4% Easy
(/problems/sales-analysis-iii)
530 Minimum Absolute Difference in 52.0% Easy
BST (/problems/minimum-
absolute-difference-in-bst)
976 Largest Perimeter Triangle (/articles/largest- 57.2% Easy
(/problems/largest-perimeter- perimeter-triangle)
triangle)
783 Minimum Distance Between BST (/articles/minimum- 51.1% Easy
Nodes (/problems/minimum- distance-between-bst-
distance-between-bst-nodes) nodes)
# Title Solution Acceptance Difficulty Frequency
812 Largest Triangle Area (/articles/largest- 57.2% Easy
(/problems/largest-triangle- triangle-area)
area)
1165 Single-Row Keyboard 84.2% Easy
(/problems/single-row-
keyboard)
1042 Flower Planting With No Adjacent 47.9% Easy
(/problems/flower-planting-with-
no-adjacent)
1196 How Many Apples Can You Put 67.8% Easy
into the Basket (/problems/how-
many-apples-can-you-put-into-
the-basket)
1180 Count Substrings with Only One 76.6% Easy
Distinct Letter (/problems/count-
substrings-with-only-one-
distinct-letter)
747 Largest Number At Least Twice (/articles/largest- 41.0% Easy
of Others (/problems/largest- number-at-least-
number-at-least-twice-of- twice-of-others)
others)
598 Range Addition II (/articles/range- 49.2% Easy
(/problems/range-addition-ii) addition-ii)
1176 Diet Plan Performance 51.0% Easy
(/problems/diet-plan-
performance)
# Title Solution Acceptance Difficulty Frequency
690 Employee Importance (/articles/employee- 55.4% Easy
(/problems/employee- importance)
importance)
1207 Unique Number of Occurrences 71.8% Easy
(/problems/unique-number-of-
occurrences)
989 Add to Array-Form of Integer (/articles/add-to- 44.1% Easy
(/problems/add-to-array-form-of- array-form-of-integer)
integer)
1068 Product Sales Analysis I 84.8% Easy
(/problems/product-sales-
analysis-i)
1142 User Activity for the Past 30 Days 35.5% Easy
II (/problems/user-activity-for-
the-past-30-days-ii)
1241 Number of Comments per Post 71.7% Easy
(/problems/number-of-
comments-per-post)
447 Number of Boomerangs 50.9% Easy
(/problems/number-of-
boomerangs)
1009 Complement of Base 10 Integer 59.4% Easy
(/problems/complement-of-base-
10-integer)
# Title Solution Acceptance Difficulty Frequency
1173 Immediate Food Delivery I 76.4% Easy
(/problems/immediate-food-
delivery-i)
925 Long Pressed Name (/articles/long- 44.5% Easy
(/problems/long-pressed- pressed-name)
name)
504 Base 7 (/problems/base-7) 45.5% Easy
908 Smallest Range I (/articles/smallest- 65.1% Easy
(/problems/smallest-range-i) range-i)
1148 Article Views I (/problems/article- 73.5% Easy
views-i)
1089 Duplicate Zeros (/articles/duplicate- 58.4% Easy
(/problems/duplicate-zeros) zeros)
511 Game Play Analysis I 77.7% Easy
(/problems/game-play-analysis-
i)
944 Delete Columns to Make Sorted (/articles/delete- 69.8% Easy
(/problems/delete-columns-to- columns-to-make-
make-sorted) sorted)
1266 Minimum Time Visiting All Points 78.9% Easy
(/problems/minimum-time-
visiting-all-points)
197 Rising Temperature (/articles/rising- 36.6% Easy
(/problems/rising-temperature) temperature)
# Title Solution Acceptance Difficulty Frequency
620 Not Boring Movies (/articles/not- 64.2% Easy
(/problems/not-boring-movies) boring-movies)
1290 Convert Binary Number in a 82.9% Easy
Linked List to Integer
(/problems/convert-binary-
number-in-a-linked-list-to-
integer)
985 Sum of Even Numbers After (/articles/sum-of- 62.4% Easy
Queries (/problems/sum-of-even- even-numbers-after-
numbers-after-queries) queries)
566 Reshape the Matrix (/articles/reshape- 59.6% Easy
(/problems/reshape-the- the-matrix)
matrix)
434 Number of Segments in a String (/articles/number- 37.4% Easy
(/problems/number-of-segments- of-segments-in-a-
in-a-string) string)
643 Maximum Average Subarray I (/articles/maximum- 40.6% Easy
(/problems/maximum-average- average-subarray)
subarray-i)
1281 Subtract the Product and Sum of 84.0% Easy
Digits of an Integer
(/problems/subtract-the-product-
and-sum-of-digits-of-an-
integer)
520 Detect Capital (/problems/detect- 52.9% Easy
capital)
# Title Solution Acceptance Difficulty Frequency
1275 Find Winner on a Tic Tac Toe 54.9% Easy
Game (/problems/find-winner-on-
a-tic-tac-toe-game)
1294 Weather Type in Each Country 66.8% Easy
(/problems/weather-type-in-
each-country) New
1295 Find Numbers with Even Number 86.3% Easy
of Digits (/problems/find-
numbers-with-even-number-of-
digits)
1280 Students and Examinations 71.1% Easy
(/problems/students-and-
examinations)
1251 Average Selling Price 76.7% Easy
(/problems/average-selling-
price)
1260 Shift 2D Grid (/problems/shift-2d- 59.6% Easy
grid)
1237 Find Positive Integer Solution for 67.1% Easy
a Given Equation
(/problems/find-positive-integer-
solution-for-a-given-equation)
1232 Check If It Is a Straight Line 46.9% Easy
(/problems/check-if-it-is-a-
straight-line)
# Title Solution Acceptance Difficulty Frequency
1211 Queries Quality and Percentage 67.3% Easy
(/problems/queries-quality-and-
percentage)
1175 Prime Arrangements 50.3% Easy
(/problems/prime-
arrangements)
1141 User Activity for the Past 30 Days 53.9% Easy
I (/problems/user-activity-for-the-
past-30-days-i)
1287 Element Appearing More Than 60.7% Easy
25% In Sorted Array
(/problems/element-appearing-
more-than-25-in-sorted-array)
1271 Hexspeak (/problems/hexspeak) 52.0% Easy
512 Game Play Analysis II 55.2% Easy
(/problems/game-play-analysis-
ii)
1243 Array Transformation 52.4% Easy
(/problems/array-
transformation)
1083 Sales Analysis II 51.5% Easy
(/problems/sales-analysis-ii)
1082 Sales Analysis I 71.9% Easy
(/problems/sales-analysis-i)
# Title Solution Acceptance Difficulty Frequency
1076 Project Employees II 53.2% Easy
(/problems/project-employees-
ii)
1075 Project Employees I 62.3% Easy
(/problems/project-employees-i)
1078 Occurrences After Bigram 64.5% Easy
(/problems/occurrences-after-
bigram)
1050 Actors and Directors Who 72.1% Easy
Cooperated At Least Three
Times (/problems/actors-and-
directors-who-cooperated-at-
least-three-times)
1037 Valid Boomerang 37.4% Easy
(/problems/valid-boomerang)
1033 Moving Stones Until Consecutive 39.2% Easy
(/problems/moving-stones-until-
consecutive)
1150 Check If a Number Is Majority 60.7% Easy
Element in a Sorted Array
(/problems/check-if-a-number-is-
majority-element-in-a-sorted-
array)
1133 Largest Unique Number 66.7% Easy
(/problems/largest-unique-
number)
# Title Solution Acceptance Difficulty Frequency
1134 Armstrong Number 77.7% Easy
(/problems/armstrong-number)
1085 Sum of Digits in the Minimum 74.3% Easy
Number (/problems/sum-of-
digits-in-the-minimum-number)
1065 Index Pairs of a String 58.1% Easy
(/problems/index-pairs-of-a-
string)
1018 Binary Prefix Divisible By 5 47.0% Easy
(/problems/binary-prefix-
divisible-by-5)
970 Powerful Integers (/articles/powerful- 39.6% Easy
(/problems/powerful-integers) integers)
883 Projection Area of 3D Shapes (/articles/projection- 66.7% Easy
(/problems/projection-area-of- area-of-3d-shapes)
3d-shapes)
830 Positions of Large Groups (/articles/positions- 48.4% Easy
(/problems/positions-of-large- of-large-groups)
groups)
800 Similar RGB Color (/articles/similar- 60.9% Easy
(/problems/similar-rgb-color) rgb-color)
# Title Solution Acceptance Difficulty Frequency
762 Prime Number of Set Bits in (/articles/prime- 61.1% Easy
Binary Representation number-of-set-bits-in-
(/problems/prime-number-of-set- binary-representation)
bits-in-binary-representation)
693 Binary Number with Alternating (/articles/binary- 58.6% Easy
Bits (/problems/binary-number- number-with-
with-alternating-bits) alternating-bits)
682 Baseball Game (/articles/baseball- 62.1% Easy
(/problems/baseball-game) game)
645 Set Mismatch (/problems/set- (/articles/set- 41.3% Easy
mismatch) mismatch)
619 Biggest Single Number (/articles/biggest- 40.7% Easy
(/problems/biggest-single- single-number)
number)
613 Shortest Distance in a Line (/articles/shortest- 74.9% Easy
(/problems/shortest-distance-in- distance-in-a-line)
a-line)
607 Sales Person (/problems/sales- (/articles/sales- 59.9% Easy
person) person)
603 Consecutive Available Seats 60.9% Easy
(/problems/consecutive- (/articles/consecutive-
available-seats) available-seats)
596 Classes More Than 5 Students (/articles/classes- 36.9% Easy
(/problems/classes-more-than-5- more-than-5-students)
students)
# Title Solution Acceptance Difficulty Frequency
586 Customer Placing the Largest (/articles/customer- 69.3% Easy
Number of Orders placing-the-largest-
(/problems/customer-placing- number-of-orders)
the-largest-number-of-orders)
584 Find Customer Referee (/articles/find- 69.3% Easy
(/problems/find-customer- customer-referee)
referee)
577 Employee Bonus (/articles/employee- 63.0% Easy
(/problems/employee-bonus) bonus)
506 Relative Ranks 49.3% Easy
(/problems/relative-ranks)
492 Construct the Rectangle 49.0% Easy
(/problems/construct-the-
rectangle)
476 Number Complement 63.0% Easy
(/problems/number-
complement)
293 Flip Game (/problems/flip- 59.7% Easy
game)
all rows per page.
Topics
Array 212 (/tag/array/) Dynamic Programming 174 (/tag/dynamic-programming/) Math 163 (/tag/math/)
String 151 (/tag/string/) Tree 123 (/tag/tree/) Hash Table 121 (/tag/hash-table/)
Depth-first Search 114 (/tag/depth-first-search/) Binary Search 81 (/tag/binary-search/) Greedy 69 (/tag/greedy/)
Breadth-first Search 61 (/tag/breadth-first-search/) Two Pointers 60 (/tag/two-pointers/) Stack 54 (/tag/stack/)
Backtracking 52 (/tag/backtracking/) Design 43 (/tag/design/) Bit Manipulation 40 (/tag/bit-manipulation/)
Sort 38 (/tag/sort/) Graph 37 (/tag/graph/) Linked List 37 (/tag/linked-list/) Heap 34 (/tag/heap/)
Show Less
Companies
Google 755 (/company/google/) Amazon 606 (/company/amazon/) Facebook 450 (/company/facebook/)
Microsoft 407 (/company/microsoft/) Uber 274 (/company/uber/) Apple 264 (/company/apple/)
Bloomberg 256 (/company/bloomberg/) Adobe 171 (/company/adobe/) LinkedIn 135 (/company/linkedin/)
Oracle 127 (/company/oracle/) Yahoo 106 (/company/yahoo/) Goldman Sachs 85 (/company/goldman-sachs/)
Snapchat 80 (/company/snapchat/) Twitter 79 (/company/twitter/) Walmart Labs 67 (/company/walmart-labs/)
Airbnb 64 (/company/airbnb/) VMware 60 (/company/vmware/) eBay 59 (/company/ebay/)
Salesforce 59 (/company/salesforce/) Alibaba 53 (/company/alibaba/) Lyft 52 (/company/lyft/)
Cisco 50 (/company/cisco/) Expedia 45 (/company/expedia/) ByteDance 44 (/company/bytedance/)
Yelp 44 (/company/yelp/) Baidu 38 (/company/baidu/) Paypal 37 (/company/paypal/) Pinterest 36 (/company/pinterest/)
Yandex 35 (/company/yandex/) Mathworks 34 (/company/mathworks/) Zillow 33 (/company/zillow/)
SAP 30 (/company/sap/) Visa 30 (/company/visa/) Atlassian 29 (/company/atlassian/) Tencent 29 (/company/tencent/)
Quora 27 (/company/quora/) Intuit 25 (/company/intuit/) Nutanix 25 (/company/nutanix/) Citadel 24 (/company/citadel/)
Dropbox 23 (/company/dropbox/) Qualtrics 23 (/company/qualtrics/) Zenefits 23 (/company/zenefits/)
Pocket Gems 22 (/company/pocket-gems/) Wayfair 21 (/company/wayfair/) Wish 21 (/company/wish/)
Palantir Technologies 20 (/company/palantir-technologies/) Indeed 19 (/company/indeed/) Square 19 (/company/square/)
Two Sigma 19 (/company/two-sigma/) Akuna Capital 18 (/company/akuna-capital/) GoDaddy 18 (/company/godaddy/)
Hulu 18 (/company/hulu/) JPMorgan 18 (/company/jpmorgan/) Samsung 18 (/company/samsung/)
Houzz 17 (/company/houzz/) Coursera 16 (/company/coursera/) DoorDash 16 (/company/doordash/)
IXL 16 (/company/ixl/) TripAdvisor 16 (/company/tripadvisor/)
Show More
Copyright © 2019 LeetCode Help Center (/support/) | Terms (/terms/) | Privacy (/privacy/) United States
(/region/)