LeetCode Problems for Microsoft

LeetCode Problems for Microsoft

Who has never heard of Microsoft? Microsoft is well-known among the tech industries. The attractive company culture and attractive salary have made jobs in Microsoft very lucrative among software engineers. We’ve put together a bunch of LeetCode Problems for Microsoft in this article.

IDTitleAcceptanceDifficultyFrequency
138Copy List with Random Pointer36.4%Medium3.698965
1Two Sum45.6%Easy3.595877
146LRU Cache33.2%Medium3.492790
54Spiral Matrix34.1%Medium3.389703
273Integer to English Words27.1%Hard3.368342
277Find the Celebrity41.8%Medium3.265255
348Design Tic-Tac-Toe54.3%Medium3.194643
2Add Two Numbers33.9%Medium3.169227
42Trapping Rain Water48.9%Hard3.066139
206Reverse Linked List62.5%Easy3.025916
5Longest Palindromic Substring29.5%Medium3.011324
8String to Integer (atoi)15.4%Medium2.976487
200Number of Islands46.8%Medium2.971500
4Median of Two Sorted Arrays29.6%Hard2.891608
186Reverse Words in a String II43.3%Medium2.880947
88Merge Sorted Array39.4%Easy2.862708
21Merge Two Sorted Lists53.5%Easy2.862457
17Letter Combinations of a Phone Number46.8%Medium2.857364
218The Skyline Problem34.6%Hard2.802773
165Compare Version Numbers27.4%Medium2.790947
25Reverse Nodes in k-Group42.1%Hard2.761379
240Search a 2D Matrix II43.2%Medium2.734589
253Meeting Rooms II45.7%Medium2.728471
10Regular Expression Matching26.8%Hard2.726699
53Maximum Subarray46.5%Easy2.711940
33Search in Rotated Sorted Array34.5%Medium2.685717
297Serialize and Deserialize Binary Tree47.5%Hard2.582629
236Lowest Common Ancestor of a Binary Tree45.7%Medium2.568849
445Add Two Numbers II54.5%Medium2.529048
116Populating Next Right Pointers in Each Node45.2%Medium2.524874
23Merge k Sorted Lists40.2%Hard2.500573
20Valid Parentheses39.0%Easy2.468716
402Remove K Digits28.4%Medium2.416657
557Reverse Words in a String III69.8%Easy2.336667
722Remove Comments34.6%Medium2.331903
75Sort Colors47.3%Medium2.327692
24Swap Nodes in Pairs50.4%Medium2.327380
151Reverse Words in a String21.9%Medium2.326478
535Encode and Decode TinyURL79.9%Medium2.303977
48Rotate Image56.7%Medium2.303733
98Validate Binary Search Tree27.8%Medium2.294355
168Excel Sheet Column Title31.1%Easy2.288310
105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium2.283021
419Battleships in a Board70.0%Medium2.272622
223Rectangle Area37.8%Medium2.259309
171Excel Sheet Column Number55.9%Easy2.252757
121Best Time to Buy and Sell Stock50.5%Easy2.244833
224Basic Calculator36.8%Hard2.203443
1239Maximum Length of a Concatenated String with Unique Characters47.8%Medium2.194070
44Wildcard Matching24.7%Hard2.191381
794Valid Tic-Tac-Toe State32.6%Medium2.177711
545Boundary of Binary Tree38.9%Medium2.167779
134Gas Station38.5%Medium2.142566
22Generate Parentheses62.7%Medium2.078567
73Set Matrix Zeroes43.1%Medium2.077591
428Serialize and Deserialize N-ary Tree59.4%Hard2.076668
443String Compression41.3%Easy2.051390
450Delete Node in a BST43.1%Medium2.048205
13Roman to Integer55.7%Easy2.014799
235Lowest Common Ancestor of a Binary Search Tree49.9%Easy2.010713
103Binary Tree Zigzag Level Order Traversal48.3%Medium2.010536
212Word Search II34.9%Hard1.937108
117Populating Next Right Pointers in Each Node II39.1%Medium1.916770
344Reverse String68.5%Easy1.893149
208Implement Trie (Prefix Tree)49.4%Medium1.870341
43Multiply Strings33.9%Medium1.839229
285Inorder Successor in BST40.4%Medium1.805312
49Group Anagrams56.9%Medium1.804619
71Simplify Path32.6%Medium1.795168
99Recover Binary Search Tree39.7%Hard1.777534
153Sum26.8%Medium1.768654
141Linked List Cycle41.1%Easy1.756360
232Implement Queue using Stacks49.6%Easy1.749421
12Integer to Roman55.1%Medium1.746102
37Sudoku Solver43.6%Hard1.741497
72Edit Distance44.8%Hard1.732348
295Find Median from Data Stream44.3%Hard1.718520
160Intersection of Two Linked Lists40.6%Easy1.717519
36Valid Sudoku48.7%Medium1.714321
3Longest Substring Without Repeating Characters30.4%Medium1.711950
143Reorder List37.1%Medium1.691798
76Minimum Window Substring34.6%Hard1.684498
46Permutations63.5%Medium1.672714
102Binary Tree Level Order Traversal54.6%Medium1.651417
155Min Stack44.5%Easy1.637552
56Merge Intervals39.3%Medium1.613742
51N-Queens46.6%Hard1.603635
173Binary Search Tree Iterator56.6%Medium1.597517
93Restore IP Addresses35.6%Medium1.591716
636Exclusive Time of Functions51.9%Medium1.583398
706Design HashMap61.3%Easy1.551374
238Product of Array Except Self60.1%Medium1.539762
149Max Points on a Line16.9%Hard1.530966
139Word Break40.1%Medium1.506707
31Next Permutation32.6%Medium1.495260
61Rotate List30.0%Medium1.484773
836Rectangle Overlap48.6%Easy1.445366
642Design Search Autocomplete System44.7%Hard1.435189
227Basic Calculator II36.9%Medium1.433657
127Word Ladder29.6%Medium1.428494
322Coin Change35.5%Medium1.426898
564Find the Closest Palindrome19.7%Hard1.425008
59Spiral Matrix II53.9%Medium1.415799
74Search a 2D Matrix36.5%Medium1.396449
384Shuffle an Array52.8%Medium1.389267
229Majority Element II35.6%Medium1.387856
153Find Minimum in Rotated Sorted Array45.1%Medium1.373751
174Dungeon Game32.3%Hard1.366561
92Reverse Linked List II38.8%Medium1.349052
449Serialize and Deserialize BST52.0%Medium1.321339
179Largest Number28.8%Medium1.318142
128Longest Consecutive Sequence45.1%Hard1.288645
234Palindrome Linked List39.3%Easy1.285725
239Sliding Window Maximum43.0%Hard1.272394
346Moving Average from Data Stream70.9%Easy1.271681
204Count Primes31.5%Easy1.270350
468Validate IP Address24.1%Medium1.262738
135Candy31.6%Hard1.237541
287Find the Duplicate Number55.5%Medium1.233366
126Word Ladder II22.1%Hard1.224149
133Clone Graph34.8%Medium1.212271
67924 Game46.4%Hard1.199435
142Linked List Cycle II37.3%Medium1.179958
328Odd Even Linked List55.7%Medium1.168614
148Sort List42.3%Medium1.165788
225Implement Stack using Queues45.1%Easy1.160739
283Move Zeroes57.8%Easy1.158521
124Binary Tree Maximum Path Sum34.3%Hard1.134390
591Tag Validator34.3%Hard1.133098
41First Missing Positive32.0%Hard1.126206
268Missing Number51.7%Easy1.117112
94Binary Tree Inorder Traversal63.3%Medium1.104365
85Maximal Rectangle37.7%Hard1.075986
529Minesweeper59.1%Medium1.068759
252Meeting Rooms54.6%Easy1.068669
403Frog Jump39.7%Hard1.063872
215Kth Largest Element in an Array55.4%Medium1.062111
189Rotate Array34.7%Easy1.053107
490The Maze51.4%Medium1.047684
457Circular Array Loop29.4%Medium1.033674
380Insert Delete GetRandom O(1)47.5%Medium1.029143
84Largest Rectangle in Histogram35.2%Hard1.015285
19Remove Nth Node From End of List35.2%Medium0.993839
169Majority Element58.7%Easy0.961102
68Text Justification27.7%Hard0.946522
695Max Area of Island62.7%Medium0.934069
79Word Search35.6%Medium0.916090
237Delete Node in a Linked List63.8%Easy0.912544
91Decode Ways24.7%Medium0.891256
152Maximum Product Subarray31.7%Medium0.890020
32Longest Valid Parentheses28.4%Hard0.887976
11Container With Most Water50.8%Medium0.883863
289Game of Life54.5%Medium0.881891
1246Palindrome Removal46.0%Hard0.875792
69Sqrt(x)33.9%Easy0.872373
7Reverse Integer25.8%Easy0.857860
28Implement strStr()34.5%Easy0.855364
89Gray Code49.1%Medium0.855313
242Valid Anagram56.9%Easy0.853877
702Search in a Sorted Array of Unknown Size66.9%Medium0.845889
460LFU Cache34.2%Hard0.845274
38Count and Say44.6%Easy0.845162
772Basic Calculator III41.3%Hard0.843087
6514 Keys Keyboard52.5%Medium0.842564
340Longest Substring with At Most K Distinct Characters44.1%Hard0.840073
378Kth Smallest Element in a Sorted Matrix54.3%Medium0.828651
269Alien Dictionary33.3%Hard0.824714
9Palindrome Number48.4%Easy0.823569
622Design Circular Queue43.8%Medium0.823158
26Remove Duplicates from Sorted Array45.1%Easy0.819815
362Design Hit Counter63.7%Medium0.815205
140Word Break II32.6%Hard0.812284
123Best Time to Buy and Sell Stock III37.5%Hard0.810300
669Trim a Binary Search Tree63.0%Easy0.805008
351Android Unlock Patterns48.4%Medium0.785739
110Balanced Binary Tree43.5%Easy0.784732
510Inorder Successor in BST II58.0%Medium0.782274
470Implement Rand10() Using Rand7()46.3%Medium0.771790
78Subsets62.0%Medium0.756793
887Super Egg Drop27.1%Hard0.755031
161One Edit Distance32.3%Medium0.750126
62Unique Paths54.1%Medium0.748006
394Decode String50.0%Medium0.734510
191Number of 1 Bits49.8%Easy0.732400
442Find All Duplicates in an Array67.8%Medium0.722654
207Course Schedule43.1%Medium0.716023
39Combination Sum56.1%Medium0.715256
652Find Duplicate Subtrees50.2%Medium0.710592
560Subarray Sum Equals K43.9%Medium0.708204
125Valid Palindrome36.7%Easy0.703611
86Partition List41.5%Medium0.702254
688Knight Probability in Chessboard48.9%Medium0.679434
64Minimum Path Sum54.5%Medium0.673126
379Design Phone Directory46.8%Medium0.672944
81Search in Rotated Sorted Array II33.0%Medium0.669049
412Fizz Buzz62.3%Easy0.668391
417Pacific Atlantic Water Flow41.1%Medium0.666478
114Flatten Binary Tree to Linked List49.3%Medium0.649835
77Combinations54.7%Medium0.648429
150Evaluate Reverse Polish Notation36.3%Medium0.647643
29Divide Two Integers16.4%Medium0.641191
300Longest Increasing Subsequence42.6%Medium0.637664
716Max Stack42.6%Easy0.633033
387First Unique Character in a String53.4%Easy0.632243
647Palindromic Substrings60.6%Medium0.613474
863All Nodes Distance K in Binary Tree55.4%Medium0.608658
358Rearrange String k Distance Apart34.9%Hard0.608247
82Remove Duplicates from Sorted List II36.8%Medium0.607321
733Flood Fill55.3%Easy0.596087
228Summary Ranges39.5%Medium0.588855
759Employee Free Time66.3%Hard0.586124
407Trapping Rain Water II42.4%Hard0.580113
230Kth Smallest Element in a BST60.2%Medium0.570475
281Zigzag Iterator58.4%Medium0.566560
415Add Strings47.5%Easy0.566230
572Subtree of Another Tree44.1%Easy0.564931
118Pascal’s Triangle52.5%Easy0.557727
426Convert Binary Search Tree to Sorted Doubly Linked List59.1%Medium0.554701
655Print Binary Tree55.0%Medium0.552426
70Climbing Stairs47.8%Easy0.548496
1156Swap For Longest Repeated Character Substring49.0%Medium0.538996
286Walls and Gates54.5%Medium0.537280
518Coin Change 250.2%Medium0.535971
493Reverse Pairs25.2%Hard0.533474
543Diameter of Binary Tree48.4%Easy0.532714
83Remove Duplicates from Sorted List45.4%Easy0.532201
45Jump Game II30.6%Hard0.526529
199Binary Tree Right Side View54.1%Medium0.524466
304Range Sum Query 2D – Immutable38.6%Medium0.522664
267Palindrome Permutation II36.4%Medium0.519507
167Two Sum II – Input array is sorted54.1%Easy0.511764
767Reorganize String48.7%Medium0.504379
432All O`one Data Structure32.4%Hard0.495739
516Longest Palindromic Subsequence53.2%Medium0.491995
270Closest Binary Search Tree Value48.5%Easy0.483513
101Symmetric Tree46.8%Easy0.483504
917Reverse Only Letters58.0%Easy0.462892
556Next Greater Element III31.7%Medium0.461736
1044Longest Duplicate Substring31.9%Hard0.456651
122Best Time to Buy and Sell Stock II57.0%Easy0.449722
333Largest BST Subtree35.8%Medium0.445725
108Convert Sorted Array to Binary Search Tree57.9%Easy0.442727
935Knight Dialer45.2%Medium0.442644
214Shortest Palindrome29.8%Hard0.442453
55Jump Game34.6%Medium0.441562
314Binary Tree Vertical Order Traversal45.3%Medium0.438093
280Wiggle Sort63.8%Medium0.435842
692Top K Frequent Words51.8%Medium0.435073
698Partition to K Equal Sum Subsets45.0%Medium0.427258
266Palindrome Permutation61.9%Easy0.418822
162Find Peak Element43.3%Medium0.416079
30Substring with Concatenation of All Words25.4%Hard0.411947
50Pow(x;n)30.3%Medium0.409699
448Find All Numbers Disappeared in an Array55.9%Easy0.403856
112Path Sum41.2%Easy0.402122
316Remove Duplicate Letters35.8%Hard0.401852
413Arithmetic Slices57.9%Medium0.379413
438Find All Anagrams in a String43.3%Medium0.377748
729My Calendar I51.8%Medium0.374693
528Random Pick with Weight43.9%Medium0.372940
498Diagonal Traverse48.2%Medium0.369658
172Factorial Trailing Zeroes37.8%Easy0.369154
405Convert a Number to Hexadecimal43.9%Easy0.368867
958Check Completeness of a Binary Tree52.1%Medium0.368486
159Longest Substring with At Most Two Distinct Characters49.4%Medium0.365178
993Cousins in Binary Tree52.0%Easy0.364069
63Unique Paths II34.6%Medium0.356828
332Reconstruct Itinerary36.7%Medium0.349934
1185Day of the Week64.0%Easy0.348988
113Path Sum II46.7%Medium0.347438
166Fraction to Recurring Decimal21.6%Medium0.345158
397Integer Replacement32.9%Medium0.342522
805Split Array With Same Average26.4%Hard0.341630
14Longest Common Prefix35.4%Easy0.338204
1236Web Crawler64.3%Medium0.336472
226Invert Binary Tree65.0%Easy0.335801
431Encode N-ary Tree to Binary Tree70.8%Hard0.330854
611Valid Triangle Number48.4%Medium0.330241
727Minimum Window Subsequence41.8%Hard0.329023
1062Longest Repeating Substring57.2%Medium0.326091
430Flatten a Multilevel Doubly Linked List55.1%Medium0.323358
136Single Number65.5%Easy0.322124
567Permutation in String44.4%Medium0.319548
994Rotting Oranges49.2%Medium0.318697
65Valid Number15.3%Hard0.314768
1197Minimum Knight Moves36.1%Medium0.314266
106Construct Binary Tree from Inorder and Postorder Traversal47.2%Medium0.311973
109Convert Sorted List to Binary Search Tree47.7%Medium0.310154
383Ransom Note53.1%Easy0.307484
221Maximal Square37.7%Medium0.305773
147Insertion Sort List41.1%Medium0.304807
909Snakes and Ladders38.4%Medium0.300248
724Find Pivot Index44.0%Easy0.299122
40Combination Sum II48.2%Medium0.297498
828Count Unique Characters of All Substrings of a Given String45.2%Hard0.297251
95Unique Binary Search Trees II40.6%Medium0.295829
1375Bulb Switcher III62.6%Medium0.291738
347Top K Frequent Elements61.2%Medium0.288573
354Russian Doll Envelopes35.6%Hard0.288378
97Interleaving String31.5%Hard0.285870
1136Parallel Courses61.1%Hard0.285842
708Insert into a Sorted Circular Linked List31.6%Medium0.285040
681Next Closest Time45.0%Medium0.280215
129Sum Root to Leaf Numbers49.1%Medium0.278020
969Pancake Sorting67.5%Medium0.273430
540Single Element in a Sorted Array57.9%Medium0.270315
202Happy Number50.4%Easy0.268522
349Intersection of Two Arrays62.5%Easy0.268071
198House Robber42.0%Easy0.266157
694Number of Distinct Islands56.0%Medium0.262364
184Sum33.7%Medium0.261755
683K Empty Slots35.6%Hard0.257088
315Count of Smaller Numbers After Self41.5%Hard0.256760
216Combination Sum III56.6%Medium0.246985
6ZigZag Conversion36.3%Medium0.245837
329Longest Increasing Path in a Matrix43.4%Hard0.241523
308Range Sum Query 2D – Mutable35.6%Hard0.241162
120Triangle44.2%Medium0.238875
57Insert Interval33.5%Hard0.236979
416Partition Equal Subset Sum43.7%Medium0.234205
257Binary Tree Paths51.5%Easy0.233341
1188Design Bounded Blocking Queue70.5%Medium0.233007
243Shortest Word Distance61.0%Easy0.231227
509Fibonacci Number67.2%Easy0.228732
768Max Chunks To Make Sorted II48.7%Hard0.227678
104Maximum Depth of Binary Tree66.0%Easy0.224705
701Insert into a Binary Search Tree77.7%Medium0.223378
341Flatten Nested List Iterator52.9%Medium0.220921
231Power of Two43.7%Easy0.218828
317Shortest Distance from All Buildings41.4%Hard0.216545
523Continuous Subarray Sum24.6%Medium0.215686
158Read N Characters Given Read4 II – Call multiple times33.8%Hard0.214211
205Isomorphic Strings39.8%Easy0.211170
107Binary Tree Level Order Traversal II53.5%Easy0.208635
7171-bit and 2-bit Characters48.8%Easy0.207279
290Word Pattern37.0%Easy0.204966
463Island Perimeter65.7%Easy0.201020
568Maximum Vacation Days40.8%Hard0.199665
209Minimum Size Subarray Sum38.2%Medium0.191642
210Course Schedule II40.7%Medium0.191142
219Contains Duplicate II37.7%Easy0.186968
299Bulls and Cows42.4%Easy0.182662
187Repeated DNA Sequences38.9%Medium0.182188
284Peeking Iterator45.7%Medium0.180212
547Friend Circles58.6%Medium0.179703
437Path Sum III47.2%Medium0.178347
773Sliding Puzzle59.3%Hard0.176279
987Vertical Order Traversal of a Binary Tree36.6%Medium0.171174
843Guess the Word46.1%Hard0.170625
367Valid Perfect Square41.7%Easy0.169781
609Find Duplicate File in System59.5%Medium0.169718
784Letter Case Permutation64.6%Medium0.169099
325Maximum Size Subarray Sum Equals k46.8%Medium0.168820
680Valid Palindrome II36.6%Easy0.167954
489Robot Room Cleaner69.7%Hard0.167580
399Evaluate Division51.6%Medium0.162225
653Two Sum IV – Input is a BST55.5%Easy0.161694
662Maximum Width of Binary Tree41.0%Medium0.160061
222Count Complete Tree Nodes46.8%Medium0.159479
721Accounts Merge48.8%Medium0.158363
131Palindrome Partitioning47.5%Medium0.158292
271Encode and Decode Strings31.5%Medium0.155216
373Find K Pairs with Smallest Sums36.7%Medium0.153865
979Distribute Coins in Binary Tree68.9%Medium0.153486
632Smallest Range Covering Elements from K Lists52.4%Hard0.152839
833Find And Replace in String50.4%Medium0.150660
365Water and Jug Problem30.6%Medium0.145652
1381Design a Stack With Increment Operation74.7%Medium0.145314
939Minimum Area Rectangle51.8%Medium0.144133
163Sum Closest46.0%Medium0.142345
769Max Chunks To Make Sorted54.8%Medium0.140198
176Second Highest Salary31.6%Easy0.140003
279Perfect Squares47.4%Medium0.138150
282Expression Add Operators35.5%Hard0.133104
1143Longest Common Subsequence58.4%Medium0.132782
305Number of Islands II40.1%Hard0.130430
217Contains Duplicate56.0%Easy0.128381
707Design Linked List24.5%Medium0.127969
612Shortest Distance in a Plane59.5%Medium0.127155
621Task Scheduler50.1%Medium0.123879
704Binary Search52.1%Easy0.122653
844Backspace String Compare46.4%Easy0.122011
1114Print in Order65.7%Easy0.121360
323Number of Connected Components in an Undirected Graph56.0%Medium0.120084
525Contiguous Array42.8%Medium0.117505
739Daily Temperatures63.3%Medium0.116465
515Find Largest Value in Each Tree Row61.1%Medium0.113758
671Second Minimum Node In a Binary Tree42.7%Easy0.113435
532K-diff Pairs in an Array31.6%Easy0.111723
973K Closest Points to Origin63.8%Medium0.110875
1008Construct Binary Search Tree from Preorder Traversal78.4%Medium0.110049
213House Robber II36.5%Medium0.108507
852Peak Index in a Mountain Array71.6%Easy0.108213
311Sparse Matrix Multiplication61.9%Medium0.106483
1386Cinema Seat Allocation34.8%Medium0.106483
406Queue Reconstruction by Height66.9%Medium0.106076
34Find First and Last Position of Element in Sorted Array36.2%Medium0.101126
658Find K Closest Elements40.9%Medium0.099564
90Subsets II47.1%Medium0.098305
1038Binary Search Tree to Greater Sum Tree80.8%Medium0.098117
785Is Graph Bipartite?47.5%Medium0.096849
220Contains Duplicate III20.9%Medium0.095996
895Maximum Frequency Stack60.6%Hard0.094907
381Insert Delete GetRandom O(1) – Duplicates allowed34.1%Hard0.091063
1324Print Words Vertically57.9%Medium0.090559
414Third Maximum Number30.5%Easy0.089567
1116Print Zero Even Odd56.0%Medium0.089345
907Sum of Subarray Minimums32.3%Medium0.089345
819Most Common Word44.8%Easy0.088837
256Paint House52.1%Easy0.086509
27Remove Element48.2%Easy0.085230
703Kth Largest Element in a Stream49.7%Easy0.083857
905Sort Array By Parity74.1%Easy0.083285
278First Bad Version35.7%Easy0.082959
359Logger Rate Limiter70.8%Easy0.081678
643Maximum Average Subarray I41.5%Easy0.081052
96Unique Binary Search Trees52.9%Medium0.080256
60Permutation Sequence38.4%Hard0.079485
1104Path In Zigzag Labelled Binary Tree72.0%Medium0.077860
435Non-overlapping Intervals42.9%Medium0.075650
480Sliding Window Median37.2%Hard0.074352
1079Letter Tile Possibilities75.4%Medium0.073502
503Next Greater Element II56.5%Medium0.073393
144Binary Tree Preorder Traversal55.7%Medium0.072249
676Implement Magic Dictionary54.5%Medium0.069958
1027Longest Arithmetic Sequence53.4%Medium0.066939
1145Binary Tree Coloring Game51.2%Medium0.065921
1304Find N Unique Integers Sum up to Zero76.3%Easy0.062107
350Intersection of Two Arrays II51.4%Easy0.062029
472Concatenated Words43.7%Hard0.061201
796Rotate String49.6%Easy0.059778
47Permutations II46.4%Medium0.058979
630Course Schedule III33.5%Hard0.058581
111Minimum Depth of Binary Tree37.4%Easy0.058062
100Same Tree53.4%Easy0.057825
832Flipping an Image76.2%Easy0.057363
950Reveal Cards In Increasing Order74.6%Medium0.056592
541Reverse String II48.4%Easy0.056159
735Asteroid Collision41.0%Medium0.054791
1229Meeting Scheduler52.7%Medium0.053560
1092Shortest Common Supersequence 51.6%Hard0.053488
303Range Sum Query – Immutable44.7%Easy0.051942
981Time Based Key-Value Store53.1%Medium0.049406
67Add Binary45.2%Easy0.049093
459Repeated Substring Pattern42.2%Easy0.047527
845Longest Mountain in Array37.2%Medium0.047458
876Middle of the Linked List68.4%Easy0.046728
977Squares of a Sorted Array72.1%Easy0.046652
670Maximum Swap43.6%Medium0.046304
494Target Sum46.3%Medium0.043532
938Range Sum of BST81.3%Easy0.043035
1004Max Consecutive Ones III59.1%Medium0.041252
211Add and Search Word – Data structure design38.1%Medium0.041115
35Search Insert Position42.6%Easy0.041064
788Rotated Digits57.1%Easy0.039806
872Leaf-Similar Trees64.5%Easy0.038999
884Uncommon Words from Two Sentences63.3%Easy0.036301
934Shortest Bridge48.2%Medium0.036072
6502 Keys Keyboard49.2%Medium0.035910
929Unique Email Addresses67.4%Easy0.033748
485Max Consecutive Ones54.6%Easy0.032764
258Add Digits57.6%Easy0.032596
203Remove Linked List Elements38.6%Easy0.032376
1091Shortest Path in Binary Matrix38.2%Medium0.031648
867Transpose Matrix62.8%Easy0.031179
953Verifying an Alien Dictionary54.1%Easy0.031173
575Distribute Candies61.4%Easy0.030890
1192Critical Connections in a Network48.6%Hard0.030183
452Minimum Number of Arrows to Burst Balloons49.6%Medium0.029478
496Next Greater Element I63.8%Easy0.029462
338Counting Bits69.5%Medium0.024325
1344Angle Between Hands of a Clock61.4%Medium0.023682
1019Next Greater Node In Linked List57.4%Medium0.021599
1122Relative Sort Array67.7%Easy0.019685
674Longest Continuous Increasing Subsequence45.9%Easy0.019002
1155Number of Dice Rolls With Target Sum49.0%Medium0.018904
787Cheapest Flights Within K Stops39.3%Medium0.018824
743Network Delay Time45.0%Medium0.012743
1249Minimum Remove to Make Valid Parentheses62.5%Medium0.009195
1470Shuffle the Array88.9%Easy0.004527
513Find Bottom Left Tree Value61.5%Medium0
631Design Excel Sum Formula31.6%Hard0
654Maximum Binary Tree79.9%Medium0
672Bulb Switcher II50.9%Medium0
871Minimum Number of Refueling Stops31.4%Hard0
886Possible Bipartition44.2%Medium0
901Online Stock Span60.2%Medium0
972Equal Rational Numbers41.6%Hard0
1006Clumsy Factorial53.3%Medium0
1013Partition Array Into Three Parts With Equal Sum51.8%Easy0
1053Previous Permutation With One Swap48.5%Medium0
1198Find Smallest Common Element in All Rows74.9%Medium0
1093Statistics from a Large Sample48.2%Medium0
1273Delete Tree Nodes63.5%Medium0
1131Maximum of Absolute Value Expression53.0%Medium0
1206Design Skiplist57.3%Hard0
1285Find the Start and End Number of Continuous Ranges83.8%Medium0
1306Jump Game III60.4%Medium0
1318Minimum Flips to Make a OR b Equal to c62.8%Medium0
1339Maximum Product of Splitted Binary Tree37.2%Medium0
1371Find the Longest Substring Containing Vowels in Even Counts58.2%Medium0
1369Get the Second Most Recent Activity65.1%Hard0
1394Find Lucky Integer in an Array64.4%Easy0
1415The k-th Lexicographical String of All Happy Strings of Length n70.4%Medium0
1417Reformat The String55.0%Easy0
1448Count Good Nodes in Binary Tree70.4%Medium0
1458Max Dot Product of Two Subsequences41.7%Hard0
1469Find All The Lonely Nodes81.4%Easy0
1510Stone Game IV50.3%Hard0
1474Delete N Nodes After M Nodes of a Linked List74.2%Easy0
1523Count Odd Numbers in an Interval Range55.8%Easy0
1518Water Bottles63.1%Easy0
1539Kth Missing Positive Number52.3%Easy0
1528Shuffle String86.1%Easy0

You can also view LeetCode problems for Google, Apple & Amazon.

Leave a Reply