0% found this document useful (0 votes)
59 views26 pages

Facebook All Time

Facebook is a social media platform. Users can create profiles, share content and connect with friends on Facebook. The document provides basic information about the popular social networking site.

Uploaded by

Aniraj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views26 pages

Facebook All Time

Facebook is a social media platform. Users can create profiles, share content and connect with friends on Facebook. The document provides basic information about the popular social networking site.

Uploaded by

Aniraj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 26

Facebook

You have solved 443 / 686 problems.

Show problem tags


Select time period:
All time
# Title Acceptance Difficulty Frequency
1757
Recyclable and Low Fat Products 92.4% Easy
1920
Build Array from Permutation 90.0% Easy
1108
Defanging an IP Address 89.1% Easy
2235
Add Two Integers 88.3% Easy
1512
Number of Good Pairs 88.2% Easy
1480
Running Sum of 1d Array 87.3% Easy
1281
Subtract the Product and Sum of Digits of an Integer 86.6% Easy
1379
Find a Corresponding Node of a Binary Tree in a Clone of That Tree 86.6% Easy
938
Range Sum of BST 85.9% Easy
1528
Shuffle String 85.1% Easy
1773
Count Items Matching a Rule 84.5% Easy
1859
Sorting the Sentence 84.0% Easy
1662
Check If Two String Arrays are Equivalent 83.5% Easy
1832
Check if the Sentence Is Pangram 83.5% Easy
1588
Sum of All Odd Length Subarrays 83.4% Easy
1614
Maximum Nesting Depth of the Parentheses 82.1% Easy
557
Reverse Words in a String III 81.9% Easy
832
Flipping an Image 80.8% Easy
1213
Intersection of Three Sorted Arrays
79.9% Easy
2553
Separate the Digits in an Array 79.6% Easy
617
Merge Two Binary Trees 78.7% Easy
897
Increasing Order Search Tree 78.4% Easy
1661
Average Time of Process per Machine 77.5% Easy
1789
Primary Department for Each Employee 77.5% Easy
346
Moving Average from Data Stream
77.1% Easy
344
Reverse String 76.8% Easy
1748
Sum of Unique Elements 76.3% Easy
2089
Find Target Indices After Sorting Array 76.2% Easy
876
Middle of the Linked List 75.8% Easy
905
Sort Array By Parity 75.6% Easy
1351
Count Negative Numbers in a Sorted Matrix 75.5% Easy
461
Hamming Distance 75.0% Easy
226
Invert Binary Tree 74.8% 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
1207
Unique Number of Occurrences 73.5% Easy
1299
Replace Elements with Greatest Element on Right Side 73.2% Easy
1460
Make Two Arrays Equal by Reversing Subarrays 72.2% 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
349
Intersection of Two Arrays 71.0% Easy
118
Pascal's Triangle 70.9% Easy
136
Single Number 70.8% Easy
610
Triangle Judgement 70.7% Easy
1211
Queries Quality and Percentage 70.3% Easy
412
Fizz Buzz 70.1% 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
1636
Sort Array by Increasing Frequency 69.6% Easy
1047
Remove All Adjacent Duplicates In String 69.5% Easy
181
Employees Earning More Than Their Managers 69.0% Easy
766
Toeplitz Matrix 68.6% Easy
1002
Find Common Characters 68.5% Easy
145
Binary Tree Postorder Traversal 68.1% Easy
1925
Count Square Sum Triples 68.0% Easy
824
Goat Latin 67.9% Easy
1160
Find Words That Can Be Formed by Characters 67.4% Easy
1991
Find the Middle Index in Array 67.4% Easy
191
Number of 1 Bits 66.8% Easy
884
Uncommon Words from Two Sentences 66.4% Easy
1241
Number of Comments per Post
66.2% Easy
266
Palindrome Permutation
66.1% Easy
1075
Project Employees I 65.8% Easy
1113
Reported Posts
65.2% Easy
243
Shortest Word Distance
65.0% Easy
706
Design HashMap 64.7% Easy
606
Construct String from Binary Tree 64.1% Easy
2303
Calculate Amount Paid in Taxes 64.1% Easy
169
Majority Element 63.9% Easy
242
Valid Anagram 63.1% Easy
566
Reshape the Matrix 62.9% Easy
268
Missing Number 62.7% Easy
21
Merge Two Sorted Lists 62.6% 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
1322
Ads Performance
60.3% 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
13
Roman to Integer 58.6% Easy
1539
Kth Missing Positive Number 58.6% Easy
2210
Count Hills and Valleys in an Array 58.5% Easy
896
Monotonic Array 58.4% Easy
100
Same Tree 58.3% Easy
383
Ransom Note 58.3% Easy
252
Meeting Rooms
57.3% Easy
530
Minimum Absolute Difference in BST 57.3% Easy
543
Diameter of Binary Tree 56.9% Easy
404
Sum of Left Leaves 56.8% Easy
485
Max Consecutive Ones 56.6% Easy
1640
Check Array Formation Through Concatenation 56.3% Easy
704
Binary Search 56.2% Easy
350
Intersection of Two Arrays II 56.0% Easy
703
Kth Largest Element in a Stream 55.5% Easy
661
Image Smoother 55.4% Easy
202
Happy Number 54.9% Easy
724
Find Pivot Index 54.9% 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
121
Best Time to Buy and Sell Stock 54.3% Easy
190
Reverse Bits 54.2% Easy
1275
Find Winner on a Tic Tac Toe Game 54.2% Easy
9
Palindrome Number 53.6% Easy
27
Remove Element 53.1% Easy
415
Add Strings 52.5% Easy
67
Add Binary 52.4% Easy
70
Climbing Stairs 52.2% Easy
26
Remove Duplicates from Sorted Array 51.7% Easy
83
Remove Duplicates from Sorted List 50.7% Easy
234
Palindrome Linked List 50.3% Easy
1076
Project Employees II
50.1% Easy
455
Assign Cookies 49.9% Easy
1
Two Sum 49.8% Easy
1826
Faulty Sensor
49.8% Easy
674
Longest Continuous Increasing Subsequence 49.3% Easy
110
Balanced Binary Tree 49.2% Easy
1141
User Activity for the Past 30 Days I 48.5% Easy
112
Path Sum 48.3% Easy
844
Backspace String Compare 48.1% Easy
246
Strobogrammatic Number
47.7% Easy
141
Linked List Cycle 47.5% Easy
228
Summary Ranges 47.3% Easy
989
Add to Array-Form of Integer 47.0% Easy
88
Merge Sorted Array 46.7% Easy
572
Subtree of Another Tree 46.4% Easy
203
Remove Linked List Elements 46.1% Easy
628
Maximum Product of Three Numbers 45.8% Easy
1790
Check if One String Swap Can Make Strings Equal 45.2% 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
643
Maximum Average Subarray I 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
219
Contains Duplicate II 42.6% Easy
597
Friend Requests I: Overall Acceptance Rate
42.4% 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
1142
User Activity for the Past 30 Days II
35.7% Easy
168
Excel Sheet Column Title 35.6% Easy
408
Valid Word Abbreviation
34.8% Easy
941
Valid Mountain Array 33.4% Easy
605
Can Place Flowers 32.8% Easy
163
Missing Ranges
32.2% Easy
859
Buddy Strings 29.2% Easy
1909
Remove One Element to Make the Array Strictly Increasing 26.1% Easy
1265
Print Immutable Linked List in Reverse
94.2% Medium
1570
Dot Product of Two Sparse Vectors
90.3% Medium
1445
Apples & Oranges
89.5% Medium
535
Encode and Decode TinyURL 86.0% Medium
1038
Binary Search Tree to Greater Sum Tree 85.5% Medium
2265
Count Nodes Equal to Average of Subtree 85.1% Medium
1329
Sort the Matrix Diagonally 83.3% 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
1008
Construct Binary Search Tree from Preorder Traversal 81.2% Medium
1382
Balance a Binary Search Tree 80.7% Medium
1485
Clone Binary Tree With Random Pointer
80.6% Medium
366
Find Leaves of Binary Tree
80.3% Medium
1305
All Elements in Two Binary Search Trees 79.8% Medium
763
Partition Labels 79.7% Medium
1676
Lowest Common Ancestor of a Binary Tree IV
79.5% Medium
1762
Buildings With an Ocean View
79.0% Medium
1641
Count Sorted Vowel Strings 77.4% Medium
1650
Lowest Common Ancestor of a Binary Tree III
77.4% Medium
1077
Project Employees III
77.1% Medium
723
Candy Crush
76.6% 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
1104
Path In Zigzag Labelled Binary Tree 75.1% Medium
1973
Count Nodes Equal to Sum of Descendants
75.1% Medium
78
Subsets 75.0% Medium
419
Battleships in a Board 74.9% Medium
1448
Count Good Nodes in Binary Tree 74.3% Medium
784
Letter Case Permutation 73.8% Medium
1522
Diameter of N-Ary Tree
73.6% Medium
442
Find All Duplicates in an Array 73.5% Medium
2023
Number of Pairs of Strings With Concatenation Equal to Target 73.5% Medium
406
Queue Reconstruction by Height 73.0% Medium
22
Generate Parentheses 72.6% Medium
814
Binary Tree Pruning 72.4% Medium
979
Distribute Coins in Binary Tree 72.2% Medium
695
Max Area of Island 71.8% Medium
1043
Partition Array for Maximum Sum 71.6% Medium
702
Search in a Sorted Array of Unknown Size
71.5% Medium
986
Interval List Intersections 71.3% Medium
48
Rotate Image 71.1% Medium
893
Groups of Special-Equivalent Strings 71.1% Medium
1123
Lowest Common Ancestor of Deepest Leaves 70.9% Medium
1586
Binary Search Tree Iterator II
70.8% Medium
1884
Egg Drop With 2 Eggs and N Floors 70.7% Medium
230
Kth Smallest Element in a BST 70.2% Medium
451
Sort Characters By Frequency 70.1% Medium
1357
Apply Discount Every n Orders 69.9% Medium
173
Binary Search Tree Iterator 69.8% Medium
946
Validate Stack Sequences 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
852
Peak Index in a Mountain Array 69.0% Medium
865
Smallest Subtree with all the Deepest Nodes 69.0% Medium
39
Combination Sum 68.7% Medium
1244
Design A Leaderboard
68.6% Medium
538
Convert BST to Greater Tree 67.8% Medium
609
Find Duplicate File in System 67.7% Medium
1011
Capacity To Ship Packages Within D Days 67.7% Medium
750
Number Of Corner Rectangles
67.6% Medium
59
Spiral Matrix II 67.5% Medium
311
Sparse Matrix Multiplication
67.4% Medium
1236
Web Crawler
67.4% Medium
998
Maximum Binary Tree II 67.3% 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
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
364
Nested List Weight Sum II
66.6% Medium
669
Trim a Binary Search Tree 66.4% Medium
1264
Page Recommendations
66.4% Medium
739
Daily Temperatures 66.3% Medium
215
Kth Largest Element in an Array 66.2% Medium
1268
Search Suggestions System 66.2% Medium
1161
Maximum Level Sum of a Binary Tree 66.0% 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
1233
Remove Sub-Folders from the Filesystem 65.6% 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
932
Beautiful Array 65.2% Medium
238
Product of Array Except Self 65.1% Medium
919
Complete Binary Tree Inserter 65.1% Medium
131
Palindrome Partitioning 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
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
1306
Jump Game III 63.6% 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
208
Implement Trie (Prefix Tree) 62.9% Medium
62
Unique Paths 62.7% Medium
648
Replace Words 62.7% Medium
1443
Minimum Time to Collect All Apples in a Tree 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
1319
Number of Operations to Make Network Connected 62.2% Medium
12
Integer to Roman 62.1% 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
386
Lexicographical Numbers 61.7% Medium
516
Longest Palindromic Subsequence 61.7% Medium
105
Construct Binary Tree from Preorder and Inorder Traversal 61.6% Medium
1136
Parallel Courses
61.5% Medium
1245
Tree Diameter
61.5% Medium
24
Swap Nodes in Pairs 61.4% Medium
328
Odd Even Linked List 61.3% Medium
636
Exclusive Time of Functions 61.2% Medium
1947
Maximum Compatibility Score Sum 61.2% Medium
129
Sum Root to Leaf Numbers 61.1% Medium
510
Inorder Successor in BST II
61.0% Medium
694
Number of Distinct Islands
60.8% Medium
518
Coin Change II 60.7% Medium
602
Friend Requests II: Who Has the Most Friends 60.6% Medium
116
Populating Next Right Pointers in Each Node 60.5% Medium
286
Walls and Gates
60.5% Medium
1760
Minimum Limit of Balls in a Bag 60.5% Medium
2024
Maximize the Confusion of an Exam 60.4% Medium
109
Convert Sorted List to Binary Search Tree 60.3% Medium
2452
Words Within Two Edits of Dictionary 60.3% Medium
167
Two Sum II - Input Array Is Sorted 60.0% Medium
1644
Lowest Common Ancestor of a Binary Tree II
60.0% Medium
583
Delete Operation for Two Strings 59.9% Medium
1055
Shortest Way to Form String
59.8% 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
623
Add One Row to Tree 59.5% Medium
1048
Longest String Chain 59.3% Medium
287
Find the Duplicate Number 59.1% Medium
540
Single Element in a Sorted Array 59.1% Medium
2596
Check Knight Tour Configuration 59.0% Medium
236
Lowest Common Ancestor of a Binary Tree 58.9% Medium
75
Sort Colors 58.7% Medium
284
Peeking Iterator 58.7% Medium
498
Diagonal Traverse 58.3% Medium
36
Valid Sudoku 58.2% Medium
394
Decode String 58.0% Medium
384
Shuffle an Array 57.9% Medium
1202
Smallest String With Swaps 57.7% Medium
1868
Product of Two Run-Length Encoded Arrays
57.7% Medium
348
Design Tic-Tac-Toe
57.6% Medium
454
4Sum II 57.2% Medium
692
Top K Frequent Words 57.2% Medium
641
Design Circular Deque 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
676
Implement Magic Dictionary 57.0% Medium
740
Delete and Earn 57.0% Medium
1288
Remove Covered Intervals 57.0% Medium
729
My Calendar I 56.8% Medium
1094
Car Pooling 56.8% Medium
17
Letter Combinations of a Phone Number 56.7% Medium
788
Rotated Digits 56.6% Medium
621
Task Scheduler 56.4% 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
1040
Moving Stones Until Consecutive II 56.1% Medium
90
Subsets II 55.9% Medium
490
The Maze
55.8% Medium
1949
Strong Friendship
55.8% Medium
752
Open the Lock 55.7% Medium
148
Sort List 55.3% Medium
452
Minimum Number of Arrows to Burst Balloons 55.3% Medium
1060
Missing Element in Sorted Array
54.8% Medium
963
Minimum Area Rectangle II 54.6% Medium
1810
Minimum Path Cost in a Hidden Grid
54.6% Medium
417
Pacific Atlantic Water Flow 54.5% Medium
934
Shortest Bridge 54.4% Medium
974
Subarray Sums Divisible by K 54.3% 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
554
Brick Wall 53.6% Medium
1428
Leftmost Column with at Least a One
53.5% Medium
40
Combination Sum II 53.4% Medium
1102
Path With Maximum Minimum Value
53.3% Medium
133
Clone Graph 53.2% Medium
785
Is Graph Bipartite? 53.2% Medium
994
Rotting Oranges 53.0% Medium
1429
First Unique Number
53.0% Medium
304
Range Sum Query 2D - Immutable 52.9% Medium
767
Reorganize String 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
143
Reorder List 52.7% Medium
279
Perfect Squares 52.7% Medium
95
Unique Binary Search Trees II 52.5% Medium
1328
Break a Palindrome 52.5% Medium
80
Remove Duplicates from Sorted Array II 52.4% Medium
155
Min Stack 52.4% Medium
2033
Minimum Operations to Make a Uni-Value Grid 52.4% Medium
314
Binary Tree Vertical Order Traversal
52.3% Medium
443
String Compression 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
1718
Construct the Lexicographically Largest Valid Sequence 52.2% Medium
86
Partition List 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
1218
Longest Arithmetic Subsequence of Given Difference 51.9% Medium
247
Strobogrammatic Number II
51.6% 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
718
Maximum Length of Repeated Subarray 51.2% Medium
240
Search a 2D Matrix II 51.1% Medium
1262
Greatest Sum Divisible by Three 50.8% Medium
371
Sum of Two Integers 50.7% Medium
253
Meeting Rooms II
50.6% Medium
259
3Sum Smaller
50.6% Medium
935
Knight Dialer 50.6% Medium
1424
Diagonal Traverse II 50.5% Medium
450
Delete Node in a BST 50.4% Medium
1053
Previous Permutation With One Swap 50.4% Medium
1865
Finding Pairs With a Certain Sum 50.4% Medium
117
Populating Next Right Pointers in Each Node II 50.3% Medium
435
Non-overlapping Intervals 50.3% Medium
53
Maximum Subarray 50.2% Medium
438
Find All Anagrams in a String 50.2% Medium
184
Department Highest Salary 50.0% Medium
1541
Minimum Insertions to Balance a Parentheses String 49.7% Medium
198
House Robber 49.5% Medium
299
Bulls and Cows 49.5% Medium
325
Maximum Size Subarray Sum Equals k
49.3% Medium
1034
Coloring A Border 49.1% Medium
142
Linked List Cycle II 48.9% Medium
153
Find Minimum in Rotated Sorted Array 48.9% Medium
2034
Stock Price Fluctuation 48.9% Medium
285
Inorder Successor in BST
48.8% Medium
616
Add Bold Tag in String
48.8% Medium
1242
Web Crawler Multithreaded
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
2096
Step-By-Step Directions From a Binary Tree Node to Another 48.5% Medium
319
Bulb Switcher 48.4% Medium
1891
Cutting Ribbons
48.4% Medium
764
Largest Plus Sign 48.3% Medium
1559
Detect Cycles in 2D Grid 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
93
Restore IP Addresses 47.5% Medium
261
Graph Valid Tree
47.1% Medium
525
Contiguous Array 46.8% Medium
658
Find K Closest Elements 46.8% Medium
2365
Task Scheduler II 46.8% Medium
277
Find the Celebrity
46.7% Medium
388
Longest Absolute File Path 46.7% Medium
1027
Longest Arithmetic Subsequence 46.7% Medium
180
Consecutive Numbers 46.5% Medium
681
Next Closest Time
46.4% Medium
416
Partition Equal Subset Sum 46.3% Medium
825
Friends Of Appropriate Ages 46.3% Medium
56
Merge Intervals 46.2% Medium
809
Expressive Words 46.2% Medium
1033
Moving Stones Until Consecutive 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
150
Evaluate Reverse Polish Notation 45.9% Medium
742
Closest Leaf in a Binary Tree
45.9% Medium
713
Subarray Product Less Than K 45.8% Medium
16
3Sum Closest 45.7% Medium
494
Target Sum 45.7% Medium
1834
Single-Threaded CPU 45.7% Medium
139
Word Break 45.6% Medium
92
Reverse Linked List II 45.5% Medium
207
Course Schedule 45.4% 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
393
UTF-8 Validation 45.1% Medium
848
Shifting Letters 45.1% Medium
6
Zigzag Conversion 45.0% Medium
209
Minimum Size Subarray Sum 45.0% Medium
221
Maximal Square 45.0% Medium
542
01 Matrix 44.9% Medium
395
Longest Substring with At Least K Repeating Characters 44.8% Medium
1091
Shortest Path in Binary Matrix 44.7% Medium
1985
Find the Kth Largest Integer in the Array 44.6% Medium
545
Boundary of Binary Tree
44.5% Medium
735
Asteroid Collision 44.5% Medium
567
Permutation in String 44.3% Medium
211
Design Add and Search Words Data Structure 44.0% Medium
1996
The Number of Weak Characters in the Game 43.9% Medium
560
Subarray Sum Equals K 43.6% Medium
2256
Minimum Average Difference 43.1% Medium
271
Encode and Decode Strings
43.0% Medium
673
Number of Longest Increasing Subsequence 42.9% Medium
333
Largest BST Subtree
42.8% Medium
334
Increasing Triplet Subsequence 42.7% Medium
662
Maximum Width of Binary Tree 42.7% Medium
2090
K Radius Subarray Averages 42.7% Medium
1554
Strings Differ by One Character
42.5% Medium
227
Basic Calculator II 42.4% Medium
322
Coin Change 42.1% Medium
34
Find First and Last Position of Element in Sorted Array 41.9% Medium
779
K-th Symbol in Grammar 41.4% Medium
19
Remove Nth Node From End of List 41.2% Medium
532
K-diff Pairs in an Array 41.2% Medium
213
House Robber II 41.1% Medium
578
Get Highest Answer Rate Question
40.9% Medium
146
LRU Cache 40.7% Medium
267
Palindrome Permutation II
40.7% Medium
71
Simplify Path 40.6% Medium
687
Longest Univalue Path 40.5% Medium
2
Add Two Numbers 40.4% Medium
79
Word Search 40.3% Medium
45
Jump Game II 39.9% Medium
698
Partition to K Equal Sum Subsets 39.9% Medium
1361
Validate Binary Tree Nodes 39.8% Medium
1197
Minimum Knight Moves
39.7% Medium
478
Generate Random Point in a Circle 39.6% Medium
63
Unique Paths II 39.4% Medium
189
Rotate Array 39.4% Medium
43
Multiply Strings 39.2% Medium
1778
Shortest Path in a Hidden Grid
39.2% Medium
57
Insert Interval 39.1% Medium
33
Search in Rotated Sorted Array 39.0% Medium
55
Jump Game 38.9% Medium
310
Minimum Height Trees 38.5% Medium
274
H-Index 38.4% Medium
373
Find K Pairs with Smallest Sums 38.3% Medium
31
Next Permutation 37.6% Medium
275
H-Index II 37.6% Medium
1498
Number of Subsequences That Satisfy the Given Sum Condition37.5% Medium
787
Cheapest Flights Within K Stops 37.0% Medium
581
Shortest Unsorted Continuous Subarray 36.4% Medium
61
Rotate List 36.1% Medium
18
4Sum 35.9% Medium
81
Search in Rotated Sorted Array II 35.7% Medium
794
Valid Tic-Tac-Toe State 35.0% Medium
152
Maximum Product Subarray 34.9% Medium
179
Largest Number 34.6% Medium
708
Insert into a Sorted Circular Linked List
34.5% Medium
1969
Minimum Non-Zero Product of the Array Elements 34.3% Medium
400
Nth Digit 34.2% Medium
686
Repeated String Match 34.2% Medium
161
One Edit Distance
34.1% Medium
678
Valid Parenthesis String 34.1% Medium
556
Next Greater Element III 34.0% Medium
3
Longest Substring Without Repeating Characters 33.8% Medium
50
Pow(x, n) 33.1% Medium
1132
Reported Posts II
33.1% Medium
151
Reverse Words in a String 32.9% Medium
91
Decode Ways 32.8% 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
98
Validate Binary Search Tree 32.0% Medium
402
Remove K Digits 30.6% Medium
1976
Number of Ways to Arrive at Destination 30.6% Medium
523
Continuous Subarray Sum 28.5% Medium
7
Reverse Integer 27.5% Medium
468
Validate IP Address 26.6% Medium
166
Fraction to Recurring Decimal 24.3% 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
489
Robot Room Cleaner
76.6% Hard
759
Employee Free Time
71.8% Hard
732
My Calendar III 71.6% Hard
1074
Number of Submatrices That Sum to Target 69.5% Hard
1944
Number of Visible People in a Queue 68.9% Hard
895
Maximum Frequency Stack 66.6% Hard
1168
Optimize Water Distribution in a Village
64.5% Hard
51
N-Queens 64.4% Hard
773
Sliding Puzzle 64.0% Hard
1340
Jump Game V 62.3% Hard
1225
Report Contiguous Dates
61.6% Hard
1439
Find the Kth Smallest Sum of a Matrix With Sorted Rows 61.4% Hard
847
Shortest Path Visiting All Nodes 60.9% Hard
1206
Design Skiplist 60.5% Hard
296
Best Meeting Point
60.1% Hard
778
Swim in Rising Water 59.8% Hard
42
Trapping Rain Water 59.3% Hard
834
Sum of Distances in Tree 59.2% Hard
37
Sudoku Solver 57.8% Hard
1231
Divide Chocolate
57.5% Hard
1547
Minimum Cost to Cut a Stick 56.9% Hard
2065
Maximum Path Quality of a Graph 56.9% Hard
765
Couples Holding Hands 56.6% Hard
297
Serialize and Deserialize Binary Tree 55.5% Hard
2014
Longest Subsequence Repeated k Times 55.4% Hard
2056
Number of Valid Move Combinations On Chessboard 55.0% Hard
25
Reverse Nodes in k-Group 54.8% Hard
1192
Critical Connections in a Network 54.7% Hard
72
Edit Distance 54.5% Hard
410
Split Array Largest Sum 53.5% Hard
2076
Process Restricted Friend Requests 53.1% Hard
265
Paint House II
53.0% Hard
329
Longest Increasing Path in a Matrix 52.5% Hard
587
Erect the Fence 52.2% Hard
1032
Stream of Characters 51.6% Hard
295
Find Median from Data Stream 51.4% Hard
185
Department Top Three Salaries 50.4% Hard
1216
Valid Palindrome III
50.4% Hard
548
Split Array with Equal Sum
50.1% Hard
2199
Finding the Topic of Each Post
50.0% Hard
23
Merge k Sorted Lists 49.9% Hard
1531
String Compression II 49.4% Hard
689
Maximum Sum of 3 Non-Overlapping Subarrays 48.9% Hard
772
Basic Calculator III
48.9% Hard
1263
Minimum Moves to Move a Box to Their Target Location 48.9% Hard
642
Design Search Autocomplete System
48.6% Hard
839
Similar String Groups 48.1% Hard
1326
Minimum Number of Taps to Open to Water a Garden 47.5% Hard
301
Remove Invalid Parentheses 47.2% Hard
968
Binary Tree Cameras 46.6% Hard
691
Stickers to Spell Word 46.4% Hard
239
Sliding Window Maximum 46.3% Hard
815
Bus Routes 45.6% Hard
140
Word Break II 45.4% 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
715
Range Module 44.6% Hard
730
Count Different Palindromic Subsequences 44.6% Hard
60
Permutation Sequence 44.4% Hard
154
Find Minimum in Rotated Sorted Array II 43.5% Hard
1269
Number of Ways to Stay in the Same Place After Some Steps 43.5% Hard
164
Maximum Gap 43.4% Hard
1892
Page Recommendations II
43.2% Hard
460
LFU Cache 43.1% Hard
84
Largest Rectangle in Histogram 42.6% Hard
317
Shortest Distance from All Buildings
42.6% Hard
224
Basic Calculator 42.4% Hard
218
The Skyline Problem 41.9% Hard
2081
Sum of k-Mirror Numbers 41.9% Hard
158
Read N Characters Given read4 II - Call Multiple Times
41.7% Hard
332
Reconstruct Itinerary 41.3% Hard
745
Prefix and Suffix Search 41.2% Hard
480
Sliding Window Median 41.0% Hard
76
Minimum Window Substring 40.9% Hard
2060
Check if an Original String Exists Given Two Encoded Strings 40.4% Hard
1373
Maximum Sum BST in Binary Tree 39.5% Hard
801
Minimum Swaps To Make Sequences Increasing 39.3% Hard
124
Binary Tree Maximum Path Sum 39.2% Hard
282
Expression Add Operators 39.2% Hard
188
Best Time to Buy and Sell Stock IV 39.1% Hard
1928
Minimum Cost to Reach Destination in Time 37.8% Hard
68
Text Justification 37.5% Hard
127
Word Ladder 37.2% Hard
41
First Missing Positive 36.8% Hard
1453
Maximum Number of Darts Inside of a Circular Dartboard 36.8% Hard
719
Find K-th Smallest Pair Distance 36.7% Hard
212
Word Search II 36.4% Hard
4
Median of Two Sorted Arrays 36.3% Hard
741
Cherry Pickup 36.2% Hard
381
Insert Delete GetRandom O(1) - Duplicates allowed 35.5% Hard
269
Alien Dictionary
35.3% Hard
336
Palindrome Pairs 35.0% Hard
2092
Find All People With Secret 34.2% Hard
132
Palindrome Partitioning II 33.8% Hard
1483
Kth Ancestor of a Tree Node 33.8% Hard
2071
Maximum Number of Tasks You Can Assign 33.8% Hard
2019
The Score of Students Solving Math Expression 33.5% Hard
32
Longest Valid Parentheses 32.8% Hard
2025
Maximum Number of Ways to Partition an Array 32.8% 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
10
Regular Expression Matching 28.0% Hard
126
Word Ladder II 27.5% Hard
44
Wildcard Matching 27.0% Hard
862
Shortest Subarray with Sum at Least K 26.0% Hard
65
Valid Number 18.7% Hard
Copyright © 2023 LeetCode
Help Center
Jobs
Bug Bounty
Online Interview
Students
Terms
Privacy Policy
United StatesUnited States

You might also like