(/contest/) Challenge + GIVEAWAY!
🎁 (/discuss/general-
(/) Explore(/explore/) Problems(/problemset/all/) Interview🎁NewLeetCoding
Contest Discuss(/discuss/) Storediscussion/655704/)
Microsoft
Problems Discuss
Notice
We've improved our algorithm that calculates company tags and their frequencies to be more accurate and current.
This page updates weekly on Saturday.
You can filter the results by different time periods.
You have solved 0 / 342 problems.
Show problem tags Select time period: 6 months
# Title Acceptance Difficulty Frequency
1 Two Sum (/problems/two-sum) 48.0% Easy
2 Add Two Numbers (/problems/add-two-numbers) 37.5% Medium
3 Longest Substring Without Repeating Characters (/problems/longest- 32.6% Medium
substring-without-repeating-characters)
4 Median of Two Sorted Arrays (/problems/median-of-two-sorted-arrays) 33.3% Hard
5 Longest Palindromic Substring (/problems/longest-palindromic-substring) 31.6% Medium
6 Zigzag Conversion (/problems/zigzag-conversion) 40.5% Medium
7 Reverse Integer (/problems/reverse-integer) 26.3% Medium
8 String to Integer (atoi) (/problems/string-to-integer-atoi) 16.1% Medium
9 Palindrome Number (/problems/palindrome-number) 51.9% Easy
10 Regular Expression Matching (/problems/regular-expression-matching) 28.1% Hard
11 Container With Most Water (/problems/container-with-most-water) 53.2% Medium
12 Integer to Roman (/problems/integer-to-roman) 58.6% Medium
13 Roman to Integer (/problems/roman-to-integer) 57.7% Easy
14 Longest Common Prefix (/problems/longest-common-prefix) 38.4% Easy
15 3Sum (/problems/3sum) 30.2% Medium
16 3Sum Closest (/problems/3sum-closest) 46.9% Medium
17 Letter Combinations of a Phone Number (/problems/letter-combinations-of- 52.4% Medium
a-phone-number)
18 4Sum (/problems/4sum) 36.8% Medium
19 Remove Nth Node From End of List (/problems/remove-nth-node-from-end- 37.5% Medium
of-list)
20 Valid Parentheses (/problems/valid-parentheses) 40.5% Easy
# Title Acceptance Difficulty Frequency
21 Merge Two Sorted Lists (/problems/merge-two-sorted-lists) 58.8% Easy
22 Generate Parentheses (/problems/generate-parentheses) 68.8% Medium
23 Merge k Sorted Lists (/problems/merge-k-sorted-lists) 45.5% Hard
24 Swap Nodes in Pairs (/problems/swap-nodes-in-pairs) 56.5% Medium
25 Reverse Nodes in k-Group (/problems/reverse-nodes-in-k-group) 49.4% Hard
26 Remove Duplicates from Sorted Array (/problems/remove-duplicates-from- 47.9% Easy
sorted-array)
28 Implement strStr() (/problems/implement-strstr) 35.7% Easy
31 Next Permutation (/problems/next-permutation) 35.0% Medium
32 Longest Valid Parentheses (/problems/longest-valid-parentheses) 30.9% Hard
33 Search in Rotated Sorted Array (/problems/search-in-rotated-sorted-array) 37.2% Medium
34 Find First and Last Position of Element in Sorted Array (/problems/find-first- 39.2% Medium
and-last-position-of-element-in-sorted-array)
36 Valid Sudoku (/problems/valid-sudoku) 53.9% Medium
38 Count and Say (/problems/count-and-say) 47.8% Medium
39 Combination Sum (/problems/combination-sum) 63.2% Medium
41 First Missing Positive (/problems/first-missing-positive) 35.4% Hard
42 Trapping Rain Water (/problems/trapping-rain-water) 55.0% Hard
43 Multiply Strings (/problems/multiply-strings) 37.0% Medium
44 Wildcard Matching (/problems/wildcard-matching) 26.3% Hard
45 Jump Game II (/problems/jump-game-ii) 35.8% Medium
46 Permutations (/problems/permutations) 70.6% Medium
48 Rotate Image (/problems/rotate-image) 64.8% Medium
49 Group Anagrams (/problems/group-anagrams) 62.8% Medium
50 Pow(x, n) (/problems/powx-n) 31.8% Medium
51 N-Queens (/problems/n-queens) 55.3% Hard
53 Maximum Subarray (/problems/maximum-subarray) 49.2% Easy
54 Spiral Matrix (/problems/spiral-matrix) 39.9% Medium
55 Jump Game (/problems/jump-game) 37.1% Medium
56 Merge Intervals (/problems/merge-intervals) 43.9% Medium
57 Insert Interval (/problems/insert-interval) 36.9% Medium
61 Rotate List (/problems/rotate-list) 33.3% Medium
62 Unique Paths (/problems/unique-paths) 58.9% Medium
66 Plus One (/problems/plus-one) 42.3% Easy
68 Text Justification (/problems/text-justification) 33.6% Hard
# Title Acceptance Difficulty Frequency
69 Sqrt(x) (/problems/sqrtx) 36.1% Easy
70 Climbing Stairs (/problems/climbing-stairs) 50.3% Easy
72 Edit Distance (/problems/edit-distance) 49.7% Hard
73 Set Matrix Zeroes (/problems/set-matrix-zeroes) 47.2% Medium
74 Search a 2D Matrix (/problems/search-a-2d-matrix) 41.5% Medium
75 Sort Colors (/problems/sort-colors) 53.3% Medium
79 Word Search (/problems/word-search) 39.2% Medium
80 Remove Duplicates from Sorted Array II (/problems/remove-duplicates-from- 48.1% Medium
sorted-array-ii)
81 Search in Rotated Sorted Array II (/problems/search-in-rotated-sorted-array- 34.3% Medium
ii)
83 Remove Duplicates from Sorted List (/problems/remove-duplicates-from- 48.2% Easy
sorted-list)
84 Largest Rectangle in Histogram (/problems/largest-rectangle-in-histogram) 39.4% Hard
88 Merge Sorted Array (/problems/merge-sorted-array) 42.7% Easy
91 Decode Ways (/problems/decode-ways) 29.3% Medium
93 Restore IP Addresses (/problems/restore-ip-addresses) 40.5% Medium
94 Binary Tree Inorder Traversal (/problems/binary-tree-inorder-traversal) 69.4% Easy
95 Unique Binary Search Trees II (/problems/unique-binary-search-trees-ii) 48.0% Medium
98 Validate Binary Search Tree (/problems/validate-binary-search-tree) 29.9% Medium
99 Recover Binary Search Tree (/problems/recover-binary-search-tree) 45.3% Medium
100 Same Tree (/problems/same-tree) 55.0% Easy
101 Symmetric Tree (/problems/symmetric-tree) 50.6% Easy
102 Binary Tree Level Order Traversal (/problems/binary-tree-level-order- 59.7% Medium
traversal)
103 Binary Tree Zigzag Level Order Traversal (/problems/binary-tree-zigzag- 52.5% Medium
level-order-traversal)
105 Construct Binary Tree from Preorder and Inorder Traversal 56.1% Medium
(/problems/construct-binary-tree-from-preorder-and-inorder-traversal)
108 Convert Sorted Array to Binary Search Tree (/problems/convert-sorted-array- 64.7% Easy
to-binary-search-tree)
109 Convert Sorted List to Binary Search Tree (/problems/convert-sorted-list-to- 54.4% Medium
binary-search-tree)
110 Balanced Binary Tree (/problems/balanced-binary-tree) 46.1% Easy
113 Path Sum II (/problems/path-sum-ii) 52.8% Medium
114 Flatten Binary Tree to Linked List (/problems/flatten-binary-tree-to-linked- 56.3% Medium
list)
# Title Acceptance Difficulty Frequency
116 Populating Next Right Pointers in Each Node (/problems/populating-next- 54.9% Medium
right-pointers-in-each-node)
117 Populating Next Right Pointers in Each Node II (/problems/populating-next- 45.2% Medium
right-pointers-in-each-node-ii)
118 Pascal's Triangle (/problems/pascals-triangle) 61.6% Easy
120 Triangle (/problems/triangle) 49.3% Medium
121 Best Time to Buy and Sell Stock (/problems/best-time-to-buy-and-sell-stock) 53.2% Easy
122 Best Time to Buy and Sell Stock II (/problems/best-time-to-buy-and-sell- 61.1% Medium
stock-ii)
124 Binary Tree Maximum Path Sum (/problems/binary-tree-maximum-path-sum) 37.1% Hard
125 Valid Palindrome (/problems/valid-palindrome) 40.4% Easy
126 Word Ladder II (/problems/word-ladder-ii) 26.2% Hard
127 Word Ladder (/problems/word-ladder) 34.1% Hard
128 Longest Consecutive Sequence (/problems/longest-consecutive-sequence) 48.2% Medium
129 Sum Root to Leaf Numbers (/problems/sum-root-to-leaf-numbers) 55.4% Medium
130 Surrounded Regions (/problems/surrounded-regions) 33.0% Medium
133 Clone Graph (/problems/clone-graph) 44.4% Medium
134 Gas Station (/problems/gas-station) 43.4% Medium
136 Single Number (/problems/single-number) 68.2% Easy
138 Copy List with Random Pointer (/problems/copy-list-with-random-pointer) 45.4% Medium
139 Word Break (/problems/word-break) 43.7% Medium
140 Word Break II (/problems/word-break-ii) 40.2% Hard
141 Linked List Cycle (/problems/linked-list-cycle) 44.6% Easy
142 Linked List Cycle II (/problems/linked-list-cycle-ii) 42.3% Medium
146 LRU Cache (/problems/lru-cache) 38.9% Medium
149 Max Points on a Line (/problems/max-points-on-a-line) 19.6% Hard
151 Reverse Words in a String (/problems/reverse-words-in-a-string) 27.2% Medium
152 Maximum Product Subarray (/problems/maximum-product-subarray) 34.2% Medium
153 Find Minimum in Rotated Sorted Array (/problems/find-minimum-in-rotated- 47.5% Medium
sorted-array)
155 Min Stack (/problems/min-stack) 49.2% Easy
157 Read N Characters Given Read4 (/problems/read-n-characters-given-read4) 39.7% Easy
161 One Edit Distance (/problems/one-edit-distance) 33.8% Medium
162 Find Peak Element (/problems/find-peak-element) 45.3% Medium
164 Maximum Gap (/problems/maximum-gap) 40.8% Hard
# Title Acceptance Difficulty Frequency
165 Compare Version Numbers (/problems/compare-version-numbers) 32.2% Medium
167 Two Sum II - Input Array Is Sorted (/problems/two-sum-ii-input-array-is- 57.8% Easy
sorted)
168 Excel Sheet Column Title (/problems/excel-sheet-column-title) 33.2% Easy
169 Majority Element (/problems/majority-element) 61.8% Easy
171 Excel Sheet Column Number (/problems/excel-sheet-column-number) 58.7% Easy
173 Binary Search Tree Iterator (/problems/binary-search-tree-iterator) 64.1% Medium
179 Largest Number (/problems/largest-number) 32.2% Medium
186 Reverse Words in a String II (/problems/reverse-words-in-a-string-ii) 49.8% Medium
189 Rotate Array (/problems/rotate-array) 37.5% Medium
190 Reverse Bits (/problems/reverse-bits) 46.6% Easy
191 Number of 1 Bits (/problems/number-of-1-bits) 57.9% Easy
198 House Robber (/problems/house-robber) 45.8% Medium
200 Number of Islands (/problems/number-of-islands) 52.5% Medium
203 Remove Linked List Elements (/problems/remove-linked-list-elements) 42.4% Easy
204 Count Primes (/problems/count-primes) 32.9% Medium
206 Reverse Linked List (/problems/reverse-linked-list) 68.8% Easy
207 Course Schedule (/problems/course-schedule) 44.8% Medium
208 Implement Trie (Prefix Tree) (/problems/implement-trie-prefix-tree) 56.4% Medium
210 Course Schedule II (/problems/course-schedule-ii) 45.6% Medium
211 Design Add and Search Words Data Structure (/problems/design-add-and- 42.8% Medium
search-words-data-structure)
212 Word Search II (/problems/word-search-ii) 38.5% Hard
214 Shortest Palindrome (/problems/shortest-palindrome) 31.5% Hard
215 Kth Largest Element in an Array (/problems/kth-largest-element-in-an-array) 62.0% Medium
217 Contains Duplicate (/problems/contains-duplicate) 59.6% Easy
218 The Skyline Problem (/problems/the-skyline-problem) 38.1% Hard
221 Maximal Square (/problems/maximal-square) 42.5% Medium
222 Count Complete Tree Nodes (/problems/count-complete-tree-nodes) 53.9% Medium
224 Basic Calculator (/problems/basic-calculator) 39.9% Hard
227 Basic Calculator II (/problems/basic-calculator-ii) 40.8% Medium
232 Implement Queue using Stacks (/problems/implement-queue-using-stacks) 56.1% Easy
233 Number of Digit One (/problems/number-of-digit-one) 32.9% Hard
234 Palindrome Linked List (/problems/palindrome-linked-list) 45.2% Easy
# Title Acceptance Difficulty Frequency
235 Lowest Common Ancestor of a Binary Search Tree (/problems/lowest- 55.5% Easy
common-ancestor-of-a-binary-search-tree)
236 Lowest Common Ancestor of a Binary Tree (/problems/lowest-common- 53.5% Medium
ancestor-of-a-binary-tree)
237 Delete Node in a Linked List (/problems/delete-node-in-a-linked-list) 70.6% Easy
238 Product of Array Except Self (/problems/product-of-array-except-self) 63.2% Medium
239 Sliding Window Maximum (/problems/sliding-window-maximum) 45.9% Hard
240 Search a 2D Matrix II (/problems/search-a-2d-matrix-ii) 47.3% Medium
242 Valid Anagram (/problems/valid-anagram) 60.6% Easy
243 Shortest Word Distance (/problems/shortest-word-distance) 63.7% Easy
252 Meeting Rooms (/problems/meeting-rooms) 56.4% Easy
253 Meeting Rooms II (/problems/meeting-rooms-ii) 48.8% Medium
264 Ugly Number II (/problems/ugly-number-ii) 44.5% Medium
266 Palindrome Permutation (/problems/palindrome-permutation) 64.5% Easy
268 Missing Number (/problems/missing-number) 58.2% Easy
269 Alien Dictionary (/problems/alien-dictionary) 34.5% Hard
273 Integer to English Words (/problems/integer-to-english-words) 29.2% Hard
277 Find the Celebrity (/problems/find-the-celebrity) 45.8% Medium
278 First Bad Version (/problems/first-bad-version) 40.5% Easy
282 Expression Add Operators (/problems/expression-add-operators) 39.0% Hard
283 Move Zeroes (/problems/move-zeroes) 59.9% Easy
285 Inorder Successor in BST (/problems/inorder-successor-in-bst) 45.8% Medium
286 Walls and Gates (/problems/walls-and-gates) 58.3% Medium
287 Find the Duplicate Number (/problems/find-the-duplicate-number) 58.3% Medium
289 Game of Life (/problems/game-of-life) 61.7% Medium
295 Find Median from Data Stream (/problems/find-median-from-data-stream) 49.7% Hard
297 Serialize and Deserialize Binary Tree (/problems/serialize-and-deserialize- 52.6% Hard
binary-tree)
300 Longest Increasing Subsequence (/problems/longest-increasing- 48.0% Medium
subsequence)
310 Minimum Height Trees (/problems/minimum-height-trees) 37.7% Medium
315 Count of Smaller Numbers After Self (/problems/count-of-smaller-numbers- 42.1% Hard
after-self)
317 Shortest Distance from All Buildings (/problems/shortest-distance-from-all- 43.7% Hard
buildings)
319 Bulb Switcher (/problems/bulb-switcher) 46.8% Medium
# Title Acceptance Difficulty Frequency
322 Coin Change (/problems/coin-change) 39.3% Medium
328 Odd Even Linked List (/problems/odd-even-linked-list) 59.1% Medium
329 Longest Increasing Path in a Matrix (/problems/longest-increasing-path-in-a- 48.7% Hard
matrix)
337 House Robber III (/problems/house-robber-iii) 53.2% Medium
340 Longest Substring with At Most K Distinct Characters (/problems/longest- 46.9% Medium
substring-with-at-most-k-distinct-characters)
344 Reverse String (/problems/reverse-string) 73.1% Easy
346 Moving Average from Data Stream (/problems/moving-average-from-data- 75.3% Easy
stream)
347 Top K Frequent Elements (/problems/top-k-frequent-elements) 64.1% Medium
348 Design Tic-Tac-Toe (/problems/design-tic-tac-toe) 56.8% Medium
349 Intersection of Two Arrays (/problems/intersection-of-two-arrays) 67.9% Easy
352 Data Stream as Disjoint Intervals (/problems/data-stream-as-disjoint- 50.0% Hard
intervals)
353 Design Snake Game (/problems/design-snake-game) 37.5% Medium
359 Logger Rate Limiter (/problems/logger-rate-limiter) 74.3% Easy
362 Design Hit Counter (/problems/design-hit-counter) 66.8% Medium
363 Max Sum of Rectangle No Larger Than K (/problems/max-sum-of-rectangle- 40.2% Hard
no-larger-than-k)
368 Largest Divisible Subset (/problems/largest-divisible-subset) 40.2% Medium
373 Find K Pairs with Smallest Sums (/problems/find-k-pairs-with-smallest-sums) 38.9% Medium
378 Kth Smallest Element in a Sorted Matrix (/problems/kth-smallest-element-in- 58.8% Medium
a-sorted-matrix)
380 Insert Delete GetRandom O(1) (/problems/insert-delete-getrandom-o1) 50.8% Medium
383 Ransom Note (/problems/ransom-note) 55.0% Easy
384 Shuffle an Array (/problems/shuffle-an-array) 56.3% Medium
386 Lexicographical Numbers (/problems/lexicographical-numbers) 57.5% Medium
387 First Unique Character in a String (/problems/first-unique-character-in-a- 56.0% Easy
string)
394 Decode String (/problems/decode-string) 55.6% Medium
395 Longest Substring with At Least K Repeating Characters (/problems/longest- 44.3% Medium
substring-with-at-least-k-repeating-characters)
403 Frog Jump (/problems/frog-jump) 42.6% Hard
415 Add Strings (/problems/add-strings) 51.3% Easy
416 Partition Equal Subset Sum (/problems/partition-equal-subset-sum) 46.1% Medium
417 Pacific Atlantic Water Flow (/problems/pacific-atlantic-water-flow) 47.2% Medium
# Title Acceptance Difficulty Frequency
419 Battleships in a Board (/problems/battleships-in-a-board) 72.7% Medium
420 Strong Password Checker (/problems/strong-password-checker) 14.0% Hard
437 Path Sum III (/problems/path-sum-iii) 49.8% Medium
438 Find All Anagrams in a String (/problems/find-all-anagrams-in-a-string) 46.9% Medium
443 String Compression (/problems/string-compression) 46.6% Medium
445 Add Two Numbers II (/problems/add-two-numbers-ii) 58.0% Medium
450 Delete Node in a BST (/problems/delete-node-in-a-bst) 48.1% Medium
456 132 Pattern (/problems/132-pattern) 30.8% Medium
460 LFU Cache (/problems/lfu-cache) 38.6% Hard
462 Minimum Moves to Equal Array Elements II (/problems/minimum-moves-to- 56.3% Medium
equal-array-elements-ii)
468 Validate IP Address (/problems/validate-ip-address) 26.0% Medium
472 Concatenated Words (/problems/concatenated-words) 42.6% Hard
487 Max Consecutive Ones II (/problems/max-consecutive-ones-ii) 48.5% Medium
494 Target Sum (/problems/target-sum) 45.3% Medium
498 Diagonal Traverse (/problems/diagonal-traverse) 54.5% Medium
510 Inorder Successor in BST II (/problems/inorder-successor-in-bst-ii) 61.6% Medium
518 Coin Change 2 (/problems/coin-change-2) 55.8% Medium
1721 Swapping Nodes in a Linked List (/problems/swapping-nodes-in-a-linked-list) 65.7% Medium
529 Minesweeper (/problems/minesweeper) 63.9% Medium
535 Encode and Decode TinyURL (/problems/encode-and-decode-tinyurl) 83.2% Medium
540 Single Element in a Sorted Array (/problems/single-element-in-a-sorted- 58.7% Medium
array)
543 Diameter of Binary Tree (/problems/diameter-of-binary-tree) 52.9% Easy
545 Boundary of Binary Tree (/problems/boundary-of-binary-tree) 42.3% Medium
556 Next Greater Element III (/problems/next-greater-element-iii) 33.5% Medium
557 Reverse Words in a String III (/problems/reverse-words-in-a-string-iii) 76.6% Easy
568 Maximum Vacation Days (/problems/maximum-vacation-days) 42.6% Hard
572 Subtree of Another Tree (/problems/subtree-of-another-tree) 45.0% Easy
581 Shortest Unsorted Continuous Subarray (/problems/shortest-unsorted- 33.8% Medium
continuous-subarray)
582 Kill Process (/problems/kill-process) 65.8% Medium
588 Design In-Memory File System (/problems/design-in-memory-file-system) 47.7% Hard
621 Task Scheduler (/problems/task-scheduler) 53.9% Medium
# Title Acceptance Difficulty Frequency
628 Maximum Product of Three Numbers (/problems/maximum-product-of-three- 46.7% Easy
numbers)
632 Smallest Range Covering Elements from K Lists (/problems/smallest-range- 57.3% Hard
covering-elements-from-k-lists)
636 Exclusive Time of Functions (/problems/exclusive-time-of-functions) 58.8% Medium
642 Design Search Autocomplete System (/problems/design-search- 47.8% Hard
autocomplete-system)
647 Palindromic Substrings (/problems/palindromic-substrings) 63.9% Medium
651 4 Keys Keyboard (/problems/4-keys-keyboard) 53.7% Medium
658 Find K Closest Elements (/problems/find-k-closest-elements) 44.0% Medium
678 Valid Parenthesis String (/problems/valid-parenthesis-string) 32.7% Medium
692 Top K Frequent Words (/problems/top-k-frequent-words) 54.0% Medium
694 Number of Distinct Islands (/problems/number-of-distinct-islands) 59.3% Medium
695 Max Area of Island (/problems/max-area-of-island) 68.4% Medium
713 Subarray Product Less Than K (/problems/subarray-product-less-than-k) 42.5% Medium
716 Max Stack (/problems/max-stack) 44.5% Easy
721 Accounts Merge (/problems/accounts-merge) 54.9% Medium
722 Remove Comments (/problems/remove-comments) 37.2% Medium
724 Find Pivot Index (/problems/find-pivot-index) 50.0% Easy
733 Flood Fill (/problems/flood-fill) 57.2% Easy
735 Asteroid Collision (/problems/asteroid-collision) 44.3% Medium
739 Daily Temperatures (/problems/daily-temperatures) 66.6% Medium
743 Network Delay Time (/problems/network-delay-time) 47.5% Medium
746 Min Cost Climbing Stairs (/problems/min-cost-climbing-stairs) 56.9% Easy
426 Convert Binary Search Tree to Sorted Doubly Linked List (/problems/convert- 63.8% Medium
binary-search-tree-to-sorted-doubly-linked-list)
429 N-ary Tree Level Order Traversal (/problems/n-ary-tree-level-order-traversal) 68.3% Medium
428 Serialize and Deserialize N-ary Tree (/problems/serialize-and-deserialize-n- 63.7% Hard
ary-tree)
589 N-ary Tree Preorder Traversal (/problems/n-ary-tree-preorder-traversal) 75.4% Easy
767 Reorganize String (/problems/reorganize-string) 51.4% Medium
768 Max Chunks To Make Sorted II (/problems/max-chunks-to-make-sorted-ii) 51.6% Hard
769 Max Chunks To Make Sorted (/problems/max-chunks-to-make-sorted) 57.1% Medium
700 Search in a Binary Search Tree (/problems/search-in-a-binary-search-tree) 74.6% Easy
772 Basic Calculator III (/problems/basic-calculator-iii) 46.6% Hard
796 Rotate String (/problems/rotate-string) 50.8% Easy
# Title Acceptance Difficulty Frequency
797 All Paths From Source to Target (/problems/all-paths-from-source-to-target) 80.4% Medium
705 Design HashSet (/problems/design-hashset) 63.8% Easy
706 Design HashMap (/problems/design-hashmap) 63.8% Easy
818 Race Car (/problems/race-car) 41.6% Hard
707 Design Linked List (/problems/design-linked-list) 26.6% Medium
622 Design Circular Queue (/problems/design-circular-queue) 48.3% Medium
833 Find And Replace in String (/problems/find-and-replace-in-string) 53.5% Medium
489 Robot Room Cleaner (/problems/robot-room-cleaner) 74.9% Hard
836 Rectangle Overlap (/problems/rectangle-overlap) 43.0% Easy
844 Backspace String Compare (/problems/backspace-string-compare) 47.5% Easy
849 Maximize Distance to Closest Person (/problems/maximize-distance-to- 44.9% Medium
closest-person)
470 Implement Rand10() Using Rand7() (/problems/implement-rand10-using- 46.5% Medium
rand7)
876 Middle of the Linked List (/problems/middle-of-the-linked-list) 71.7% Easy
528 Random Pick with Weight (/problems/random-pick-with-weight) 45.9% Medium
886 Possible Bipartition (/problems/possible-bipartition) 46.6% Medium
895 Maximum Frequency Stack (/problems/maximum-frequency-stack) 64.4% Hard
912 Sort an Array (/problems/sort-an-array) 62.3% Medium
922 Sort Array By Parity II (/problems/sort-array-by-parity-ii) 70.5% Easy
939 Minimum Area Rectangle (/problems/minimum-area-rectangle) 53.3% Medium
968 Binary Tree Cameras (/problems/binary-tree-cameras) 41.3% Hard
509 Fibonacci Number (/problems/fibonacci-number) 67.8% Easy
979 Distribute Coins in Binary Tree (/problems/distribute-coins-in-binary-tree) 71.0% Medium
981 Time Based Key-Value Store (/problems/time-based-key-value-store) 53.0% Medium
984 String Without AAA or BBB (/problems/string-without-aaa-or-bbb) 40.5% Medium
987 Vertical Order Traversal of a Binary Tree (/problems/vertical-order-traversal- 40.4% Hard
of-a-binary-tree)
993 Cousins in Binary Tree (/problems/cousins-in-binary-tree) 53.6% Easy
994 Rotting Oranges (/problems/rotting-oranges) 51.3% Medium
1004 Max Consecutive Ones III (/problems/max-consecutive-ones-iii) 62.0% Medium
1008 Construct Binary Search Tree from Preorder Traversal (/problems/construct- 79.8% Medium
binary-search-tree-from-preorder-traversal)
1032 Stream of Characters (/problems/stream-of-characters) 51.2% Hard
1161 Maximum Level Sum of a Binary Tree (/problems/maximum-level-sum-of-a- 66.8% Medium
binary-tree)
# Title Acceptance Difficulty Frequency
1162 As Far from Land as Possible (/problems/as-far-from-land-as-possible) 47.4% Medium
1044 Longest Duplicate Substring (/problems/longest-duplicate-substring) 31.5% Hard
1166 Design File System (/problems/design-file-system) 59.6% Medium
1197 Minimum Knight Moves (/problems/minimum-knight-moves) 39.4% Medium
1091 Shortest Path in Binary Matrix (/problems/shortest-path-in-binary-matrix) 41.7% Medium
1094 Car Pooling (/problems/car-pooling) 59.3% Medium
1123 Lowest Common Ancestor of Deepest Leaves (/problems/lowest-common- 69.4% Medium
ancestor-of-deepest-leaves)
1146 Snapshot Array (/problems/snapshot-array) 37.1% Medium
1155 Number of Dice Rolls With Target Sum (/problems/number-of-dice-rolls-with- 47.5% Medium
target-sum)
1360 Number of Days Between Two Dates (/problems/number-of-days-between- 46.5% Easy
two-dates)
1405 Longest Happy String (/problems/longest-happy-string) 54.9% Medium
1268 Search Suggestions System (/problems/search-suggestions-system) 65.8% Medium
1275 Find Winner on a Tic Tac Toe Game (/problems/find-winner-on-a-tic-tac-toe- 55.7% Easy
game)
1277 Count Square Submatrices with All Ones (/problems/count-square- 74.0% Medium
submatrices-with-all-ones)
1304 Find N Unique Integers Sum up to Zero (/problems/find-n-unique-integers- 76.7% Easy
sum-up-to-zero)
1312 Minimum Insertion Steps to Make a String Palindrome (/problems/minimum- 62.3% Hard
insertion-steps-to-make-a-string-palindrome)
1344 Angle Between Hands of a Clock (/problems/angle-between-hands-of-a- 62.5% Medium
clock)
1351 Count Negative Numbers in a Sorted Matrix (/problems/count-negative- 75.2% Easy
numbers-in-a-sorted-matrix)
1367 Linked List in Binary Tree (/problems/linked-list-in-binary-tree) 42.3% Medium
1386 Cinema Seat Allocation (/problems/cinema-seat-allocation) 38.3% Medium
1375 Number of Times Binary String Is Prefix-Aligned (/problems/number-of- 65.2% Medium
times-binary-string-is-prefix-aligned)
1392 Longest Happy Prefix (/problems/longest-happy-prefix) 43.9% Hard
1448 Count Good Nodes in Binary Tree (/problems/count-good-nodes-in-binary- 73.0% Medium
tree)
1480 Running Sum of 1d Array (/problems/running-sum-of-1d-array) 89.3% Easy
1531 String Compression II (/problems/string-compression-ii) 37.3% Hard
1537 Get the Maximum Score (/problems/get-the-maximum-score) 38.6% Hard
1551 Minimum Operations to Make Array Equal (/problems/minimum-operations- 80.7% Medium
to-make-array-equal)
# Title Acceptance Difficulty Frequency
1578 Minimum Time to Make Rope Colorful (/problems/minimum-time-to-make- 61.4% Medium
rope-colorful)
1603 Design Parking System (/problems/design-parking-system) 87.1% Easy
1593 Split a String Into the Max Number of Unique Substrings (/problems/split-a- 52.9% Medium
string-into-the-max-number-of-unique-substrings)
1615 Maximal Network Rank (/problems/maximal-network-rank) 55.6% Medium
1639 Number of Ways to Form a Target String Given a Dictionary 42.0% Hard
(/problems/number-of-ways-to-form-a-target-string-given-a-dictionary)
1647 Minimum Deletions to Make Character Frequencies Unique 56.0% Medium
(/problems/minimum-deletions-to-make-character-frequencies-unique)
1644 Lowest Common Ancestor of a Binary Tree II (/problems/lowest-common- 58.2% Medium
ancestor-of-a-binary-tree-ii)
1650 Lowest Common Ancestor of a Binary Tree III (/problems/lowest-common- 77.4% Medium
ancestor-of-a-binary-tree-iii)
1676 Lowest Common Ancestor of a Binary Tree IV (/problems/lowest-common- 79.4% Medium
ancestor-of-a-binary-tree-iv)
1763 Longest Nice Substring (/problems/longest-nice-substring) 61.6% Easy
1765 Map of Highest Peak (/problems/map-of-highest-peak) 58.8% Medium
1822 Sign of the Product of an Array (/problems/sign-of-the-product-of-an-array) 67.1% Easy
1838 Frequency of the Most Frequent Element (/problems/frequency-of-the-most- 35.6% Medium
frequent-element)
1861 Rotating the Box (/problems/rotating-the-box) 64.1% Medium
1881 Maximum Value after Insertion (/problems/maximum-value-after-insertion) 35.0% Medium
1910 Remove All Occurrences of a Substring (/problems/remove-all-occurrences- 70.7% Medium
of-a-substring)
1901 Find a Peak Element II (/problems/find-a-peak-element-ii) 54.1% Medium
1971 Find if Path Exists in Graph (/problems/find-if-path-exists-in-graph) 49.5% Easy
2061 Number of Spaces Cleaning Robot Cleaned (/problems/number-of-spaces- 57.9% Medium
cleaning-robot-cleaned)
Copyright © 2021 LeetCode
Help Center (/support) Jobs (/jobs) Bug Bounty (/bugbounty) Online Interview (/interview/) Students (/student) Terms (/terms)
Privacy Policy (/privacy)
United States (/region)