Amazon
You have solved 779 / 1232 problems.
Show problem tags
Select time period:
All time
# Title Acceptance Difficulty Frequency
1757
Recyclable and Low Fat Products 92.4% Easy
1119
Remove Vowels from a String
90.8% Easy
1350
Students With Invalid Departments
90.2% Easy
1303
Find the Team Size
90.0% Easy
1920
Build Array from Permutation 90.0% Easy
1741
Find Total Time Spent by Each Employee 89.5% Easy
1108
Defanging an IP Address 89.1% Easy
1470
Shuffle the Array 88.9% Easy
1571
Warehouse Manager
88.6% Easy
2235
Add Two Integers 88.3% Easy
771
Jewels and Stones 88.2% Easy
1512
Number of Good Pairs 88.2% Easy
1431
Kids With the Greatest Number of Candies 88.0% Easy
1603
Design Parking System 87.9% Easy
1672
Richest Customer Wealth 87.9% Easy
1480
Running Sum of 1d Array 87.3% Easy
2160
Minimum Sum of Four Digit Number After Splitting Digits 86.8% Easy
1365
How Many Numbers Are Smaller Than the Current Number 86.6% Easy
1379
Find a Corresponding Node of a Binary Tree in a Clone of That Tree 86.6% Easy
1678
Goal Parser Interpretation 86.6% Easy
1623
All Valid Triplets That Can Represent a Country
86.5% Easy
1795
Rearrange Products Table 86.4% Easy
938
Range Sum of BST 85.9% Easy
1313
Decompress Run-Length Encoded List 85.8% Easy
1581
Customer Who Visited but Did Not Make Any Transactions 84.3% Easy
2236
Root Equals Sum of Children 84.2% Easy
1859
Sorting the Sentence 84.0% Easy
1777
Product's Price for Each Store
83.5% Easy
1832
Check if the Sentence Is Pangram 83.5% Easy
1588
Sum of All Odd Length Subarrays 83.4% Easy
1421
NPV Queries
83.2% Easy
2006
Count Number of Pairs With Absolute Difference K 82.9% Easy
1768
Merge Strings Alternately 82.8% Easy
804
Unique Morse Code Words 82.6% Easy
709
To Lower Case 82.4% Easy
1290
Convert Binary Number in a Linked List to Integer 82.1% Easy
1614
Maximum Nesting Depth of the Parentheses 82.1% Easy
557
Reverse Words in a String III 81.9% Easy
1069
Product Sales Analysis II
81.9% Easy
832
Flipping an Image 80.8% Easy
1068
Product Sales Analysis I 80.7% Easy
1251
Average Selling Price 80.6% Easy
1572
Matrix Diagonal Sum 80.4% Easy
1179
Reformat Department Table 80.3% Easy
1863
Sum of All Subset XOR Totals 80.2% Easy
2485
Find the Pivot Integer 80.1% Easy
1464
Maximum Product of Two Elements in an Array 80.0% Easy
1180
Count Substrings with Only One Distinct Letter
79.0% Easy
617
Merge Two Binary Trees 78.7% Easy
897
Increasing Order Search Tree 78.4% Easy
728
Self Dividing Numbers 77.9% Easy
700
Search in a Binary Search Tree 77.8% Easy
1134
Armstrong Number
77.7% Easy
1704
Determine if String Halves Are Alike 77.7% Easy
1436
Destination City 77.4% Easy
561
Array Partition 77.3% Easy
346
Moving Average from Data Stream
77.1% Easy
1295
Find Numbers with Even Number of Digits 77.0% Easy
1370
Increasing Decreasing String 76.9% Easy
344
Reverse String 76.8% Easy
1085
Sum of Digits in the Minimum Number
76.4% Easy
1332
Remove Palindromic Subsequences 76.2% Easy
1475
Final Prices With a Special Discount in a Shop 76.1% Easy
338
Counting Bits 75.8% Easy
876
Middle of the Linked List 75.8% Easy
2341
Maximum Number of Pairs in Array 75.8% Easy
359
Logger Rate Limiter
75.6% Easy
905
Sort Array By Parity 75.6% Easy
511
Game Play Analysis I 75.6% Easy
1351
Count Negative Numbers in a Sorted Matrix 75.5% Easy
1327
List the Products Ordered in a Period 75.4% Easy
657
Robot Return to Origin 75.3% Easy
2169
Count Operations to Obtain Zero 75.1% Easy
461
Hamming Distance 75.0% Easy
1086
High Five
75.0% Easy
226
Invert Binary Tree 74.8% Easy
1082
Sales Analysis I
74.8% Easy
682
Baseball Game 74.4% Easy
175
Combine Two Tables 74.3% Easy
94
Binary Tree Inorder Traversal 73.9% Easy
104
Maximum Depth of Binary Tree 73.9% Easy
1710
Maximum Units on a Truck 73.8% Easy
206
Reverse Linked List 73.7% Easy
1022
Sum of Root To Leaf Binary Numbers 73.5% Easy
1207
Unique Number of Occurrences 73.5% Easy
1299
Replace Elements with Greatest Element on Right Side 73.2% Easy
933
Number of Recent Calls 73.1% Easy
2357
Make Array Zero by Subtracting Equal Amounts 72.4% Easy
2053
Kth Distinct String in an Array 72.2% Easy
1337
The K Weakest Rows in a Matrix 72.0% Easy
977
Squares of a Sorted Array 71.9% Easy
637
Average of Levels in Binary Tree 71.7% Easy
496
Next Greater Element I 71.4% Easy
1511
Customer Order Frequency
71.2% Easy
1876
Substrings of Size Three with Distinct Characters 71.2% Easy
349
Intersection of Two Arrays 71.0% Easy
118
Pascal's Triangle 70.9% Easy
136
Single Number 70.8% Easy
922
Sort Array By Parity II 70.6% Easy
1050
Actors and Directors Who Cooperated At Least Three Times 70.4% Easy
412
Fizz Buzz 70.1% Easy
2578
Split With Minimum Sum 70.0% Easy
108
Convert Sorted Array to Binary Search Tree 69.9% Easy
595
Big Countries 69.9% Easy
509
Fibonacci Number 69.9% Easy
463
Island Perimeter 69.7% Easy
1200
Minimum Absolute Difference 69.6% Easy
1636
Sort Array by Increasing Frequency 69.6% Easy
1047
Remove All Adjacent Duplicates In String 69.5% Easy
584
Find Customer Referee 69.3% Easy
181
Employees Earning More Than Their Managers 69.0% Easy
183
Customers Who Never Order 68.6% Easy
766
Toeplitz Matrix 68.6% Easy
2329
Product Sales Analysis V
68.6% Easy
1002
Find Common Characters 68.5% Easy
762
Prime Number of Set Bits in Binary Representation 68.1% Easy
1925
Count Square Sum Triples 68.0% Easy
1260
Shift 2D Grid 67.8% Easy
1502
Can Make Arithmetic Progression From Sequence 67.7% Easy
1133
Largest Unique Number
67.6% Easy
476
Number Complement 67.4% Easy
1160
Find Words That Can Be Formed by Characters 67.4% Easy
603
Consecutive Available Seats
67.3% Easy
1779
Find Nearest Point That Has the Same X or Y Coordinate 67.3% Easy
1413
Minimum Value to Get Positive Step by Step Sum 67.2% Easy
929
Unique Email Addresses 67.1% Easy
2078
Two Furthest Houses With Different Colors 66.9% Easy
191
Number of 1 Bits 66.8% Easy
1385
Find the Distance Value Between Two Arrays 66.7% Easy
705
Design HashSet 65.6% Easy
696
Count Binary Substrings 65.4% Easy
1046
Last Stone Weight 65.3% Easy
243
Shortest Word Distance
65.0% Easy
706
Design HashMap 64.7% Easy
867
Transpose Matrix 64.4% Easy
1103
Distribute Candies to People 64.3% Easy
1455
Check If a Word Occurs As a Prefix of Any Word in a Sentence 64.2% Easy
606
Construct String from Binary Tree 64.1% Easy
892
Surface Area of 3D Shapes 64.1% Easy
258
Add Digits 64.0% Easy
169
Majority Element 63.9% Easy
1065
Index Pairs of a String
63.9% Easy
1137
N-th Tribonacci Number 63.7% Easy
1408
String Matching in an Array 63.7% Easy
232
Implement Queue using Stacks 63.3% Easy
746
Min Cost Climbing Stairs 63.3% Easy
242
Valid Anagram 63.1% Easy
268
Missing Number 62.7% Easy
21
Merge Two Sorted Lists 62.6% Easy
917
Reverse Only Letters 62.2% Easy
171
Excel Sheet Column Number 62.1% Easy
733
Flood Fill 62.1% Easy
257
Binary Tree Paths 61.5% Easy
217
Contains Duplicate 61.4% Easy
283
Move Zeroes 61.4% Easy
653
Two Sum IV - Input is a BST 61.1% Easy
1099
Two Sum Less Than K
61.1% Easy
196
Delete Duplicate Emails 61.0% Easy
119
Pascal's Triangle II 60.9% Easy
888
Fair Candy Swap 60.8% Easy
506
Relative Ranks 60.7% Easy
2347
Best Poker Hand 60.5% Easy
1869
Longer Contiguous Segments of Ones than Zeros 60.4% Easy
1854
Maximum Population Year 60.1% Easy
448
Find All Numbers Disappeared in an Array 60.0% Easy
389
Find the Difference 59.9% Easy
303
Range Sum Query - Immutable 59.7% Easy
387
First Unique Character in a String 59.7% Easy
1331
Rank Transform of an Array 59.3% Easy
1809
Ad-Free Sessions
58.9% Easy
225
Implement Stack using Queues 58.8% Easy
13
Roman to Integer 58.6% Easy
1539
Kth Missing Positive Number 58.6% Easy
896
Monotonic Array 58.4% Easy
100
Same Tree 58.3% Easy
383
Ransom Note 58.3% Easy
2465
Number of Distinct Averages 58.2% Easy
2287
Rearrange Characters to Make Target String 58.0% Easy
252
Meeting Rooms
57.3% Easy
530
Minimum Absolute Difference in BST 57.3% Easy
1118
Number of Days in a Month
57.2% Easy
520
Detect Capital 57.0% Easy
543
Diameter of Binary Tree 56.9% Easy
404
Sum of Left Leaves 56.8% Easy
485
Max Consecutive Ones 56.6% Easy
1071
Greatest Common Divisor of Strings 56.6% Easy
704
Binary Search 56.2% Easy
350
Intersection of Two Arrays II 56.0% Easy
1496
Path Crossing 56.0% Easy
1886
Determine Whether Matrix Can Be Obtained By Rotation 55.9% Easy
703
Kth Largest Element in a Stream 55.5% Easy
598
Range Addition II 55.4% Easy
661
Image Smoother 55.4% Easy
796
Rotate String 55.3% Easy
202
Happy Number 54.9% Easy
724
Find Pivot Index 54.9% Easy
1175
Prime Arrangements 54.8% Easy
270
Closest Binary Search Tree Value
54.7% Easy
993
Cousins in Binary Tree 54.7% Easy
160
Intersection of Two Linked Lists 54.5% Easy
953
Verifying an Alien Dictionary 54.5% Easy
101
Symmetric Tree 54.4% Easy
2016
Maximum Difference Between Increasing Elements 54.4% Easy
121
Best Time to Buy and Sell Stock 54.3% Easy
190
Reverse Bits 54.2% Easy
409
Longest Palindrome 54.2% Easy
1275
Find Winner on a Tic Tac Toe Game 54.2% Easy
9
Palindrome Number 53.6% Easy
1961
Check If String Is a Prefix of Array 53.3% Easy
27
Remove Element 53.1% Easy
1176
Diet Plan Performance
52.8% Easy
415
Add Strings 52.5% Easy
67
Add Binary 52.4% Easy
70
Climbing Stairs 52.2% Easy
1971
Find if Path Exists in Graph 52.0% Easy
374
Guess Number Higher or Lower 51.9% Easy
26
Remove Duplicates from Sorted Array 51.7% Easy
1089
Duplicate Zeros 51.5% Easy
83
Remove Duplicates from Sorted List 50.7% Easy
541
Reverse String II 50.4% Easy
234
Palindrome Linked List 50.3% Easy
345
Reverse Vowels of a String 50.2% Easy
1752
Check if Array Is Sorted and Rotated 50.2% Easy
455
Assign Cookies 49.9% Easy
1083
Sales Analysis II
49.9% Easy
1
Two Sum 49.8% Easy
997
Find the Town Judge 49.5% Easy
1523
Count Odd Numbers in an Interval Range 49.4% Easy
110
Balanced Binary Tree 49.2% Easy
1495
Friendly Movies Streamed Last Month
49.2% Easy
1084
Sales Analysis III 48.7% Easy
112
Path Sum 48.3% Easy
1360
Number of Days Between Two Dates 48.2% Easy
844
Backspace String Compare 48.1% Easy
141
Linked List Cycle 47.5% Easy
392
Is Subsequence 47.5% Easy
1128
Number of Equivalent Domino Pairs 47.2% Easy
405
Convert a Number to Hexadecimal 46.8% Easy
88
Merge Sorted Array 46.7% Easy
572
Subtree of Another Tree 46.4% Easy
441
Arranging Coins 46.3% Easy
342
Power of Four 46.2% Easy
203
Remove Linked List Elements 46.1% Easy
231
Power of Two 46.0% Easy
2259
Remove Digit From Number to Maximize Result 46.0% Easy
744
Find Smallest Letter Greater Than Target 45.9% Easy
628
Maximum Product of Three Numbers 45.8% Easy
326
Power of Three 45.6% Easy
1790
Check if One String Swap Can Make Strings Equal 45.2% Easy
197
Rising Temperature 44.7% Easy
819
Most Common Word 44.7% Easy
111
Minimum Depth of Binary Tree 44.5% Easy
125
Valid Palindrome 44.5% Easy
836
Rectangle Overlap 43.9% Easy
66
Plus One 43.7% Easy
459
Repeated Substring Pattern 43.7% Easy
35
Search Insert Position 43.5% Easy
278
First Bad Version 43.4% Easy
367
Valid Perfect Square 43.4% Easy
58
Length of Last Word 43.2% Easy
205
Isomorphic Strings 43.0% Easy
2099
Find Subsequence of Length K With the Largest Sum 42.9% Easy
645
Set Mismatch 42.7% Easy
219
Contains Duplicate II 42.6% Easy
263
Ugly Number 42.2% Easy
290
Word Pattern 41.7% Easy
157
Read N Characters Given Read4
41.0% Easy
14
Longest Common Prefix 40.9% Easy
20
Valid Parentheses 40.5% Easy
680
Valid Palindrome II 39.4% Easy
28
Find the Index of the First Occurrence in a String 39.2% Easy
69
Sqrt(x) 37.5% Easy
168
Excel Sheet Column Title 35.6% Easy
941
Valid Mountain Array 33.4% Easy
414
Third Maximum Number 33.3% Easy
605
Can Place Flowers 32.8% Easy
163
Missing Ranges
32.2% Easy
2047
Number of Valid Words in a Sentence 29.1% Easy
193
Valid Phone Numbers 26.0% Easy
1570
Dot Product of Two Sparse Vectors
90.3% Medium
1445
Apples & Oranges
89.5% Medium
1689
Partitioning Into Minimum Number Of Deci-Binary Numbers 89.2% Medium
2396
Strictly Palindromic Number 87.6% Medium
1302
Deepest Leaves Sum 86.6% Medium
1783
Grand Slam Titles
86.5% Medium
535
Encode and Decode TinyURL 86.0% Medium
807
Max Increase to Keep City Skyline 86.0% Medium
1038
Binary Search Tree to Greater Sum Tree 85.5% Medium
1315
Sum of Nodes with Even-Valued Grandparent 85.5% Medium
1285
Find the Start and End Number of Continuous Ranges
85.3% Medium
1769
Minimum Number of Operations to Move All Balls to Each Box 85.2% Medium
2265
Count Nodes Equal to Average of Subtree 85.1% Medium
654
Maximum Binary Tree 84.8% Medium
2161
Partition Array According to Given Pivot 84.7% Medium
2408
Design SQL
83.8% Medium
1409
Queries on a Permutation With Key 83.5% Medium
1490
Clone N-ary Tree
83.5% Medium
1329
Sort the Matrix Diagonally 83.3% Medium
1628
Design an Expression Tree With Evaluate Function
82.9% Medium
1596
The Most Frequently Ordered Products for Each Customer
82.8% Medium
1699
Number of Calls Between Two Persons
82.7% Medium
339
Nested List Weight Sum
82.3% Medium
797
All Paths From Source to Target 82.3% Medium
2125
Number of Laser Beams in a Bank 81.8% Medium
1008
Construct Binary Search Tree from Preorder Traversal 81.2% Medium
2149
Rearrange Array Elements by Sign 81.0% Medium
1382
Balance a Binary Search Tree 80.7% Medium
1485
Clone Binary Tree With Random Pointer
80.6% Medium
2130
Maximum Twin Sum of a Linked List 80.5% Medium
366
Find Leaves of Binary Tree
80.3% Medium
2405
Optimal Partition of String 80.1% Medium
894
All Possible Full Binary Trees 80.0% Medium
1305
All Elements in Two Binary Search Trees 79.8% Medium
763
Partition Labels 79.7% Medium
776
Split BST
79.6% Medium
2482
Difference Between Ones and Zeros in Row and Column 79.6% Medium
1676
Lowest Common Ancestor of a Binary Tree IV
79.5% Medium
1557
Minimum Number of Vertices to Reach All Nodes 79.3% Medium
1762
Buildings With an Ocean View
79.0% Medium
2221
Find Triangular Sum of an Array 78.3% Medium
1472
Design Browser History 78.2% Medium
1823
Find the Winner of the Circular Game 78.1% Medium
890
Find and Replace Pattern 77.5% Medium
1641
Count Sorted Vowel Strings 77.4% Medium
1650
Lowest Common Ancestor of a Binary Tree III
77.4% Medium
1381
Design a Stack With Increment Operation 77.1% Medium
2324
Product Sales Analysis IV
76.2% Medium
237
Delete Node in a Linked List 76.1% Medium
2330
Valid Palindrome IV
75.9% Medium
46
Permutations 75.8% Medium
1026
Maximum Difference Between Node and Ancestor 75.8% Medium
921
Minimum Add to Make Parentheses Valid 75.7% Medium
1398
Customers Who Bought Products A and B but Not C
75.6% Medium
1314
Matrix Block Sum 75.4% Medium
78
Subsets 75.0% Medium
419
Battleships in a Board 74.9% Medium
2340
Minimum Adjacent Swaps to Make a Valid Array
74.9% Medium
1100
Find K-Length Substrings With No Repeated Characters
74.7% Medium
1325
Delete Leaves With a Given Value 74.7% Medium
1910
Remove All Occurrences of a Substring 74.7% Medium
1613
Find the Missing IDs
74.6% Medium
2375
Construct Smallest Number From DI String 74.6% Medium
1277
Count Square Submatrices with All Ones 74.5% Medium
701
Insert into a Binary Search Tree 74.3% Medium
1448
Count Good Nodes in Binary Tree 74.3% Medium
2323
Find Minimum Time to Finish All Jobs II
74.2% Medium
784
Letter Case Permutation 73.8% Medium
442
Find All Duplicates in an Array 73.5% Medium
1396
Design Underground System 73.5% Medium
406
Queue Reconstruction by Height 73.0% Medium
2268
Minimum Number of Keypresses
72.9% Medium
2238
Number of Times a Driver Was a Passenger
72.8% Medium
2294
Partition Array Such That Maximum Difference Is K 72.7% Medium
22
Generate Parentheses 72.6% Medium
814
Binary Tree Pruning 72.4% Medium
2390
Removing Stars From a String 72.4% Medium
979
Distribute Coins in Binary Tree 72.2% Medium
1112
Highest Grade For Each Student
72.0% Medium
695
Max Area of Island 71.8% Medium
1222
Queens That Can Attack the King 71.8% Medium
841
Keys and Rooms 71.6% Medium
1043
Partition Array for Maximum Sum 71.6% Medium
608
Tree Node 71.5% Medium
1706
Where Will the Ball Fall 71.5% Medium
537
Complex Number Multiplication 71.4% Medium
1850
Minimum Adjacent Swaps to Reach the Kth Smallest Number 71.4% Medium
986
Interval List Intersections 71.3% Medium
1852
Distinct Numbers in Each Subarray
71.3% Medium
2336
Smallest Number in Infinite Set 71.3% Medium
370
Range Addition
71.2% Medium
48
Rotate Image 71.1% Medium
889
Construct Binary Tree from Preorder and Postorder Traversal71.0% Medium
429
N-ary Tree Level Order Traversal 70.7% Medium
1884
Egg Drop With 2 Eggs and N Floors 70.7% Medium
2527
Find Xor-Beauty of Array 70.4% Medium
230
Kth Smallest Element in a BST 70.2% Medium
969
Pancake Sorting 70.2% Medium
451
Sort Characters By Frequency 70.1% Medium
173
Binary Search Tree Iterator 69.8% Medium
626
Exchange Seats 69.8% Medium
877
Stone Game 69.8% Medium
2422
Merge Operations to Turn Array Into a Palindrome
69.8% Medium
946
Validate Stack Sequences 69.4% Medium
1338
Reduce Array Size to The Half 69.4% Medium
1110
Delete Nodes And Return Forest 69.3% Medium
1740
Find Distance in a Binary Tree
69.3% Medium
1963
Minimum Number of Swaps to Make the String Balanced 69.2% Medium
791
Custom Sort String 69.1% Medium
931
Minimum Falling Path Sum 69.1% Medium
959
Regions Cut By Slashes 69.1% Medium
852
Peak Index in a Mountain Array 69.0% Medium
865
Smallest Subtree with all the Deepest Nodes 69.0% Medium
1525
Number of Good Ways to Split a String 68.9% Medium
582
Kill Process
68.8% Medium
39
Combination Sum 68.7% Medium
1020
Number of Enclaves 68.7% Medium
1244
Design A Leaderboard
68.6% Medium
1167
Minimum Cost to Connect Sticks
68.5% Medium
362
Design Hit Counter
68.4% Medium
1130
Minimum Cost Tree From Leaf Values 68.2% Medium
538
Convert BST to Greater Tree 67.8% Medium
216
Combination Sum III 67.7% Medium
260
Single Number III 67.7% Medium
609
Find Duplicate File in System 67.7% Medium
1011
Capacity To Ship Packages Within D Days 67.7% Medium
1457
Pseudo-Palindromic Paths in a Binary Tree 67.7% Medium
1905
Count Sub Islands 67.7% Medium
2279
Maximum Bags With Full Capacity of Rocks 67.7% Medium
2641
Cousins in Binary Tree II 67.7% Medium
2487
Remove Nodes From Linked List 67.6% Medium
59
Spiral Matrix II 67.5% Medium
311
Sparse Matrix Multiplication
67.4% Medium
1236
Web Crawler
67.4% Medium
1372
Longest ZigZag Path in a Binary Tree 67.4% Medium
289
Game of Life 67.2% Medium
77
Combinations 67.1% Medium
1721
Swapping Nodes in a Linked List 67.1% Medium
1395
Count Number of Teams 67.1% Medium
280
Wiggle Sort
67.0% Medium
1254
Number of Closed Islands 67.0% Medium
513
Find Bottom Left Tree Value 66.9% Medium
647
Palindromic Substrings 66.9% Medium
49
Group Anagrams 66.8% Medium
951
Flip Equivalent Binary Trees 66.8% Medium
1663
Smallest String With A Given Numeric Value 66.8% Medium
1466
Reorder Routes to Make All Paths Lead to the City Zero 66.7% Medium
669
Trim a Binary Search Tree 66.4% Medium
739
Daily Temperatures 66.3% Medium
215
Kth Largest Element in an Array 66.2% Medium
1087
Brace Expansion
66.2% Medium
1268
Search Suggestions System 66.2% Medium
1214
Two Sum BSTs
66.1% Medium
1164
Product Price at a Given Date 66.1% Medium
1161
Maximum Level Sum of a Binary Tree 66.0% Medium
1045
Customers Who Bought All Products 66.0% Medium
1190
Reverse Substrings Between Each Pair of Parentheses 65.9% Medium
1249
Minimum Remove to Make Valid Parentheses 65.9% Medium
973
K Closest Points to Origin 65.8% Medium
983
Minimum Cost For Tickets 65.8% Medium
529
Minesweeper 65.7% Medium
690
Employee Importance 65.6% Medium
1120
Maximum Average Subtree
65.6% Medium
1233
Remove Sub-Folders from the Filesystem 65.6% Medium
1414
Find the Minimum Number of Fibonacci Numbers Whose Sum Is K65.4% Medium
714
Best Time to Buy and Sell Stock with Transaction Fee 65.3% Medium
1029
Two City Scheduling 65.3% Medium
901
Online Stock Span 65.2% Medium
1980
Find Unique Binary String 65.2% Medium
238
Product of Array Except Self 65.1% Medium
413
Arithmetic Slices 65.1% Medium
508
Most Frequent Subtree Sum 65.0% Medium
131
Palindrome Partitioning 64.9% Medium
1772
Sort Features by Popularity
64.9% Medium
856
Score of Parentheses 64.7% Medium
515
Find Largest Value in Each Tree Row 64.6% Medium
426
Convert Binary Search Tree to Sorted Doubly Linked List
64.6% Medium
102
Binary Tree Level Order Traversal 64.5% Medium
526
Beautiful Arrangement 64.4% Medium
249
Group Shifted Strings
64.3% Medium
347
Top K Frequent Elements 64.1% Medium
122
Best Time to Buy and Sell Stock II 64.0% Medium
241
Different Ways to Add Parentheses 64.0% Medium
1558
Minimum Numbers of Function Calls to Make Target Array 64.0% Medium
1584
Min Cost to Connect All Points 64.0% Medium
547
Number of Provinces 63.8% Medium
1219
Path with Maximum Gold 63.7% Medium
1306
Jump Game III 63.6% Medium
2486
Append Characters to String to Make Subsequence 63.6% Medium
1578
Minimum Time to Make Rope Colorful 63.4% Medium
1344
Angle Between Hands of a Clock 63.3% Medium
503
Next Greater Element II 63.2% Medium
1004
Max Consecutive Ones III 63.2% Medium
1811
Find Interview Candidates
63.1% Medium
1734
Decode XORed Permutation 63.0% Medium
208
Implement Trie (Prefix Tree) 62.9% Medium
1492
The kth Factor of n 62.9% Medium
2244
Minimum Rounds to Complete All Tasks 62.9% Medium
62
Unique Paths 62.7% Medium
648
Replace Words 62.7% Medium
398
Random Pick Index 62.5% Medium
323
Number of Connected Components in an Undirected Graph
62.3% Medium
684
Redundant Connection 62.3% Medium
863
All Nodes Distance K in Binary Tree 62.3% Medium
2471
Minimum Number of Operations to Sort a Binary Tree by Level62.3% Medium
531
Lonely Pixel I
62.2% Medium
1319
Number of Operations to Make Network Connected 62.2% Medium
12
Integer to Roman 62.1% Medium
1166
Design File System
62.1% Medium
2021
Brightest Position on Street
62.1% Medium
64
Minimum Path Sum 62.0% Medium
655
Print Binary Tree 62.0% Medium
114
Flatten Binary Tree to Linked List 61.9% Medium
341
Flatten Nested List Iterator 61.9% Medium
378
Kth Smallest Element in a Sorted Matrix 61.8% Medium
199
Binary Tree Right Side View 61.7% Medium
235
Lowest Common Ancestor of a Binary Search Tree 61.7% Medium
516
Longest Palindromic Subsequence 61.7% Medium
2305
Fair Distribution of Cookies 61.7% Medium
105
Construct Binary Tree from Preorder and Inorder Traversal 61.6% Medium
926
Flip String to Monotone Increasing 61.5% Medium
1136
Parallel Courses
61.5% Medium
24
Swap Nodes in Pairs 61.4% Medium
1135
Connecting Cities With Minimum Cost
61.4% Medium
107
Binary Tree Level Order Traversal II 61.3% Medium
328
Odd Even Linked List 61.3% Medium
1291
Sequential Digits 61.3% Medium
636
Exclusive Time of Functions 61.2% Medium
2219
Maximum Sum Score of Array
61.2% Medium
2410
Maximum Matching of Players With Trainers 61.2% Medium
129
Sum Root to Leaf Numbers 61.1% Medium
256
Paint House
61.1% Medium
1248
Count Number of Nice Subarrays 61.1% Medium
244
Shortest Word Distance II
60.9% Medium
1151
Minimum Swaps to Group All 1's Together
60.9% Medium
694
Number of Distinct Islands
60.8% Medium
1023
Camelcase Matching 60.8% Medium
222
Count Complete Tree Nodes 60.7% Medium
518
Coin Change II 60.7% Medium
1109
Corporate Flight Bookings 60.7% Medium
1726
Tuple with Same Product 60.7% Medium
820
Short Encoding of Words 60.6% Medium
116
Populating Next Right Pointers in Each Node 60.5% Medium
178
Rank Scores 60.5% Medium
286
Walls and Gates
60.5% Medium
2024
Maximize the Confusion of an Exam 60.4% Medium
2104
Sum of Subarray Ranges 60.4% Medium
109
Convert Sorted List to Binary Search Tree 60.3% Medium
491
Non-decreasing Subsequences 60.2% Medium
1962
Remove Stones to Minimize the Total 60.2% Medium
106
Construct Binary Tree from Inorder and Postorder Traversal 60.1% Medium
167
Two Sum II - Input Array Is Sorted 60.0% Medium
462
Minimum Moves to Equal Array Elements II 60.0% Medium
1362
Closest Divisors 60.0% Medium
318
Maximum Product of Word Lengths 59.9% Medium
553
Optimal Division 59.9% Medium
583
Delete Operation for Two Strings 59.9% Medium
1019
Next Greater Node In Linked List 59.9% Medium
96
Unique Binary Search Trees 59.7% Medium
399
Evaluate Division 59.7% Medium
445
Add Two Numbers II 59.7% Medium
430
Flatten a Multilevel Doubly Linked List 59.7% Medium
1031
Maximum Sum of Two Non-Overlapping Subarrays 59.6% Medium
623
Add One Row to Tree 59.5% Medium
900
RLE Iterator 59.4% Medium
912
Sort an Array 59.4% Medium
1105
Filling Bookcase Shelves 59.4% Medium
1048
Longest String Chain 59.3% Medium
1062
Longest Repeating Substring
59.2% Medium
1035
Uncrossed Lines 59.2% Medium
1911
Maximum Alternating Subsequence Sum 59.2% Medium
287
Find the Duplicate Number 59.1% Medium
540
Single Element in a Sorted Array 59.1% Medium
652
Find Duplicate Subtrees 59.0% Medium
1846
Maximum Element After Decreasing and Rearranging 59.0% Medium
236
Lowest Common Ancestor of a Binary Tree 58.9% Medium
947
Most Stones Removed with Same Row or Column 58.9% Medium
75
Sort Colors 58.7% Medium
284
Peeking Iterator 58.7% Medium
137
Single Number II 58.6% Medium
851
Loud and Rich 58.5% Medium
1749
Maximum Absolute Sum of Any Subarray 58.5% Medium
498
Diagonal Traverse 58.3% Medium
1143
Longest Common Subsequence 58.3% Medium
1376
Time Needed to Inform All Employees 58.3% Medium
1552
Magnetic Force Between Two Balls 58.3% Medium
36
Valid Sudoku 58.2% Medium
769
Max Chunks To Make Sorted 58.2% Medium
1456
Maximum Number of Vowels in a Substring of Given Length 58.2% Medium
245
Shortest Word Distance III
58.1% Medium
1690
Stone Game VII 58.1% Medium
394
Decode String 58.0% Medium
2110
Number of Smooth Descent Periods of a Stock 58.0% Medium
384
Shuffle an Array 57.9% Medium
1081
Smallest Subsequence of Distinct Characters 57.9% Medium
2214
Minimum Health to Beat Game
57.9% Medium
1202
Smallest String With Swaps 57.7% Medium
348
Design Tic-Tac-Toe
57.6% Medium
1057
Campus Bikes
57.6% Medium
1695
Maximum Erasure Value 57.6% Medium
1504
Count Submatrices With All Ones 57.5% Medium
2295
Replace Elements in an Array 57.5% Medium
47
Permutations II 57.4% Medium
1405
Longest Happy String 57.4% Medium
2638
Count the Number of K-Free Subsets
57.4% Medium
89
Gray Code 57.3% Medium
1679
Max Number of K-Sum Pairs 57.3% Medium
454
4Sum II 57.2% Medium
692
Top K Frequent Words 57.2% Medium
725
Split Linked List in Parts 57.2% Medium
1016
Binary String With Substrings Representing 1 To N 57.2% Medium
113
Path Sum II 57.1% Medium
200
Number of Islands 57.1% Medium
103
Binary Tree Zigzag Level Order Traversal 57.0% Medium
449
Serialize and Deserialize BST 57.0% Medium
740
Delete and Earn 57.0% Medium
838
Push Dominoes 57.0% Medium
1288
Remove Covered Intervals 57.0% Medium
1670
Design Front Middle Back Queue 57.0% Medium
1680
Concatenation of Consecutive Binary Numbers 57.0% Medium
729
My Calendar I 56.8% Medium
802
Find Eventual Safe States 56.8% Medium
1094
Car Pooling 56.8% Medium
17
Letter Combinations of a Phone Number 56.7% Medium
2385
Amount of Time for Binary Tree to Be Infected 56.7% Medium
788
Rotated Digits 56.6% Medium
1258
Synonymous Sentences
56.6% Medium
1461
Check If a String Contains All Binary Codes of Size K 56.6% Medium
539
Minimum Time Difference 56.5% Medium
646
Maximum Length of Pair Chain 56.5% Medium
2109
Adding Spaces to a String 56.5% Medium
621
Task Scheduler 56.4% Medium
937
Reorder Data in Log Files 56.4% Medium
309
Best Time to Buy and Sell Stock with Cooldown 56.3% Medium
536
Construct Binary Tree from String
56.3% Medium
721
Accounts Merge 56.3% Medium
343
Integer Break 56.2% Medium
958
Check Completeness of a Binary Tree 56.2% Medium
1209
Remove All Adjacent Duplicates in String II 56.2% Medium
1533
Find the Index of the Large Integer
56.1% Medium
453
Minimum Moves to Equal Array Elements 56.0% Medium
90
Subsets II 55.9% Medium
490
The Maze
55.8% Medium
881
Boats to Save People 55.8% Medium
1631
Path With Minimum Effort 55.8% Medium
752
Open the Lock 55.7% Medium
1039
Minimum Score Triangulation of Polygon 55.7% Medium
2297
Jump Game VIII
55.7% Medium
1481
Least Number of Unique Integers after K Removals 55.5% Medium
148
Sort List 55.3% Medium
452
Minimum Number of Arrows to Burst Balloons 55.3% Medium
1041
Robot Bounded In Circle 55.3% Medium
1229
Meeting Scheduler
55.3% Medium
2606
Find the Substring With Maximum Cost 55.3% Medium
731
My Calendar II 55.0% Medium
1066
Campus Bikes II
55.0% Medium
1060
Missing Element in Sorted Array
54.8% Medium
1334
Find the City With the Smallest Number of Neighbors at a Threshold Distance 54.8%
Medium
781
Rabbits in Forest 54.7% Medium
1634
Add Two Polynomials Represented as Linked Lists
54.7% Medium
1509
Minimum Difference Between Largest and Smallest Value in Three Moves 54.6% Medium
120
Triangle 54.5% Medium
417
Pacific Atlantic Water Flow 54.5% Medium
934
Shortest Bridge 54.4% Medium
1609
Even Odd Tree 54.4% Medium
974
Subarray Sums Divisible by K 54.3% Medium
1730
Shortest Path to Get Food
54.1% Medium
11
Container With Most Water 54.0% Medium
833
Find And Replace in String 54.0% Medium
337
House Robber III 53.9% Medium
421
Maximum XOR of Two Numbers in an Array 53.9% Medium
1155
Number of Dice Rolls With Target Sum 53.9% Medium
1482
Minimum Number of Days to Make m Bouquets 53.9% Medium
159
Longest Substring with At Most Two Distinct Characters
53.8% Medium
1080
Insufficient Nodes in Root to Leaf Paths 53.6% Medium
650
2 Keys Keyboard 53.5% Medium
1428
Leftmost Column with at Least a One
53.5% Medium
40
Combination Sum II 53.4% Medium
1954
Minimum Garden Perimeter to Collect Enough Apples 53.4% Medium
1102
Path With Maximum Minimum Value
53.3% Medium
1292
Maximum Side Length of a Square with Sum Less than or Equal to Threshold 53.3%
Medium
133
Clone Graph 53.2% Medium
638
Shopping Offers 53.2% Medium
785
Is Graph Bipartite? 53.2% Medium
2342
Max Sum of a Pair With Equal Sum of Digits 53.1% Medium
994
Rotting Oranges 53.0% Medium
1429
First Unique Number
53.0% Medium
1764
Form Array by Concatenating Subarrays of Another Array 53.0% Medium
186
Reverse Words in a String II
52.9% Medium
304
Range Sum Query 2D - Immutable 52.9% Medium
767
Reorganize String 52.9% Medium
813
Largest Sum of Averages 52.9% Medium
939
Minimum Area Rectangle 52.9% Medium
298
Binary Tree Longest Consecutive Sequence
52.8% Medium
380
Insert Delete GetRandom O(1) 52.8% Medium
795
Number of Subarrays with Bounded Maximum 52.8% Medium
143
Reorder List 52.7% Medium
279
Perfect Squares 52.7% Medium
756
Pyramid Transition Matrix 52.7% Medium
790
Domino and Tromino Tiling 52.7% Medium
1010
Pairs of Songs With Total Durations Divisible by 60 52.7% Medium
95
Unique Binary Search Trees II 52.5% Medium
505
The Maze II
52.5% Medium
1328
Break a Palindrome 52.5% Medium
1404
Number of Steps to Reduce a Number in Binary Representation to One 52.5% Medium
1792
Maximum Average Pass Ratio 52.5% Medium
80
Remove Duplicates from Sorted Array II 52.4% Medium
155
Min Stack 52.4% Medium
433
Minimum Genetic Mutation 52.4% Medium
314
Binary Tree Vertical Order Traversal
52.3% Medium
443
String Compression 52.3% Medium
1007
Minimum Domino Rotations For Equal Row 52.3% Medium
38
Count and Say 52.2% Medium
300
Longest Increasing Subsequence 52.2% Medium
377
Combination Sum IV 52.2% Medium
477
Total Hamming Distance 52.2% Medium
1423
Maximum Points You Can Obtain from Cards 52.2% Medium
2502
Design Memory Allocator 52.2% Medium
688
Knight Probability in Chessboard 52.1% Medium
875
Koko Eating Bananas 52.1% Medium
981
Time Based Key-Value Store 52.1% Medium
1901
Find a Peak Element II 52.1% Medium
424
Longest Repeating Character Replacement 52.0% Medium
720
Longest Word in Dictionary 52.0% Medium
1138
Alphabet Board Path 52.0% Medium
2274
Maximum Consecutive Floors Without Special Floors 52.0% Medium
743
Network Delay Time 51.9% Medium
1162
As Far from Land as Possible 51.9% Medium
1297
Maximum Number of Occurrences of a Substring 51.8% Medium
792
Number of Matching Subsequences 51.6% Medium
138
Copy List with Random Pointer 51.5% Medium
622
Design Circular Queue 51.5% Medium
73
Set Matrix Zeroes 51.4% Medium
799
Champagne Tower 51.4% Medium
2134
Minimum Swaps to Group All 1's Together II 51.3% Medium
379
Design Phone Directory
51.2% Medium
486
Predict the Winner 51.2% Medium
718
Maximum Length of Repeated Subarray 51.2% Medium
2222
Number of Ways to Select Buildings 51.2% Medium
99
Recover Binary Search Tree 51.1% Medium
240
Search a 2D Matrix II 51.1% Medium
436
Find Right Interval 50.9% Medium
371
Sum of Two Integers 50.7% Medium
2316
Count Unreachable Pairs of Nodes in an Undirected Graph 50.7% Medium
253
Meeting Rooms II
50.6% Medium
611
Valid Triangle Number 50.6% Medium
935
Knight Dialer 50.6% Medium
1042
Flower Planting With No Adjacent 50.6% Medium
2064
Minimized Maximum of Products Distributed to Any Store 50.6% Medium
990
Satisfiability of Equality Equations 50.5% Medium
450
Delete Node in a BST 50.4% Medium
1024
Video Stitching 50.4% Medium
117
Populating Next Right Pointers in Each Node II 50.3% Medium
435
Non-overlapping Intervals 50.3% Medium
853
Car Fleet 50.3% Medium
53
Maximum Subarray 50.2% Medium
438
Find All Anagrams in a String 50.2% Medium
1352
Product of the Last K Numbers 50.1% Medium
1419
Minimum Number of Frogs Croaking 50.1% Medium
184
Department Highest Salary 50.0% Medium
886
Possible Bipartition 50.0% Medium
2075
Decode the Slanted Ciphertext 50.0% Medium
487
Max Consecutive Ones II
49.7% Medium
823
Binary Trees With Factors 49.7% Medium
1950
Maximum of Minimum Values in All Subarrays
49.6% Medium
198
House Robber 49.5% Medium
299
Bulls and Cows 49.5% Medium
2070
Most Beautiful Item for Each Query 49.5% Medium
2018
Check if Word Can Be Placed In Crossword 49.4% Medium
325
Maximum Size Subarray Sum Equals k
49.3% Medium
1673
Find the Most Competitive Subsequence 49.3% Medium
1968
Array With Elements Not Equal to Average of Neighbors 49.3% Medium
737
Sentence Similarity II
49.1% Medium
1034
Coloring A Border 49.1% Medium
2100
Find Good Days to Rob the Bank 49.0% Medium
2380
Time Needed to Rearrange a Binary String 49.0% Medium
142
Linked List Cycle II 48.9% Medium
153
Find Minimum in Rotated Sorted Array 48.9% Medium
2139
Minimum Moves to Reach Target Score 48.9% Medium
285
Inorder Successor in BST
48.8% Medium
962
Maximum Width Ramp 48.8% Medium
1926
Nearest Exit from Entrance in Maze 48.8% Medium
128
Longest Consecutive Sequence 48.5% Medium
210
Course Schedule II 48.5% Medium
915
Partition Array into Disjoint Intervals 48.5% Medium
1129
Shortest Path with Alternating Colors 48.5% Medium
2096
Step-By-Step Directions From a Binary Tree Node to Another 48.5% Medium
1070
Product Sales Analysis III 48.4% Medium
1438
Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit 48.4%
Medium
1914
Cyclically Rotating a Grid 48.4% Medium
2115
Find All Possible Recipes from Given Supplies 48.4% Medium
255
Verify Preorder Sequence in Binary Search Tree
48.3% Medium
376
Wiggle Subsequence 48.3% Medium
1642
Furthest Building You Can Reach 48.3% Medium
2131
Longest Palindrome by Concatenating Two Letter Words 48.3% Medium
1559
Detect Cycles in 2D Grid 48.1% Medium
2261
K Divisible Elements Subarrays 48.1% Medium
340
Longest Substring with At Most K Distinct Characters
48.0% Medium
437
Path Sum III 47.9% Medium
670
Maximum Swap 47.9% Medium
74
Search a 2D Matrix 47.8% Medium
1339
Maximum Product of Splitted Binary Tree 47.8% Medium
2059
Minimum Operations to Convert Number 47.8% Medium
2337
Move Pieces to Obtain a String 47.8% Medium
849
Maximize Distance to Closest Person 47.6% Medium
93
Restore IP Addresses 47.5% Medium
738
Monotone Increasing Digits 47.3% Medium
1149
Article Views II
47.2% Medium
187
Repeated DNA Sequences 47.1% Medium
261
Graph Valid Tree
47.1% Medium
2012
Sum of Beauty in the Array 47.0% Medium
2266
Count Number of Texts 47.0% Medium
2216
Minimum Deletions to Make Array Beautiful 46.9% Medium
2583
Kth Largest Sum in a Binary Tree 46.9% Medium
474
Ones and Zeroes 46.8% Medium
525
Contiguous Array 46.8% Medium
658
Find K Closest Elements 46.8% Medium
277
Find the Celebrity
46.7% Medium
388
Longest Absolute File Path 46.7% Medium
180
Consecutive Numbers 46.5% Medium
755
Pour Water
46.5% Medium
681
Next Closest Time
46.4% Medium
416
Partition Equal Subset Sum 46.3% Medium
56
Merge Intervals 46.2% Medium
809
Expressive Words 46.2% Medium
134
Gas Station 46.1% Medium
528
Random Pick with Weight 46.1% Medium
82
Remove Duplicates from Sorted List II 46.0% Medium
162
Find Peak Element 46.0% Medium
390
Elimination Game 46.0% Medium
1696
Jump Game VI 46.0% Medium
2406
Divide Intervals Into Minimum Number of Groups 46.0% Medium
150
Evaluate Reverse Polish Notation 45.9% Medium
742
Closest Leaf in a Binary Tree
45.9% Medium
1054
Distant Barcodes 45.9% Medium
1311
Get Watched Videos by Your Friends 45.9% Medium
713
Subarray Product Less Than K 45.8% Medium
2443
Sum of Number and Its Reverse 45.8% Medium
16
3Sum Closest 45.7% Medium
494
Target Sum 45.7% Medium
1834
Single-Threaded CPU 45.7% Medium
2270
Number of Ways to Split Array 45.7% Medium
139
Word Break 45.6% Medium
92
Reverse Linked List II 45.5% Medium
1915
Number of Wonderful Substrings 45.5% Medium
207
Course Schedule 45.4% Medium
1958
Check if Move is Legal 45.4% Medium
923
3Sum With Multiplicity 45.3% Medium
223
Rectangle Area 45.2% Medium
229
Majority Element II 45.2% Medium
54
Spiral Matrix 45.1% Medium
316
Remove Duplicate Letters 45.1% Medium
848
Shifting Letters 45.1% Medium
909
Snakes and Ladders 45.1% Medium
6
Zigzag Conversion 45.0% Medium
209
Minimum Size Subarray Sum 45.0% Medium
221
Maximal Square 45.0% Medium
1156
Swap For Longest Repeated Character Substring 45.0% Medium
542
01 Matrix 44.9% Medium
826
Most Profit Assigning Work 44.9% Medium
395
Longest Substring with At Least K Repeating Characters 44.8% Medium
1091
Shortest Path in Binary Matrix 44.7% Medium
2028
Find Missing Observations 44.7% Medium
2327
Number of People Aware of a Secret 44.7% Medium
2055
Plates Between Candles 44.6% Medium
545
Boundary of Binary Tree
44.5% Medium
735
Asteroid Collision 44.5% Medium
567
Permutation in String 44.3% Medium
576
Out of Boundary Paths 44.3% Medium
1567
Maximum Length of Subarray With Positive Product 44.1% Medium
1750
Minimum Length of String After Deleting Similar Ends 44.1% Medium
211
Design Add and Search Words Data Structure 44.0% Medium
1367
Linked List in Binary Tree 43.8% Medium
2228
Users With Two Purchases Within Seven Days
43.8% Medium
904
Fruit Into Baskets 43.7% Medium
560
Subarray Sum Equals K 43.6% Medium
640
Solve the Equation 43.4% Medium
775
Global and Local Inversions 43.2% Medium
1171
Remove Zero Sum Consecutive Nodes from Linked List 43.2% Medium
1152
Analyze User Website Visit Pattern
43.1% Medium
2256
Minimum Average Difference 43.1% Medium
271
Encode and Decode Strings
43.0% Medium
918
Maximum Sum Circular Subarray 43.0% Medium
673
Number of Longest Increasing Subsequence 42.9% Medium
333
Largest BST Subtree
42.8% Medium
1864
Minimum Number of Swaps to Make the Binary String Alternating 42.8% Medium
334
Increasing Triplet Subsequence 42.7% Medium
662
Maximum Width of Binary Tree 42.7% Medium
754
Reach a Number 42.7% Medium
201
Bitwise AND of Numbers Range 42.5% Medium
227
Basic Calculator II 42.4% Medium
1621
Number of Sets of K Non-Overlapping Line Segments 42.4% Medium
172
Factorial Trailing Zeroes 42.3% Medium
322
Coin Change 42.1% Medium
634
Find the Derangement of An Array
42.0% Medium
34
Find First and Last Position of Element in Sorted Array 41.9% Medium
368
Largest Divisible Subset 41.6% Medium
2411
Smallest Subarrays With Maximum Bitwise OR 41.6% Medium
663
Equal Tree Partition
41.4% Medium
779
K-th Symbol in Grammar 41.4% Medium
2394
Employees With Deductions
41.4% Medium
19
Remove Nth Node From End of List 41.2% Medium
396
Rotate Function 41.2% Medium
532
K-diff Pairs in an Array 41.2% Medium
213
House Robber II 41.1% Medium
2036
Maximum Alternating Subarray Sum
41.0% Medium
1386
Cinema Seat Allocation 40.9% Medium
1465
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts 40.9% Medium
146
LRU Cache 40.7% Medium
307
Range Sum Query - Mutable 40.7% Medium
71
Simplify Path 40.6% Medium
1942
The Number of the Smallest Unoccupied Chair 40.6% Medium
2007
Find Original Array From Doubled Array 40.6% Medium
687
Longest Univalue Path 40.5% Medium
2
Add Two Numbers 40.4% Medium
79
Word Search 40.3% Medium
473
Matchsticks to Square 40.2% Medium
845
Longest Mountain in Array 40.2% Medium
1922
Count Good Numbers 40.1% Medium
45
Jump Game II 39.9% Medium
698
Partition to K Equal Sum Subsets 39.9% Medium
1197
Minimum Knight Moves
39.7% Medium
1882
Process Tasks Using Servers 39.5% Medium
1953
Maximum Number of Weeks for Which You Can Work 39.5% Medium
2501
Longest Square Streak in an Array 39.5% Medium
63
Unique Paths II 39.4% Medium
189
Rotate Array 39.4% Medium
1838
Frequency of the Most Frequent Element 39.4% Medium
43
Multiply Strings 39.2% Medium
353
Design Snake Game
39.2% Medium
2187
Minimum Time to Complete Trips 39.2% Medium
57
Insert Interval 39.1% Medium
874
Walking Robot Simulation 39.1% Medium
954
Array of Doubled Pairs 39.1% Medium
33
Search in Rotated Sorted Array 39.0% Medium
957
Prison Cells After N Days 39.0% Medium
1497
Check If Array Pairs Are Divisible by k 39.0% Medium
2292
Products With Three or More Orders in Two Consecutive Years
39.0% Medium
55
Jump Game 38.9% Medium
310
Minimum Height Trees 38.5% Medium
274
H-Index 38.4% Medium
842
Split Array into Fibonacci Sequence 38.4% Medium
2434
Using a Robot to Print the Lexicographically Smallest String 38.4% Medium
2497
Maximum Star Sum of a Graph 38.4% Medium
373
Find K Pairs with Smallest Sums 38.3% Medium
1705
Maximum Number of Eaten Apples 38.0% Medium
1856
Maximum Subarray Min-Product 37.9% Medium
176
Second Highest Salary 37.8% Medium
177
Nth Highest Salary 37.7% Medium
31
Next Permutation 37.6% Medium
1454
Active Users
37.6% Medium
1498
Number of Subsequences That Satisfy the Given Sum Condition37.5% Medium
97
Interleaving String 37.4% Medium
355
Design Twitter 37.3% Medium
898
Bitwise ORs of Subarrays 37.3% Medium
1574
Shortest Subarray to be Removed to Make Array Sorted 37.3% Medium
1146
Snapshot Array 37.1% Medium
787
Cheapest Flights Within K Stops 37.0% Medium
2311
Longest Binary Subsequence Less Than or Equal to K 37.0% Medium
130
Surrounded Regions 36.9% Medium
2145
Count the Hidden Sequences 36.9% Medium
777
Swap Adjacent in LR String 36.8% Medium
475
Heaters 36.5% Medium
581
Shortest Unsorted Continuous Subarray 36.4% Medium
372
Super Pow 36.2% Medium
1487
Making File Names Unique 36.2% Medium
61
Rotate List 36.1% Medium
1937
Maximum Number of Points with Cost 36.0% Medium
18
4Sum 35.9% Medium
165
Compare Version Numbers 35.8% Medium
81
Search in Rotated Sorted Array II 35.7% Medium
907
Sum of Subarray Minimums 35.7% Medium
397
Integer Replacement 35.2% Medium
949
Largest Time for Given Digits 35.2% Medium
794
Valid Tic-Tac-Toe State 35.0% Medium
152
Maximum Product Subarray 34.9% Medium
179
Largest Number 34.6% Medium
2353
Design a Food Rating System 34.6% Medium
2461
Maximum Sum of Distinct Subarrays With Length K 34.4% Medium
633
Sum of Square Numbers 34.3% Medium
161
One Edit Distance
34.1% Medium
678
Valid Parenthesis String 34.1% Medium
2250
Count Number of Rectangles Containing Each Point 34.1% Medium
556
Next Greater Element III 34.0% Medium
3
Longest Substring Without Repeating Characters 33.8% Medium
324
Wiggle Sort II 33.4% Medium
2207
Maximize Number of Subsequences in a String 33.4% Medium
50
Pow(x, n) 33.1% Medium
204
Count Primes 33.1% Medium
151
Reverse Words in a String 32.9% Medium
91
Decode Ways 32.8% Medium
1712
Ways to Split Array Into Three Subarrays 32.7% Medium
15
3Sum 32.6% Medium
1353
Maximum Number of Events That Can Be Attended 32.5% Medium
5
Longest Palindromic Substring 32.4% Medium
456
132 Pattern 32.4% Medium
1981
Minimize the Difference Between Target and Chosen Elements 32.4% Medium
98
Validate Binary Search Tree 32.0% Medium
2575
Find the Divisibility Array of a String 31.3% Medium
1169
Invalid Transactions 31.2% Medium
306
Additive Number 31.1% Medium
2116
Check if a Parentheses String Can Be Valid 30.9% Medium
402
Remove K Digits 30.6% Medium
1648
Sell Diminishing-Valued Colored Balls 30.4% Medium
1654
Minimum Jumps to Reach Home 29.1% Medium
1201
Ugly Number III 28.9% Medium
523
Continuous Subarray Sum 28.5% Medium
880
Decoded String at Index 28.3% Medium
2288
Apply Discount to Prices 28.1% Medium
1590
Make Sum Divisible by P 27.9% Medium
707
Design Linked List 27.7% Medium
7
Reverse Integer 27.5% Medium
468
Validate IP Address 26.6% Medium
1488
Avoid Flood in The City 26.5% Medium
866
Prime Palindrome 25.8% Medium
192
Word Frequency 25.5% Medium
2333
Minimum Sum of Squared Difference 25.5% Medium
1871
Jump Game VII 25.0% Medium
2195
Append K Integers With Minimal Sum 25.0% Medium
166
Fraction to Recurring Decimal 24.3% Medium
665
Non-decreasing Array 24.3% Medium
1191
K-Concatenation Maximum Sum 23.8% Medium
2289
Steps to Make Array Non-decreasing 21.0% Medium
29
Divide Two Integers 17.1% Medium
8
String to Integer (atoi) 16.6% Medium
980
Unique Paths III 81.7% Hard
1479
Sales by Day of the Week
80.8% Hard
489
Robot Room Cleaner
76.6% Hard
1028
Recover a Tree From Preorder Traversal 73.3% Hard
1255
Maximum Score Words Formed by Letters 72.4% Hard
759
Employee Free Time
71.8% Hard
1074
Number of Submatrices That Sum to Target 69.5% Hard
1463
Cherry Pickup II 69.5% Hard
1312
Minimum Insertion Steps to Make a String Palindrome 69.0% Hard
1944
Number of Visible People in a Queue 68.9% Hard
2350
Shortest Impossible Sequence of Rolls 68.0% Hard
2534
Time Taken to Cross the Door
68.0% Hard
895
Maximum Frequency Stack 66.6% Hard
1788
Maximize the Beauty of the Garden
66.6% Hard
899
Orderly Queue 66.2% Hard
428
Serialize and Deserialize N-ary Tree
66.0% Hard
2102
Sequentially Ordinal Rank Tracker 65.7% Hard
51
N-Queens 64.4% Hard
2519
Count the Number of K-Big Indices
64.4% Hard
618
Students Report By Geography
64.1% Hard
773
Sliding Puzzle 64.0% Hard
1597
Build Binary Expression Tree From Infix Expression
62.8% Hard
458
Poor Pigs 62.6% Hard
1340
Jump Game V 62.3% Hard
2218
Maximum Value of K Coins From Piles 61.9% Hard
632
Smallest Range Covering Elements from K Lists 61.1% Hard
847
Shortest Path Visiting All Nodes 60.9% Hard
527
Word Abbreviation
60.6% Hard
1259
Handshakes That Don't Cross
60.4% Hard
1220
Count Vowels Permutation 60.2% Hard
296
Best Meeting Point
60.1% Hard
778
Swim in Rising Water 59.8% Hard
352
Data Stream as Disjoint Intervals 59.7% Hard
42
Trapping Rain Water 59.3% Hard
272
Closest Binary Search Tree Value II
58.4% Hard
1335
Minimum Difficulty of a Job Schedule 58.4% Hard
1092
Shortest Common Supersequence 58.0% Hard
37
Sudoku Solver 57.8% Hard
903
Valid Permutations for DI Sequence 57.6% Hard
1231
Divide Chocolate
57.5% Hard
1751
Maximum Number of Events That Can Be Attended II 57.1% Hard
312
Burst Balloons 57.0% Hard
1547
Minimum Cost to Cut a Stick 56.9% Hard
2065
Maximum Path Quality of a Graph 56.9% Hard
2262
Total Appeal of A String 56.5% Hard
615
Average Salary: Departments VS Company
56.4% Hard
1665
Minimum Initial Energy to Finish Tasks 56.4% Hard
1948
Delete Duplicate Folders in System 56.2% Hard
2246
Longest Path With Different Adjacent Characters 55.6% Hard
297
Serialize and Deserialize Binary Tree 55.5% Hard
25
Reverse Nodes in k-Group 54.8% Hard
1192
Critical Connections in a Network 54.7% Hard
992
Subarrays with K Different Integers 54.6% Hard
72
Edit Distance 54.5% Hard
1675
Minimize Deviation in Array 54.5% Hard
2173
Longest Winning Streak
54.2% Hard
1639
Number of Ways to Form a Target String Given a Dictionary 54.0% Hard
1896
Minimum Cost to Change the Final Value of Expression 53.9% Hard
410
Split Array Largest Sum 53.5% Hard
1235
Maximum Profit in Job Scheduling 53.4% Hard
1842
Next Palindrome Using Same Digits
53.1% Hard
265
Paint House II
53.0% Hard
768
Max Chunks To Make Sorted II 52.8% Hard
329
Longest Increasing Path in a Matrix 52.5% Hard
1489
Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree 52.4% Hard
2302
Count Subarrays With Score Less Than K 52.3% Hard
726
Number of Atoms 52.2% Hard
857
Minimum Cost to Hire K Workers 52.2% Hard
711
Number of Distinct Islands II
52.1% Hard
828
Count Unique Characters of All Substrings of a Given String51.6% Hard
1032
Stream of Characters 51.6% Hard
1972
First and Last Call On the Same Day
51.5% Hard
295
Find Median from Data Stream 51.4% Hard
1601
Maximum Number of Achievable Transfer Requests 51.4% Hard
1203
Sort Items by Groups Respecting Dependencies 51.1% Hard
2193
Minimum Number of Moves to Make Palindrome
51.1% Hard
749
Contain Virus 50.9% Hard
1955
Count Number of Special Subsequences 50.9% Hard
2322
Minimum Score After Removals on a Tree 50.8% Hard
920
Number of Music Playlists 50.7% Hard
185
Department Top Three Salaries 50.4% Hard
1216
Valid Palindrome III
50.4% Hard
23
Merge k Sorted Lists 49.9% Hard
472
Concatenated Words 49.9% Hard
1735
Count Ways to Make Array With Product 49.9% Hard
502
IPO 49.8% Hard
601
Human Traffic of Stadium 49.5% Hard
465
Optimal Account Balancing
49.2% Hard
772
Basic Calculator III
48.9% Hard
642
Design Search Autocomplete System
48.6% Hard
588
Design In-Memory File System
48.5% Hard
1383
Maximum Performance of a Team 48.4% Hard
407
Trapping Rain Water II 47.6% Hard
1425
Constrained Subsequence Sum 47.6% Hard
1326
Minimum Number of Taps to Open to Water a Garden 47.5% Hard
2163
Minimum Difference in Sums After Removal of Elements 47.5% Hard
499
The Maze III
47.4% Hard
301
Remove Invalid Parentheses 47.2% Hard
1125
Smallest Sufficient Team 47.0% Hard
1345
Jump Game IV 46.9% Hard
968
Binary Tree Cameras 46.6% Hard
239
Sliding Window Maximum 46.3% Hard
1799
Maximize Score After N Operations 46.3% Hard
123
Best Time to Buy and Sell Stock III 45.6% Hard
579
Find Cumulative Salary of an Employee
45.6% Hard
815
Bus Routes 45.6% Hard
2009
Minimum Number of Operations to Make Array Continuous 45.5% Hard
1998
GCD Sort of an Array 45.5% Hard
140
Word Break II 45.4% Hard
1067
Digit Count in Range
45.3% Hard
1293
Shortest Path in a Grid with Obstacles Elimination 45.3% Hard
716
Max Stack
45.2% Hard
987
Vertical Order Traversal of a Binary Tree 45.1% Hard
827
Making A Large Island 44.9% Hard
85
Maximal Rectangle 44.8% Hard
1392
Longest Happy Prefix 44.7% Hard
115
Distinct Subsequences 44.6% Hard
715
Range Module 44.6% Hard
730
Count Different Palindromic Subsequences 44.6% Hard
60
Permutation Sequence 44.4% Hard
943
Find the Shortest Superstring 44.4% Hard
363
Max Sum of Rectangle No Larger Than K 44.0% Hard
2355
Maximum Number of Books You Can Take
44.0% Hard
631
Design Excel Sum Formula
43.6% Hard
2307
Check for Contradictions in Equations
43.6% Hard
154
Find Minimum in Rotated Sorted Array II 43.5% Hard
164
Maximum Gap 43.4% Hard
818
Race Car 43.3% Hard
403
Frog Jump 43.1% Hard
460
LFU Cache 43.1% Hard
1703
Minimum Adjacent Swaps for K Consecutive Ones 42.8% Hard
84
Largest Rectangle in Histogram 42.6% Hard
315
Count of Smaller Numbers After Self 42.5% Hard
1723
Find Minimum Time to Finish All Jobs 42.5% Hard
224
Basic Calculator 42.4% Hard
1000
Minimum Cost to Merge Stones 42.3% Hard
218
The Skyline Problem 41.9% Hard
158
Read N Characters Given read4 II - Call Multiple Times
41.7% Hard
829
Consecutive Numbers Sum 41.6% Hard
1761
Minimum Degree of a Connected Trio in a Graph 41.6% Hard
902
Numbers At Most N Given Digit Set 41.5% Hard
332
Reconstruct Itinerary 41.3% Hard
843
Guess the Word 41.3% Hard
135
Candy 41.0% Hard
480
Sliding Window Median 41.0% Hard
2123
Minimum Operations to Remove Adjacent Ones in Matrix
41.0% Hard
76
Minimum Window Substring 40.9% Hard
2296
Design a Text Editor 40.9% Hard
330
Patching Array 40.3% Hard
517
Super Washing Machines 40.3% Hard
1563
Stone Game V 40.3% Hard
630
Course Schedule III 40.2% Hard
854
K-Similar Strings 40.1% Hard
871
Minimum Number of Refueling Stops 39.8% Hard
305
Number of Islands II
39.6% Hard
2474
Customers With Strictly Increasing Purchases
39.6% Hard
1373
Maximum Sum BST in Binary Tree 39.5% Hard
2412
Minimum Money Required Before Transactions 39.5% Hard
801
Minimum Swaps To Make Sequences Increasing 39.3% Hard
1537
Get the Maximum Score 39.3% Hard
124
Binary Tree Maximum Path Sum 39.2% Hard
188
Best Time to Buy and Sell Stock IV 39.1% Hard
87
Scramble String 39.0% Hard
2197
Replace Non-Coprime Numbers in Array 38.6% Hard
1782
Count Pairs Of Nodes 38.4% Hard
1520
Maximum Number of Non-Overlapping Substrings 38.2% Hard
2386
Find the K-Sum of an Array 38.1% Hard
354
Russian Doll Envelopes 37.9% Hard
2111
Minimum Operations to Make the Array K-Increasing 37.6% Hard
68
Text Justification 37.5% Hard
174
Dungeon Game 37.5% Hard
1649
Create Sorted Array through Instructions 37.5% Hard
2223
Sum of Scores of Built Strings 37.4% Hard
1610
Maximum Number of Visible Points 37.3% Hard
127
Word Ladder 37.2% Hard
262
Trips and Users 37.2% Hard
591
Tag Validator 37.2% Hard
2272
Substring With Largest Variance 36.9% Hard
41
First Missing Positive 36.8% Hard
719
Find K-th Smallest Pair Distance 36.7% Hard
891
Sum of Subsequence Widths 36.7% Hard
432
All O`one Data Structure 36.6% Hard
2376
Count Special Integers 36.5% Hard
212
Word Search II 36.4% Hard
4
Median of Two Sorted Arrays 36.3% Hard
1354
Construct Target Array With Multiple Sums 36.3% Hard
741
Cherry Pickup 36.2% Hard
327
Count of Range Sum 35.8% Hard
1377
Frog Position After T Seconds 35.7% Hard
1847
Closest Room 35.7% Hard
381
Insert Delete GetRandom O(1) - Duplicates allowed 35.5% Hard
1932
Merge BSTs to Create Single BST 35.5% Hard
1095
Find in Mountain Array 35.4% Hard
269
Alien Dictionary
35.3% Hard
878
Nth Magical Number 35.3% Hard
336
Palindrome Pairs 35.0% Hard
1553
Minimum Number of Days to Eat N Oranges 34.7% Hard
803
Bricks Falling When Hit 34.4% Hard
675
Cut Off Trees for Golf Event 34.1% Hard
685
Redundant Connection II 34.1% Hard
132
Palindrome Partitioning II 33.8% Hard
1483
Kth Ancestor of a Tree Node 33.8% Hard
710
Random Pick with Blacklist 33.5% Hard
1363
Largest Multiple of Three 33.2% Hard
2398
Maximum Number of Robots Within Budget 33.1% Hard
32
Longest Valid Parentheses 32.8% Hard
214
Shortest Palindrome 32.4% Hard
1889
Minimum Space Wasted From Packaging 31.3% Hard
30
Substring with Concatenation of All Words 31.2% Hard
493
Reverse Pairs 30.9% Hard
1044
Longest Duplicate Substring 30.6% Hard
639
Decode Ways II 30.4% Hard
273
Integer to English Words 30.0% Hard
2040
Kth Smallest Product of Two Sorted Arrays 28.7% Hard
2234
Maximum Total Beauty of the Gardens 28.6% Hard
10
Regular Expression Matching 28.0% Hard
1923
Longest Common Subpath 27.6% Hard
126
Word Ladder II 27.5% Hard
2281
Sum of Total Strength of Wizards 27.3% Hard
887
Super Egg Drop 27.1% Hard
44
Wildcard Matching 27.0% Hard
862
Shortest Subarray with Sum at Least K 26.0% Hard
149
Max Points on a Line 25.2% Hard
220
Contains Duplicate III 22.2% Hard
564
Find the Closest Palindrome 21.9% Hard
2035
Partition Array Into Two Arrays to Minimize Sum Difference 18.9% Hard
65
Valid Number 18.7% Hard
420
Strong Password Checker 13.8% Hard
Copyright © 2023 LeetCode
Help Center
Jobs
Bug Bounty
Online Interview
Students
Terms
Privacy Policy
United StatesUnited States