LeetCode Solutions

Here is a list of LeetCode problems solutions in C++, Java, Python.  I will keep updating solutions to this list. 

#ProblemAcceptanceDifficultyCategorySolution
1Two Sum48.30%EASYArray, Hash TableC++ Java Python
2Add Two Numbers38.00%MEDIUMLinkedList, Recursion, MathC++ Java Python
3Longest Substring Without Repeating Characters32.90%MEDIUMString, Hash Table, Sliding WindowC++ Java Python
4Median of Two Sorted Arrays33.70%HARDArrat, Binary Search, Divide and ConquerC++ Java Python
5Longest Palindromic Substring31.70%MEDIUMString, Dynamic ProgrammingC++ Java Python
6Zigzag Conversion41.10%MEDIUMStringC++ Java Python
7Reverse Integer26.50%MEDIUMMathC++ Java Python
8String to Integer (atoi)16.50%MEDIUMStringC++ Java Python
9Palindrome Number52.20%EASYMathC++ Java Python
10Regular Expression Matching28.20%HARDString, Recursion, Dynamic ProgrammingC++ Java Python
11Container With Most Water53.40%MEDIUM  Array, Greedy, Two PointersC++ Java Python
12Integer to Roman59.10%MEDIUMHash Table, Math, StringC++ Java Python
13Roman to Integer57.90%EASYHash Table, Math, StringC++ Java Python
14Longest Common Prefix39.00%EASYStringC++ Java Python
153Sum30.70%MEDIUMArray, Two Pointers, SortingC++ Java Python
163Sum Closest47.00%MEDIUMArray, Two Pointers, SortingC++ Java Python
17Letter Combinations of a Phone Number53.10%MEDIUMHash Table, String, BacktrackingC++ Java Python
184Sum37.10%MEDIUMArray, Two Pointers, SortingC++ Java Python
19Remove Nth Node From End of List38.00%MEDIUM Linked List, Two PointersC++ Java Python
20Valid Parentheses40.60%EASYStack, StringC++ Java Python
21Merge Two Sorted Lists59.50%EASYC++ Java Python
22Generate Parentheses69.50%MEDIUMC++ Java Python
23Merge k Sorted Lists46.60%HARDC++ Java Python
24Swap Nodes in Pairs58.20%MEDIUMC++ Java Python
25Reverse Nodes in k-Group50.30%HARDC++ Java Python
26Remove Duplicates from Sorted Array48.40%EASYC++ Java Python
27Remove Element51.00%EASYC++ Java Python
28Implement strStr()35.60%EASYC++ Java Python
29Divide Two Integers17.00%MEDIUMC++ Java Python
30Substring with Concatenation of All Words27.80%HARDC++ Java Python
31Next Permutation35.40%MEDIUMC++ Java Python
32Longest Valid Parentheses31.10%HARDC++ Java Python
33Search in Rotated Sorted Array37.50%MEDIUMC++ Java Python
34Find First and Last Position of Element in Sorted Array39.70%MEDIUMC++ Java Python
35Search Insert Position42.40%EASYC++ Java Python
36Valid Sudoku54.50%MEDIUMC++ Java Python
37Sudoku Solver53.10%HARDC++ Java Python
38Count and Say48.30%MEDIUMC++ Java Python
39Combination Sum64.80%MEDIUMC++ Java Python
40Combination Sum II52.10%MEDIUMC++ Java Python
41First Missing Positive35.70%HARDC++ Java Python
42Trapping Rain Water55.90%HARDC++ Java Python
43Multiply Strings37.40%MEDIUMC++ Java Python
44Wildcard Matching26.40%HARDC++ Java Python
45Jump Game II36.60%MEDIUMC++ Java Python
46Permutations71.50%MEDIUMC++ Java Python
47Permutations II53.50%MEDIUMC++ Java Python
48Rotate Image65.80%MEDIUMC++ Java Python
49Group Anagrams63.50%MEDIUMC++ Java Python
50Pow(x, n)32.10%MEDIUMC++ Java Python
51N-Queens56.50%HARDC++ Java Python
52N-Queens II65.60%HARDC++ Java Python
53Maximum Subarray49.40%EASYC++ Java Python
54Spiral Matrix40.70%MEDIUMC++ Java Python
55Jump Game37.50%MEDIUMC++ Java Python
56Merge Intervals44.50%MEDIUMC++ Java Python
57Insert Interval37.20%MEDIUMC++ Java Python
58Length of Last Word36.80%EASYC++ Java Python
59Spiral Matrix II61.90%MEDIUMC++ Java Python
60Permutation Sequence41.70%HARDC++ Java Python
61Rotate List33.70%MEDIUMC++ Java Python
62Unique Paths59.50%MEDIUMC++ Java Python
63Unique Paths II37.30%MEDIUMC++ Java Python
64Minimum Path Sum59.00%MEDIUMC++ Java Python
65Valid Number17.90%HARDC++ Java Python
66Plus One42.50%EASYC++ Java Python
67Add Binary50.10%EASYC++ Java Python
68Text Justification34.50%HARDC++ Java Python
69Sqrt(x)36.30%EASYC++ Java Python
70Climbing Stairs50.80%EASYC++ Java Python
71Simplify Path37.50%MEDIUMC++ Java Python
72Edit Distance50.30%HARDC++ Java Python
73Set Matrix Zeroes47.80%MEDIUMC++ Java Python
74Search a 2D Matrix42.60%MEDIUMC++ Java Python
75Sort Colors54.10%MEDIUMC++ Java Python
76Minimum Window Substring38.60%HARDC++ Java Python
77Combinations63.10%MEDIUMC++ Java Python
78Subsets70.70%MEDIUMC++ Java Python
79Word Search39.40%MEDIUMC++ Java Python
80Remove Duplicates from Sorted Array II50.20%MEDIUMC++ Java Python
81Search in Rotated Sorted Array II34.40%MEDIUMC++ Java Python
82Remove Duplicates from Sorted List II42.50%MEDIUMC++ Java Python
83Remove Duplicates from Sorted List48.70%EASYC++ Java Python
84Largest Rectangle in Histogram40.50%HARDC++ Java Python
85Maximal Rectangle42.40%HARDC++ Java Python
86Partition List47.40%MEDIUMC++ Java Python
87Scramble String35.50%HARDC++ Java Python
88Merge Sorted Array43.40%EASYC++ Java Python
89Gray Code54.90%MEDIUMC++ Java Python
90Subsets II52.70%MEDIUMC++ Java Python
91Decode Ways29.80%MEDIUMC++ Java Python
92Reverse Linked List II43.10%MEDIUMC++ Java Python
93Restore IP Addresses41.30%MEDIUMC++ Java Python
94Binary Tree Inorder Traversal70.20%EASYC++ Java Python
95Unique Binary Search Trees II48.80%MEDIUMC++ Java Python
96Unique Binary Search Trees58.00%MEDIUMC++ Java Python
97Interleaving String34.50%MEDIUMC++ Java Python
98Validate Binary Search Tree30.30%MEDIUMC++ Java Python
99Recover Binary Search Tree45.90%MEDIUMC++ Java Python
100Same Tree55.30%EASYC++ Java Python
101Symmetric Tree51.20%EASYC++ Java Python
102Binary Tree Level Order Traversal60.40%MEDIUMC++ Java Python
103Binary Tree Zigzag Level Order Traversal53.10%MEDIUMC++ Java Python
104Maximum Depth of Binary Tree71.50%EASYC++ Java Python
105Construct Binary Tree from Preorder and Inorder Traversal56.90%MEDIUMC++ Java Python
106Construct Binary Tree from Inorder and Postorder Traversal54.80%MEDIUMC++ Java Python
107Binary Tree Level Order Traversal II58.20%MEDIUMC++ Java Python
108Convert Sorted Array to Binary Search Tree65.50%EASYC++ Java Python
109Convert Sorted List to Binary Search Tree55.00%MEDIUMC++ Java Python
110Balanced Binary Tree46.40%EASYC++ Java Python
111Minimum Depth of Binary Tree42.10%EASYC++ Java Python
112Path Sum45.10%EASYC++ Java Python
113Path Sum II53.50%MEDIUMC++ Java Python
114Flatten Binary Tree to Linked List57.20%MEDIUMC++ Java Python
115Distinct Subsequences42.00%HARDC++ Java Python
116Populating Next Right Pointers in Each Node56.10%MEDIUMC++ Java Python
117Populating Next Right Pointers in Each Node II46.00%MEDIUMC++ Java Python
118Pascal's Triangle63.30%EASYC++ Java Python
119Pascal's Triangle II56.80%EASYC++ Java Python
120Triangle50.10%MEDIUMC++ Java Python
121Best Time to Buy and Sell Stock53.90%EASYC++ Java Python
122Best Time to Buy and Sell Stock II61.60%MEDIUMC++ Java Python
123Best Time to Buy and Sell Stock III42.80%HARDC++ Java Python
124Binary Tree Maximum Path Sum37.40%HARDC++ Java Python
125Valid Palindrome41.00%EASYC++ Java Python
126Word Ladder II26.70%HARDC++ Java Python
127Word Ladder35.10%HARDC++ Java Python
128Longest Consecutive Sequence48.50%MEDIUMC++ Java Python
129Sum Root to Leaf Numbers56.20%MEDIUMC++ Java Python
130Surrounded Regions33.50%MEDIUMC++ Java Python
131Palindrome Partitioning58.70%MEDIUMC++ Java Python
132Palindrome Partitioning II33.00%HARDC++ Java Python
133Clone Graph46.70%MEDIUMC++ Java Python
134Gas Station44.30%MEDIUMC++ Java Python
135Candy36.70%HARDC++ Java Python
136Single Number69.10%EASYC++ Java Python
137Single Number II56.30%MEDIUMC++ Java Python
138Copy List with Random Pointer46.50%MEDIUMC++ Java Python
139Word Break44.20%MEDIUMC++ Java Python
140Word Break II41.30%HARDC++ Java Python
141Linked List Cycle45.10%EASYC++ Java Python
142Linked List Cycle II43.80%MEDIUMC++ Java Python
143Reorder List47.00%MEDIUMC++ Java Python
144Binary Tree Preorder Traversal61.90%EASYC++ Java Python
145Binary Tree Postorder Traversal63.20%EASYC++ Java Python
146LRU Cache39.40%MEDIUMC++ Java Python
147Insertion Sort List48.50%MEDIUMC++ Java Python
148Sort List51.50%MEDIUMC++ Java Python
149Max Points on a Line20.10%HARDC++ Java Python
150Evaluate Reverse Polish Notation41.80%MEDIUMC++ Java Python
151Reverse Words in a String27.90%MEDIUMC++ Java Python
152Maximum Product Subarray34.40%MEDIUMC++ Java Python
153Find Minimum in Rotated Sorted Array47.70%MEDIUMC++ Java Python
154Find Minimum in Rotated Sorted Array II43.20%HARDC++ Java Python
155Min Stack49.70%EASYC++ Java Python
156Binary Tree Upside Down59.70%MEDIUMC++ Java Python
157Read N Characters Given Read440.10%EASYC++ Java Python
158Read N Characters Given read4 II - Call Multiple Times40.50%HARDC++ Java Python
159Longest Substring with At Most Two Distinct Characters52.40%MEDIUMC++ Java Python
160Intersection of Two Linked Lists49.20%EASYC++ Java Python
161One Edit Distance33.90%MEDIUMC++ Java Python
162Find Peak Element45.70%MEDIUMC++ Java Python
163Missing Ranges30.90%EASYC++ Java Python
164Maximum Gap41.10%HARDC++ Java Python
165Compare Version Numbers34.30%MEDIUMC++ Java Python
166Fraction to Recurring Decimal23.40%MEDIUMC++ Java Python
167Two Sum II - Input Array Is Sorted58.30%MEDIUMC++ Java Python
168Excel Sheet Column Title33.70%EASYC++ Java Python
169Majority Element62.60%EASYC++ Java Python
170Two Sum III - Data structure design36.50%EASYC++ Java Python
171Excel Sheet Column Number60.40%EASYC++ Java Python
172Factorial Trailing Zeroes40.50%MEDIUMC++ Java Python
173Binary Search Tree Iterator65.10%MEDIUMC++ Java Python
174Dungeon Game36.20%HARDC++ Java Python
175Combine Two Tables69.30%EASYC++ Java Python
176Second Highest Salary35.00%MEDIUMC++ Java Python
177Nth Highest Salary35.80%MEDIUMC++ Java Python
178Rank Scores56.60%MEDIUMC++ Java Python
179Largest Number32.60%MEDIUMC++ Java Python
180Consecutive Numbers45.30%MEDIUMC++ Java Python
181Employees Earning More Than Their Managers65.70%EASYC++ Java Python
182Duplicate Emails68.40%EASYC++ Java Python
183Customers Who Never Order62.00%EASYC++ Java Python
184Department Highest Salary45.90%MEDIUMC++ Java Python
185Department Top Three Salaries46.10%HARDC++ Java Python
186Reverse Words in a String II50.40%MEDIUMC++ Java Python
187Repeated DNA Sequences44.20%MEDIUMC++ Java Python
188Best Time to Buy and Sell Stock IV33.10%HARDC++ Java Python
189Rotate Array38.40%MEDIUMC++ Java Python
190Reverse Bits47.90%EASYC++ Java Python
191Number of 1 Bits59.30%EASYC++ Java Python
192Word Frequency25.60%MEDIUMC++ Java Python
193Valid Phone Numbers25.80%EASYC++ Java Python
194Transpose File25.00%MEDIUMC++ Java Python
195Tenth Line32.80%EASYC++ Java Python
196Delete Duplicate Emails51.00%EASYC++ Java Python
197Rising Temperature42.10%EASYC++ Java Python
198House Robber46.60%MEDIUMC++ Java Python
199Binary Tree Right Side View59.20%MEDIUMC++ Java Python
200Number of Islands53.30%MEDIUMC++ Java Python
201Bitwise AND of Numbers Range41.60%MEDIUMC++ Java Python
202Happy Number52.90%EASYC++ Java Python
203Remove Linked List Elements43.00%EASYC++ Java Python
204Count Primes33.00%MEDIUMC++ Java Python
205Isomorphic Strings41.90%EASYC++ Java Python
206Reverse Linked List69.70%EASYC++ Java Python
207Course Schedule44.90%MEDIUMC++ Java Python
208Implement Trie (Prefix Tree)57.40%MEDIUMC++ Java Python
209Minimum Size Subarray Sum42.80%MEDIUMC++ Java Python
210Course Schedule II46.10%MEDIUMC++ Java Python
211Design Add and Search Words Data Structure44.00%MEDIUMC++ Java Python
212Word Search II38.40%HARDC++ Java Python
213House Robber II39.60%MEDIUMC++ Java Python
214Shortest Palindrome31.70%HARDC++ Java Python
215Kth Largest Element in an Array62.80%MEDIUMC++ Java Python
216Combination Sum III63.60%MEDIUMC++ Java Python
217Contains Duplicate60.30%EASYC++ Java Python
218The Skyline Problem38.40%HARDC++ Java Python
219Contains Duplicate II40.50%EASYC++ Java Python
220Contains Duplicate III21.70%MEDIUMC++ Java Python
221Maximal Square43.10%MEDIUMC++ Java Python
222Count Complete Tree Nodes54.60%MEDIUMC++ Java Python
223Rectangle Area39.90%MEDIUMC++ Java Python
224Basic Calculator40.20%HARDC++ Java Python
225Implement Stack using Queues51.90%EASYC++ Java Python
226Invert Binary Tree71.00%EASYC++ Java Python
227Basic Calculator II41.30%MEDIUMC++ Java Python
228Summary Ranges46.20%EASYC++ Java Python
229Majority Element II41.90%MEDIUMC++ Java Python
230Kth Smallest Element in a BST66.20%MEDIUMC++ Java Python
231Power of Two44.80%EASYC++ Java Python
232Implement Queue using Stacks57.20%EASYC++ Java Python
233Number of Digit One33.30%HARDC++ Java Python
234Palindrome Linked List46.00%EASYC++ Java Python
235Lowest Common Ancestor of a Binary Search Tree56.40%EASYC++ Java Python
236Lowest Common Ancestor of a Binary Tree54.60%MEDIUMC++ Java Python
237Delete Node in a Linked List71.30%EASYC++ Java Python
238Product of Array Except Self63.60%MEDIUMC++ Java Python
239Sliding Window Maximum46.10%HARDC++ Java Python
240Search a 2D Matrix II47.90%MEDIUMC++ Java Python
241Different Ways to Add Parentheses61.10%MEDIUMC++ Java Python
242Valid Anagram61.10%EASYC++ Java Python
243Shortest Word Distance64.00%EASYC++ Java Python
244Shortest Word Distance II58.90%MEDIUMC++ Java Python
245Shortest Word Distance III57.00%MEDIUMC++ Java Python
246Strobogrammatic Number47.40%EASYC++ Java Python
247Strobogrammatic Number II50.10%MEDIUMC++ Java Python
248Strobogrammatic Number III41.30%HARDC++ Java Python
249Group Shifted Strings62.90%MEDIUMC++ Java Python
250Count Univalue Subtrees54.70%MEDIUMC++ Java Python
251Flatten 2D Vector47.70%MEDIUMC++ Java Python
252Meeting Rooms56.60%EASYC++ Java Python
253Meeting Rooms II49.40%MEDIUMC++ Java Python
254Factor Combinations48.50%MEDIUMC++ Java Python
255Verify Preorder Sequence in Binary Search Tree47.40%MEDIUMC++ Java Python
256Paint House58.20%MEDIUMC++ Java Python
257Binary Tree Paths58.00%EASYC++ Java Python
258Add Digits62.20%EASYC++ Java Python
2593Sum Smaller50.20%MEDIUMC++ Java Python
260Single Number III67.00%MEDIUMC++ Java Python
261Graph Valid Tree45.50%MEDIUMC++ Java Python
262Trips and Users37.60%HARDC++ Java Python
263Ugly Number41.90%EASYC++ Java Python
264Ugly Number II45.00%MEDIUMC++ Java Python
265Paint House II50.20%HARDC++ Java Python
266Palindrome Permutation65.10%EASYC++ Java Python
267Palindrome Permutation II39.30%MEDIUMC++ Java Python
268Missing Number58.90%EASYC++ Java Python
269Alien Dictionary34.70%HARDC++ Java Python
270Closest Binary Search Tree Value53.40%EASYC++ Java Python
271Encode and Decode Strings37.00%MEDIUMC++ Java Python
272Closest Binary Search Tree Value II56.20%HARDC++ Java Python
273Integer to English Words29.50%HARDC++ Java Python
274H-Index37.40%MEDIUMC++ Java Python
275H-Index II36.90%MEDIUMC++ Java Python
276Paint Fence42.40%MEDIUMC++ Java Python
277Find the Celebrity46.20%MEDIUMC++ Java Python
278First Bad Version41.10%EASYC++ Java Python
279Perfect Squares51.60%MEDIUMC++ Java Python
280Wiggle Sort65.90%MEDIUMC++ Java Python
281Zigzag Iterator61.20%MEDIUMC++ Java Python
282Expression Add Operators39.10%HARDC++ Java Python
283Move Zeroes60.30%EASYC++ Java Python
284Peeking Iterator53.30%MEDIUMC++ Java Python
285Inorder Successor in BST46.60%MEDIUMC++ Java Python
286Walls and Gates58.90%MEDIUMC++ Java Python
287Find the Duplicate Number58.40%MEDIUMC++ Java Python
288Unique Word Abbreviation24.60%MEDIUMC++ Java Python
289Game of Life62.30%MEDIUMC++ Java Python
290Word Pattern40.10%EASYC++ Java Python
291Word Pattern II46.00%MEDIUMC++ Java Python
292Nim Game55.40%EASYC++ Java Python
293Flip Game62.40%EASYC++ Java Python
294Flip Game II51.40%MEDIUMC++ Java Python
295Find Median from Data Stream50.00%HARDC++ Java Python
296Best Meeting Point59.40%HARDC++ Java Python
297Serialize and Deserialize Binary Tree53.20%HARDC++ Java Python
298Binary Tree Longest Consecutive Sequence50.80%MEDIUMC++ Java Python
299Bulls and Cows46.90%MEDIUMC++ Java Python
300Longest Increasing Subsequence48.70%MEDIUMC++ Java Python
301Remove Invalid Parentheses46.60%HARDC++ Java Python
302Smallest Rectangle Enclosing Black Pixels56.00%HARDC++ Java Python
303Range Sum Query - Immutable54.40%EASYC++ Java Python
304Range Sum Query 2D - Immutable47.00%MEDIUMC++ Java Python
305Number of Islands II39.30%HARDC++ Java Python
306Additive Number30.50%MEDIUMC++ Java Python
307Range Sum Query - Mutable38.50%MEDIUMC++ Java Python
308Range Sum Query 2D - Mutable40.70%HARDC++ Java Python
309Best Time to Buy and Sell Stock with Cooldown51.90%MEDIUMC++ Java Python
310Minimum Height Trees38.00%MEDIUMC++ Java Python
311Sparse Matrix Multiplication65.70%MEDIUMC++ Java Python
312Burst Balloons56.10%HARDC++ Java Python
313Super Ugly Number46.00%MEDIUMC++ Java Python
314Binary Tree Vertical Order Traversal50.70%MEDIUMC++ Java Python
315Count of Smaller Numbers After Self42.10%HARDC++ Java Python
316Remove Duplicate Letters41.40%MEDIUMC++ Java Python
317Shortest Distance from All Buildings43.50%HARDC++ Java Python
318Maximum Product of Word Lengths56.40%MEDIUMC++ Java Python
319Bulb Switcher47.10%MEDIUMC++ Java Python
320Generalized Abbreviation56.00%MEDIUMC++ Java Python
321Create Maximum Number28.30%HARDC++ Java Python
322Coin Change39.80%MEDIUMC++ Java Python
323Number of Connected Components in an Undirected Graph60.70%MEDIUMC++ Java Python
324Wiggle Sort II32.00%MEDIUMC++ Java Python
325Maximum Size Subarray Sum Equals k48.90%MEDIUMC++ Java Python
326Power of Three43.30%EASYC++ Java Python
327Count of Range Sum36.00%HARDC++ Java Python
328Odd Even Linked List59.30%MEDIUMC++ Java Python
329Longest Increasing Path in a Matrix49.20%HARDC++ Java Python
330Patching Array39.40%HARDC++ Java Python
331Verify Preorder Serialization of a Binary Tree43.60%MEDIUMC++ Java Python
332Reconstruct Itinerary39.90%HARDC++ Java Python
333Largest BST Subtree40.90%MEDIUMC++ Java Python
334Increasing Triplet Subsequence41.40%MEDIUMC++ Java Python
335Self Crossing29.10%HARDC++ Java Python
336Palindrome Pairs36.00%HARDC++ Java Python
337House Robber III53.40%MEDIUMC++ Java Python
338Counting Bits73.90%EASYC++ Java Python
339Nested List Weight Sum80.50%MEDIUMC++ Java Python
340Longest Substring with At Most K Distinct Characters47.20%MEDIUMC++ Java Python
341Flatten Nested List Iterator58.30%MEDIUMC++ Java Python
342Power of Four43.60%EASYC++ Java Python
343Integer Break53.70%MEDIUMC++ Java Python
344Reverse String73.80%EASYC++ Java Python
345Reverse Vowels of a String46.70%EASYC++ Java Python
346Moving Average from Data Stream75.80%EASYC++ Java Python
347Top K Frequent Elements64.50%MEDIUMC++ Java Python
348Design Tic-Tac-Toe57.10%MEDIUMC++ Java Python
349Intersection of Two Arrays68.50%EASYC++ Java Python
350Intersection of Two Arrays II54.60%EASYC++ Java Python
351Android Unlock Patterns50.90%MEDIUMC++ Java Python
352Data Stream as Disjoint Intervals50.30%HARDC++ Java Python
353Design Snake Game37.90%MEDIUMC++ Java Python
354Russian Doll Envelopes39.30%HARDC++ Java Python
355Design Twitter34.10%MEDIUMC++ Java Python
356Line Reflection34.20%MEDIUMC++ Java Python
357Count Numbers with Unique Digits50.40%MEDIUMC++ Java Python
358Rearrange String k Distance Apart36.80%HARDC++ Java Python
359Logger Rate Limiter74.70%EASYC++ Java Python
360Sort Transformed Array52.90%MEDIUMC++ Java Python
361Bomb Enemy49.80%MEDIUMC++ Java Python
362Design Hit Counter67.10%MEDIUMC++ Java Python
363Max Sum of Rectangle No Larger Than K40.10%HARDC++ Java Python
364Nested List Weight Sum II67.90%MEDIUMC++ Java Python
365Water and Jug Problem33.70%MEDIUMC++ Java Python
366Find Leaves of Binary Tree77.70%MEDIUMC++ Java Python
367Valid Perfect Square42.80%EASYC++ Java Python
368Largest Divisible Subset40.40%MEDIUMC++ Java Python
369Plus One Linked List60.30%MEDIUMC++ Java Python
370Range Addition68.90%MEDIUMC++ Java Python
371Sum of Two Integers50.60%MEDIUMC++ Java Python
372Super Pow37.60%MEDIUMC++ Java Python
373Find K Pairs with Smallest Sums38.90%MEDIUMC++ Java Python
374Guess Number Higher or Lower48.40%EASYC++ Java Python
375Guess Number Higher or Lower II45.20%MEDIUMC++ Java Python
376Wiggle Subsequence44.60%MEDIUMC++ Java Python
377Combination Sum IV49.00%MEDIUMC++ Java Python
378Kth Smallest Element in a Sorted Matrix59.30%MEDIUMC++ Java Python
379Design Phone Directory50.10%MEDIUMC++ Java Python
380Insert Delete GetRandom O(1)51.10%MEDIUMC++ Java Python
381Insert Delete GetRandom O(1) - Duplicates allowed35.40%HARDC++ Java Python
382Linked List Random Node58.80%MEDIUMC++ Java Python
383Ransom Note55.60%EASYC++ Java Python
384Shuffle an Array56.80%MEDIUMC++ Java Python
385Mini Parser35.70%MEDIUMC++ Java Python
386Lexicographical Numbers58.30%MEDIUMC++ Java Python
387First Unique Character in a String56.70%EASYC++ Java Python
388Longest Absolute File Path45.60%MEDIUMC++ Java Python
389Find the Difference60.40%EASYC++ Java Python
390Elimination Game46.30%MEDIUMC++ Java Python
391Perfect Rectangle32.00%HARDC++ Java Python
392Is Subsequence50.90%EASYC++ Java Python
393UTF-8 Validation39.10%MEDIUMC++ Java Python
394Decode String56.00%MEDIUMC++ Java Python
395Longest Substring with At Least K Repeating Characters44.50%MEDIUMC++ Java Python
396Rotate Function38.90%MEDIUMC++ Java Python
397Integer Replacement34.60%MEDIUMC++ Java Python
398Random Pick Index63.10%MEDIUMC++ Java Python
399Evaluate Division56.80%MEDIUMC++ Java Python
400Nth Digit33.40%MEDIUMC++ Java Python
401Binary Watch50.20%EASYC++ Java Python
402Remove K Digits30.50%MEDIUMC++ Java Python
403Frog Jump42.80%HARDC++ Java Python
404Sum of Left Leaves54.60%EASYC++ Java Python
405Convert a Number to Hexadecimal45.60%EASYC++ Java Python
406Queue Reconstruction by Height69.90%MEDIUMC++ Java Python
407Trapping Rain Water II46.70%HARDC++ Java Python
408Valid Word Abbreviation34.20%EASYC++ Java Python
409Longest Palindrome53.30%EASYC++ Java Python
410Split Array Largest Sum49.90%HARDC++ Java Python
411Minimum Unique Word Abbreviation38.40%HARDC++ Java Python
412Fizz Buzz66.20%EASYC++ Java Python
413Arithmetic Slices63.50%MEDIUMC++ Java Python
414Third Maximum Number31.60%EASYC++ Java Python
415Add Strings51.80%EASYC++ Java Python
416Partition Equal Subset Sum46.30%MEDIUMC++ Java Python
417Pacific Atlantic Water Flow48.10%MEDIUMC++ Java Python
418Sentence Screen Fitting35.30%MEDIUMC++ Java Python
419Battleships in a Board73.10%MEDIUMC++ Java Python
420Strong Password Checker14.10%HARDC++ Java Python
421Maximum XOR of Two Numbers in an Array54.20%MEDIUMC++ Java Python
422Valid Word Square38.60%EASYC++ Java Python
423Reconstruct Original Digits from English51.30%MEDIUMC++ Java Python
424Longest Repeating Character Replacement50.50%MEDIUMC++ Java Python
425Word Squares52.00%HARDC++ Java Python
426Convert Binary Search Tree to Sorted Doubly Linked List64.20%MEDIUMC++ Java Python
427Construct Quad Tree64.80%MEDIUMC++ Java Python
428Serialize and Deserialize N-ary Tree64.00%HARDC++ Java Python
429N-ary Tree Level Order Traversal68.60%MEDIUMC++ Java Python
430Flatten a Multilevel Doubly Linked List58.80%MEDIUMC++ Java Python
431Encode N-ary Tree to Binary Tree76.10%HARDC++ Java Python
432All O`one Data Structure35.40%HARDC++ Java Python
433Minimum Genetic Mutation45.70%MEDIUMC++ Java Python
434Number of Segments in a String37.90%EASYC++ Java Python
435Non-overlapping Intervals47.70%MEDIUMC++ Java Python
436Find Right Interval49.30%MEDIUMC++ Java Python
437Path Sum III50.10%MEDIUMC++ Java Python
438Find All Anagrams in a String47.90%MEDIUMC++ Java Python
439Ternary Expression Parser57.70%MEDIUMC++ Java Python
440K-th Smallest in Lexicographical Order30.40%HARDC++ Java Python
441Arranging Coins45.00%EASYC++ Java Python
442Find All Duplicates in an Array72.10%MEDIUMC++ Java Python
443String Compression47.20%MEDIUMC++ Java Python
444Sequence Reconstruction24.60%MEDIUMC++ Java Python
445Add Two Numbers II58.30%MEDIUMC++ Java Python
446Arithmetic Slices II - Subsequence39.30%HARDC++ Java Python
447Number of Boomerangs53.80%MEDIUMC++ Java Python
448Find All Numbers Disappeared in an Array58.80%EASYC++ Java Python
449Serialize and Deserialize BST56.00%MEDIUMC++ Java Python
450Delete Node in a BST48.60%MEDIUMC++ Java Python
451Sort Characters By Frequency67.40%MEDIUMC++ Java Python
452Minimum Number of Arrows to Burst Balloons52.80%MEDIUMC++ Java Python
453Minimum Moves to Equal Array Elements53.70%MEDIUMC++ Java Python
4544Sum II56.90%MEDIUMC++ Java Python
455Assign Cookies50.70%EASYC++ Java Python
456132 Pattern30.90%MEDIUMC++ Java Python
457Circular Array Loop31.50%MEDIUMC++ Java Python
458Poor Pigs55.40%HARDC++ Java Python
459Repeated Substring Pattern43.50%EASYC++ Java Python
460LFU Cache39.10%HARDC++ Java Python
461Hamming Distance74.40%EASYC++ Java Python
462Minimum Moves to Equal Array Elements II56.70%MEDIUMC++ Java Python
463Island Perimeter68.80%EASYC++ Java Python
464Can I Win29.80%MEDIUMC++ Java Python
465Optimal Account Balancing48.70%HARDC++ Java Python
466Count The Repetitions29.00%HARDC++ Java Python
467Unique Substrings in Wraparound String37.30%MEDIUMC++ Java Python
468Validate IP Address26.10%MEDIUMC++ Java Python
469Convex Polygon38.20%MEDIUMC++ Java Python
470Implement Rand10() Using Rand7()46.70%MEDIUMC++ Java Python
471Encode String with Shortest Length50.70%HARDC++ Java Python
472Concatenated Words42.40%HARDC++ Java Python
473Matchsticks to Square40.40%MEDIUMC++ Java Python
474Ones and Zeroes44.40%MEDIUMC++ Java Python
475Heaters35.00%MEDIUMC++ Java Python
476Number Complement66.60%EASYC++ Java Python
477Total Hamming Distance51.90%MEDIUMC++ Java Python
478Generate Random Point in a Circle39.30%MEDIUMC++ Java Python
479Largest Palindrome Product30.70%HARDC++ Java Python
480Sliding Window Median40.70%HARDC++ Java Python
481Magical String49.50%MEDIUMC++ Java Python
482License Key Formatting43.20%EASYC++ Java Python
483Smallest Good Base37.70%HARDC++ Java Python
484Find Permutation64.30%MEDIUMC++ Java Python
485Max Consecutive Ones54.90%EASYC++ Java Python
486Predict the Winner50.10%MEDIUMC++ Java Python
487Max Consecutive Ones II48.70%MEDIUMC++ Java Python
488Zuma Game36.70%HARDC++ Java Python
489Robot Room Cleaner75.30%HARDC++ Java Python
490The Maze54.40%MEDIUMC++ Java Python
491Increasing Subsequences50.50%MEDIUMC++ Java Python
492Construct the Rectangle52.40%EASYC++ Java Python
493Reverse Pairs29.60%HARDC++ Java Python
494Target Sum45.30%MEDIUMC++ Java Python
495Teemo Attacking56.80%EASYC++ Java Python
496Next Greater Element I69.60%EASYC++ Java Python
497Random Point in Non-overlapping Rectangles39.10%MEDIUMC++ Java Python
498Diagonal Traverse55.80%MEDIUMC++ Java Python
499The Maze III44.80%HARDC++ Java Python
500Keyboard Row67.70%EASYC++ Java Python
501Find Mode in Binary Search Tree46.80%EASYC++ Java Python
502IPO43.80%HARDC++ Java Python
503Next Greater Element II61.70%MEDIUMC++ Java Python
504Base 747.30%EASYC++ Java Python
505The Maze II51.10%MEDIUMC++ Java Python
506Relative Ranks56.00%EASYC++ Java Python
507Perfect Number37.50%EASYC++ Java Python
508Most Frequent Subtree Sum62.30%MEDIUMC++ Java Python
509Fibonacci Number68.10%EASYC++ Java Python
510Inorder Successor in BST II61.50%MEDIUMC++ Java Python
511Game Play Analysis I80.90%EASYC++ Java Python
512Game Play Analysis II54.50%EASYC++ Java Python
513Find Bottom Left Tree Value64.90%MEDIUMC++ Java Python
514Freedom Trail46.00%HARDC++ Java Python
515Find Largest Value in Each Tree Row64.20%MEDIUMC++ Java Python
516Longest Palindromic Subsequence58.90%MEDIUMC++ Java Python
517Super Washing Machines39.30%HARDC++ Java Python
518Coin Change 256.80%MEDIUMC++ Java Python
519Random Flip Matrix38.90%MEDIUMC++ Java Python
520Detect Capital55.70%EASYC++ Java Python
521Longest Uncommon Subsequence I60.00%EASYC++ Java Python
522Longest Uncommon Subsequence II40.10%MEDIUMC++ Java Python
523Continuous Subarray Sum26.90%MEDIUMC++ Java Python
524Longest Word in Dictionary through Deleting50.80%MEDIUMC++ Java Python
525Contiguous Array46.20%MEDIUMC++ Java Python
526Beautiful Arrangement64.10%MEDIUMC++ Java Python
527Word Abbreviation58.00%HARDC++ Java Python
528Random Pick with Weight46.00%MEDIUMC++ Java Python
529Minesweeper64.30%MEDIUMC++ Java Python
530Minimum Absolute Difference in BST56.10%EASYC++ Java Python
531Lonely Pixel I60.60%MEDIUMC++ Java Python
532K-diff Pairs in an Array39.90%MEDIUMC++ Java Python
533Lonely Pixel II48.40%MEDIUMC++ Java Python
534Game Play Analysis III81.60%MEDIUMC++ Java Python
535Encode and Decode TinyURL83.30%MEDIUMC++ Java Python
536Construct Binary Tree from String55.40%MEDIUMC++ Java Python
537Complex Number Multiplication71.10%MEDIUMC++ Java Python
538Convert BST to Greater Tree62.50%MEDIUMC++ Java Python
539Minimum Time Difference53.90%MEDIUMC++ Java Python
540Single Element in a Sorted Array58.70%MEDIUMC++ Java Python
541Reverse String II50.00%EASYC++ Java Python
54201 Matrix43.50%MEDIUMC++ Java Python
543Diameter of Binary Tree53.60%EASYC++ Java Python
544Output Contest Matches76.40%MEDIUMC++ Java Python
545Boundary of Binary Tree42.80%MEDIUMC++ Java Python
546Remove Boxes47.30%HARDC++ Java Python
547Number of Provinces62.50%MEDIUMC++ Java Python
548Split Array with Equal Sum49.80%HARDC++ Java Python
549Binary Tree Longest Consecutive Sequence II48.50%MEDIUMC++ Java Python
550Game Play Analysis IV44.20%MEDIUMC++ Java Python
551Student Attendance Record I47.40%EASYC++ Java Python
552Student Attendance Record II40.20%HARDC++ Java Python
553Optimal Division58.80%MEDIUMC++ Java Python
554Brick Wall52.50%MEDIUMC++ Java Python
555Split Concatenated Strings43.20%MEDIUMC++ Java Python
556Next Greater Element III33.60%MEDIUMC++ Java Python
557Reverse Words in a String III77.90%EASYC++ Java Python
558Logical OR of Two Binary Grids Represented as Quad-Trees47.10%MEDIUMC++ Java Python
559Maximum Depth of N-ary Tree70.80%EASYC++ Java Python
560Subarray Sum Equals K44.10%MEDIUMC++ Java Python
561Array Partition I75.30%EASYC++ Java Python
562Longest Line of Consecutive One in Matrix48.90%MEDIUMC++ Java Python
563Binary Tree Tilt58.30%EASYC++ Java Python
564Find the Closest Palindrome21.10%HARDC++ Java Python
565Array Nesting56.20%MEDIUMC++ Java Python
566Reshape the Matrix62.20%EASYC++ Java Python
567Permutation in String45.00%MEDIUMC++ Java Python
568Maximum Vacation Days44.20%HARDC++ Java Python
569Median Employee Salary66.50%HARDC++ Java Python
570Managers with at Least 5 Direct Reports67.00%MEDIUMC++ Java Python
571Find Median Given Frequency of Numbers44.70%HARDC++ Java Python
572Subtree of Another Tree45.20%EASYC++ Java Python
573Squirrel Simulation54.70%MEDIUMC++ Java Python
574Winning Candidate57.60%MEDIUMC++ Java Python
575Distribute Candies65.50%EASYC++ Java Python
576Out of Boundary Paths40.00%MEDIUMC++ Java Python
577Employee Bonus74.70%EASYC++ Java Python
578Get Highest Answer Rate Question43.00%MEDIUMC++ Java Python
579Find Cumulative Salary of an Employee42.10%HARDC++ Java Python
580Count Student Number in Departments56.10%MEDIUMC++ Java Python
581Shortest Unsorted Continuous Subarray34.00%MEDIUMC++ Java Python
582Kill Process66.50%MEDIUMC++ Java Python
583Delete Operation for Two Strings55.20%MEDIUMC++ Java Python
584Find Customer Referee76.30%EASYC++ Java Python
585Investments in 201655.60%MEDIUMC++ Java Python
586Customer Placing the Largest Number of Orders75.00%EASYC++ Java Python
587Erect the Fence43.20%HARDC++ Java Python
588Design In-Memory File System48.30%HARDC++ Java Python
589N-ary Tree Preorder Traversal75.80%EASYC++ Java Python
590N-ary Tree Postorder Traversal75.90%EASYC++ Java Python
591Tag Validator36.10%HARDC++ Java Python
592Fraction Addition and Subtraction51.60%MEDIUMC++ Java Python
593Valid Square43.80%MEDIUMC++ Java Python
594Longest Harmonious Subsequence52.50%EASYC++ Java Python
595Big Countries78.20%EASYC++ Java Python
596Classes More Than 5 Students41.60%EASYC++ Java Python
597Friend Requests I: Overall Acceptance Rate42.60%EASYC++ Java Python
598Range Addition II54.60%EASYC++ Java Python
599Minimum Index Sum of Two Lists52.90%EASYC++ Java Python
600Non-negative Integers without Consecutive Ones38.60%HARDC++ Java Python
601Human Traffic of Stadium49.20%HARDC++ Java Python
602Friend Requests II: Who Has the Most Friends60.50%MEDIUMC++ Java Python
603Consecutive Available Seats67.70%EASYC++ Java Python
604Design Compressed String Iterator38.90%EASYC++ Java Python
605Can Place Flowers33.00%EASYC++ Java Python
606Construct String from Binary Tree57.40%EASYC++ Java Python
607Sales Person67.90%EASYC++ Java Python
608Tree Node71.20%MEDIUMC++ Java Python
609Find Duplicate File in System63.70%MEDIUMC++ Java Python
610Triangle Judgement70.70%EASYC++ Java Python
611Valid Triangle Number49.60%MEDIUMC++ Java Python
612Shortest Distance in a Plane63.00%MEDIUMC++ Java Python
613Shortest Distance in a Line81.00%EASYC++ Java Python
614Second Degree Follower35.10%MEDIUMC++ Java Python
615Average Salary: Departments VS Company55.90%HARDC++ Java Python
616Add Bold Tag in String47.80%MEDIUMC++ Java Python
617Merge Two Binary Trees77.60%EASYC++ Java Python
618Students Report By Geography63.00%HARDC++ Java Python
619Biggest Single Number47.20%EASYC++ Java Python
620Not Boring Movies72.30%EASYC++ Java Python
621Task Scheduler54.20%MEDIUMC++ Java Python
622Design Circular Queue48.50%MEDIUMC++ Java Python
623Add One Row to Tree53.70%MEDIUMC++ Java Python
624Maximum Distance in Arrays41.50%MEDIUMC++ Java Python
625Minimum Factorization33.20%MEDIUMC++ Java Python
626Exchange Seats68.90%MEDIUMC++ Java Python
627Swap Salary80.00%EASYC++ Java Python
628Maximum Product of Three Numbers46.80%EASYC++ Java Python
629K Inverse Pairs Array37.20%HARDC++ Java Python
630Course Schedule III35.60%HARDC++ Java Python
631Design Excel Sum Formula40.50%HARDC++ Java Python
632Smallest Range Covering Elements from K Lists58.00%HARDC++ Java Python
633Sum of Square Numbers34.50%MEDIUMC++ Java Python
634Find the Derangement of An Array41.10%MEDIUMC++ Java Python
635Design Log Storage System62.20%MEDIUMC++ Java Python
636Exclusive Time of Functions59.60%MEDIUMC++ Java Python
637Average of Levels in Binary Tree68.30%EASYC++ Java Python
638Shopping Offers54.40%MEDIUMC++ Java Python
639Decode Ways II30.30%HARDC++ Java Python
640Solve the Equation43.30%MEDIUMC++ Java Python
641Design Circular Deque57.20%MEDIUMC++ Java Python
642Design Search Autocomplete System48.10%HARDC++ Java Python
643Maximum Average Subarray I43.40%EASYC++ Java Python
644Maximum Average Subarray II35.10%HARDC++ Java Python
645Set Mismatch41.20%EASYC++ Java Python
646Maximum Length of Pair Chain55.40%MEDIUMC++ Java Python
647Palindromic Substrings64.30%MEDIUMC++ Java Python
648Replace Words61.70%MEDIUMC++ Java Python
649Dota2 Senate39.80%MEDIUMC++ Java Python
6502 Keys Keyboard52.10%MEDIUMC++ Java Python
6514 Keys Keyboard54.00%MEDIUMC++ Java Python
652Find Duplicate Subtrees55.50%MEDIUMC++ Java Python
653Two Sum IV - Input is a BST58.60%EASYC++ Java Python
654Maximum Binary Tree83.30%MEDIUMC++ Java Python
655Print Binary Tree59.20%MEDIUMC++ Java Python
656Coin Path31.20%HARDC++ Java Python
657Robot Return to Origin75.00%EASYC++ Java Python
658Find K Closest Elements44.30%MEDIUMC++ Java Python
659Split Array into Consecutive Subsequences45.50%MEDIUMC++ Java Python
660Remove 955.30%HARDC++ Java Python
661Image Smoother53.90%EASYC++ Java Python
662Maximum Width of Binary Tree40.20%MEDIUMC++ Java Python
663Equal Tree Partition41.10%MEDIUMC++ Java Python
664Strange Printer45.40%HARDC++ Java Python
665Non-decreasing Array21.40%MEDIUMC++ Java Python
666Path Sum IV58.40%MEDIUMC++ Java Python
667Beautiful Arrangement II59.30%MEDIUMC++ Java Python
668Kth Smallest Number in Multiplication Table50.80%HARDC++ Java Python
669Trim a Binary Search Tree64.50%MEDIUMC++ Java Python
670Maximum Swap47.30%MEDIUMC++ Java Python
671Second Minimum Node In a Binary Tree43.50%EASYC++ Java Python
672Bulb Switcher II50.90%MEDIUMC++ Java Python
673Number of Longest Increasing Subsequence40.50%MEDIUMC++ Java Python
674Longest Continuous Increasing Subsequence48.10%EASYC++ Java Python
675Cut Off Trees for Golf Event35.50%HARDC++ Java Python
676Implement Magic Dictionary56.50%MEDIUMC++ Java Python
677Map Sum Pairs57.00%MEDIUMC++ Java Python
678Valid Parenthesis String33.00%MEDIUMC++ Java Python
67924 Game48.60%HARDC++ Java Python
680Valid Palindrome II38.50%EASYC++ Java Python
681Next Closest Time46.50%MEDIUMC++ Java Python
682Baseball Game69.30%EASYC++ Java Python
683K Empty Slots36.70%HARDC++ Java Python
684Redundant Connection61.00%MEDIUMC++ Java Python
685Redundant Connection II33.60%HARDC++ Java Python
686Repeated String Match33.50%MEDIUMC++ Java Python
687Longest Univalue Path39.20%MEDIUMC++ Java Python
688Knight Probability in Chessboard51.50%MEDIUMC++ Java Python
689Maximum Sum of 3 Non-Overlapping Subarrays48.30%HARDC++ Java Python
690Employee Importance63.50%MEDIUMC++ Java Python
691Stickers to Spell Word46.80%HARDC++ Java Python
692Top K Frequent Words54.20%MEDIUMC++ Java Python
693Binary Number with Alternating Bits60.70%EASYC++ Java Python
694Number of Distinct Islands59.50%MEDIUMC++ Java Python
695Max Area of Island69.10%MEDIUMC++ Java Python
696Count Binary Substrings64.60%EASYC++ Java Python
697Degree of an Array55.60%EASYC++ Java Python
698Partition to K Equal Sum Subsets45.00%MEDIUMC++ Java Python
699Falling Squares43.70%HARDC++ Java Python
700Search in a Binary Search Tree75.10%EASYC++ Java Python
701Insert into a Binary Search Tree75.00%MEDIUMC++ Java Python
702Search in a Sorted Array of Unknown Size70.50%MEDIUMC++ Java Python
703Kth Largest Element in a Stream52.60%EASYC++ Java Python
704Binary Search54.60%EASYC++ Java Python
705Design HashSet63.80%EASYC++ Java Python
706Design HashMap63.80%EASYC++ Java Python
707Design Linked List26.80%MEDIUMC++ Java Python
708Insert into a Sorted Circular Linked List34.20%MEDIUMC++ Java Python
709To Lower Case81.10%EASYC++ Java Python
710Random Pick with Blacklist33.20%HARDC++ Java Python
711Number of Distinct Islands II50.70%HARDC++ Java Python
712Minimum ASCII Delete Sum for Two Strings61.30%MEDIUMC++ Java Python
713Subarray Product Less Than K43.20%MEDIUMC++ Java Python
714Best Time to Buy and Sell Stock with Transaction Fee61.60%MEDIUMC++ Java Python
715Range Module43.30%HARDC++ Java Python
716Max Stack44.90%EASYC++ Java Python
7171-bit and 2-bit Characters46.30%EASYC++ Java Python
718Maximum Length of Repeated Subarray51.30%MEDIUMC++ Java Python
719Find K-th Smallest Pair Distance34.70%HARDC++ Java Python
720Longest Word in Dictionary50.80%MEDIUMC++ Java Python
721Accounts Merge55.50%MEDIUMC++ Java Python
722Remove Comments37.30%MEDIUMC++ Java Python
723Candy Crush74.90%MEDIUMC++ Java Python
724Find Pivot Index51.00%EASYC++ Java Python
725Split Linked List in Parts56.60%MEDIUMC++ Java Python
726Number of Atoms51.70%HARDC++ Java Python
727Minimum Window Subsequence42.90%HARDC++ Java Python
728Self Dividing Numbers76.80%EASYC++ Java Python
729My Calendar I55.00%MEDIUMC++ Java Python
730Count Different Palindromic Subsequences44.10%HARDC++ Java Python
731My Calendar II53.10%MEDIUMC++ Java Python
732My Calendar III66.20%HARDC++ Java Python
733Flood Fill57.80%EASYC++ Java Python
734Sentence Similarity42.90%EASYC++ Java Python
735Asteroid Collision44.40%MEDIUMC++ Java Python
736Parse Lisp Expression51.20%HARDC++ Java Python
737Sentence Similarity II47.90%MEDIUMC++ Java Python
738Monotone Increasing Digits46.70%MEDIUMC++ Java Python
739Daily Temperatures66.90%MEDIUMC++ Java Python
740Delete and Earn55.10%MEDIUMC++ Java Python
741Cherry Pickup36.20%HARDC++ Java Python
742Closest Leaf in a Binary Tree45.40%MEDIUMC++ Java Python
743Network Delay Time48.10%MEDIUMC++ Java Python
744Find Smallest Letter Greater Than Target45.50%EASYC++ Java Python
745Prefix and Suffix Search36.30%HARDC++ Java Python
746Min Cost Climbing Stairs58.00%EASYC++ Java Python
747Largest Number At Least Twice of Others44.90%EASYC++ Java Python
748Shortest Completing Word58.70%EASYC++ Java Python
749Contain Virus49.80%HARDC++ Java Python
750Number Of Corner Rectangles67.50%MEDIUMC++ Java Python
751IP to CIDR55.20%MEDIUMC++ Java Python
752Open the Lock55.20%MEDIUMC++ Java Python
753Cracking the Safe54.40%HARDC++ Java Python
754Reach a Number41.70%MEDIUMC++ Java Python
755Pour Water45.30%MEDIUMC++ Java Python
756Pyramid Transition Matrix54.80%MEDIUMC++ Java Python
757Set Intersection Size At Least Two43.00%HARDC++ Java Python
758Bold Words in String49.90%MEDIUMC++ Java Python
759Employee Free Time70.80%HARDC++ Java Python
760Find Anagram Mappings82.60%EASYC++ Java Python
761Special Binary String59.80%HARDC++ Java Python
762Prime Number of Set Bits in Binary Representation66.40%EASYC++ Java Python
763Partition Labels78.70%MEDIUMC++ Java Python
764Largest Plus Sign48.50%MEDIUMC++ Java Python
765Couples Holding Hands56.40%HARDC++ Java Python
766Toeplitz Matrix67.60%EASYC++ Java Python
767Reorganize String51.80%MEDIUMC++ Java Python
768Max Chunks To Make Sorted II51.80%HARDC++ Java Python
769Max Chunks To Make Sorted57.50%MEDIUMC++ Java Python
770Basic Calculator IV55.50%HARDC++ Java Python
771Jewels and Stones87.60%EASYC++ Java Python
772Basic Calculator III47.10%HARDC++ Java Python
773Sliding Puzzle62.90%HARDC++ Java Python
774Minimize Max Distance to Gas Station50.20%HARDC++ Java Python
775Global and Local Inversions45.40%MEDIUMC++ Java Python
776Split BST58.10%MEDIUMC++ Java Python
777Swap Adjacent in LR String36.10%MEDIUMC++ Java Python
778Swim in Rising Water58.40%HARDC++ Java Python
779K-th Symbol in Grammar39.80%MEDIUMC++ Java Python
780Reaching Points31.50%HARDC++ Java Python
781Rabbits in Forest55.70%MEDIUMC++ Java Python
782Transform to Chessboard52.10%HARDC++ Java Python
783Minimum Distance Between BST Nodes55.80%EASYC++ Java Python
784Letter Case Permutation71.90%MEDIUMC++ Java Python
785Is Graph Bipartite?50.10%MEDIUMC++ Java Python
786K-th Smallest Prime Fraction48.00%HARDC++ Java Python
787Cheapest Flights Within K Stops36.20%MEDIUMC++ Java Python
788Rotated Digits57.30%MEDIUMC++ Java Python
789Escape The Ghosts60.10%MEDIUMC++ Java Python
790Domino and Tromino Tiling47.70%MEDIUMC++ Java Python
791Custom Sort String68.70%MEDIUMC++ Java Python
792Number of Matching Subsequences50.30%MEDIUMC++ Java Python
793Preimage Size of Factorial Zeroes Function41.50%HARDC++ Java Python
794Valid Tic-Tac-Toe State35.10%MEDIUMC++ Java Python
795Number of Subarrays with Bounded Maximum52.30%MEDIUMC++ Java Python
796Rotate String51.60%EASYC++ Java Python
797All Paths From Source to Target80.70%MEDIUMC++ Java Python
798Smallest Rotation with Highest Score46.90%HARDC++ Java Python
799Champagne Tower44.80%MEDIUMC++ Java Python
800Similar RGB Color63.60%EASYC++ Java Python
801Minimum Swaps To Make Sequences Increasing39.20%HARDC++ Java Python
802Find Eventual Safe States51.90%MEDIUMC++ Java Python
803Bricks Falling When Hit33.60%HARDC++ Java Python
804Unique Morse Code Words79.90%EASYC++ Java Python
805Split Array With Same Average26.60%HARDC++ Java Python
806Number of Lines To Write String66.00%EASYC++ Java Python
807Max Increase to Keep City Skyline85.40%MEDIUMC++ Java Python
808Soup Servings42.20%MEDIUMC++ Java Python
809Expressive Words46.30%MEDIUMC++ Java Python
810Chalkboard XOR Game52.90%HARDC++ Java Python
811Subdomain Visit Count73.90%MEDIUMC++ Java Python
812Largest Triangle Area59.50%EASYC++ Java Python
813Largest Sum of Averages52.20%MEDIUMC++ Java Python
814Binary Tree Pruning71.00%MEDIUMC++ Java Python
815Bus Routes45.00%HARDC++ Java Python
816Ambiguous Coordinates55.90%MEDIUMC++ Java Python
817Linked List Components58.00%MEDIUMC++ Java Python
818Race Car41.90%HARDC++ Java Python
819Most Common Word45.30%EASYC++ Java Python
820Short Encoding of Words55.10%MEDIUMC++ Java Python
821Shortest Distance to a Character70.90%EASYC++ Java Python
822Card Flipping Game44.60%MEDIUMC++ Java Python
823Binary Trees With Factors43.70%MEDIUMC++ Java Python
824Goat Latin67.50%EASYC++ Java Python
825Friends Of Appropriate Ages45.60%MEDIUMC++ Java Python
826Most Profit Assigning Work41.20%MEDIUMC++ Java Python
827Making A Large Island44.70%HARDC++ Java Python
828Count Unique Characters of All Substrings of a Given String49.30%HARDC++ Java Python
829Consecutive Numbers Sum40.80%HARDC++ Java Python
830Positions of Large Groups51.30%EASYC++ Java Python
831Masking Personal Information45.80%MEDIUMC++ Java Python
832Flipping an Image79.50%EASYC++ Java Python
833Find And Replace in String54.20%MEDIUMC++ Java Python
834Sum of Distances in Tree52.70%HARDC++ Java Python
835Image Overlap61.30%MEDIUMC++ Java Python
836Rectangle Overlap43.20%EASYC++ Java Python
837New 21 Game36.00%MEDIUMC++ Java Python
838Push Dominoes52.20%MEDIUMC++ Java Python
839Similar String Groups45.00%HARDC++ Java Python
840Magic Squares In Grid38.30%MEDIUMC++ Java Python
841Keys and Rooms68.40%MEDIUMC++ Java Python
842Split Array into Fibonacci Sequence37.70%MEDIUMC++ Java Python
843Guess the Word43.30%HARDC++ Java Python
844Backspace String Compare47.40%EASYC++ Java Python
845Longest Mountain in Array39.70%MEDIUMC++ Java Python
846Hand of Straights56.10%MEDIUMC++ Java Python
847Shortest Path Visiting All Nodes60.90%HARDC++ Java Python
848Shifting Letters45.50%MEDIUMC++ Java Python
849Maximize Distance to Closest Person47.40%MEDIUMC++ Java Python
850Rectangle Area II53.30%HARDC++ Java Python
851Loud and Rich56.20%MEDIUMC++ Java Python
852Peak Index in a Mountain Array71.00%EASYC++ Java Python
853Car Fleet47.70%MEDIUMC++ Java Python
854K-Similar Strings39.20%HARDC++ Java Python
855Exam Room43.50%MEDIUMC++ Java Python
856Score of Parentheses65.40%MEDIUMC++ Java Python
857Minimum Cost to Hire K Workers51.60%HARDC++ Java Python
858Mirror Reflection59.50%MEDIUMC++ Java Python
859Buddy Strings28.80%EASYC++ Java Python
860Lemonade Change52.30%EASYC++ Java Python
861Score After Flipping Matrix74.70%MEDIUMC++ Java Python
862Shortest Subarray with Sum at Least K26.10%HARDC++ Java Python
863All Nodes Distance K in Binary Tree60.70%MEDIUMC++ Java Python
864Shortest Path to Get All Keys44.30%HARDC++ Java Python
865Smallest Subtree with all the Deepest Nodes67.50%MEDIUMC++ Java Python
866Prime Palindrome25.50%MEDIUMC++ Java Python
867Transpose Matrix61.20%EASYC++ Java Python
868Binary Gap61.70%EASYC++ Java Python
869Reordered Power of 261.30%MEDIUMC++ Java Python
870Advantage Shuffle51.20%MEDIUMC++ Java Python
871Minimum Number of Refueling Stops35.50%HARDC++ Java Python
872Leaf-Similar Trees64.90%EASYC++ Java Python
873Length of Longest Fibonacci Subsequence48.60%MEDIUMC++ Java Python
874Walking Robot Simulation37.60%MEDIUMC++ Java Python
875Koko Eating Bananas54.60%MEDIUMC++ Java Python
876Middle of the Linked List72.20%EASYC++ Java Python
877Stone Game69.00%MEDIUMC++ Java Python
878Nth Magical Number35.80%HARDC++ Java Python
879Profitable Schemes40.60%HARDC++ Java Python
880Decoded String at Index28.30%MEDIUMC++ Java Python
881Boats to Save People49.90%MEDIUMC++ Java Python
882Reachable Nodes In Subdivided Graph49.70%HARDC++ Java Python
883Projection Area of 3D Shapes69.90%EASYC++ Java Python
884Uncommon Words from Two Sentences65.40%EASYC++ Java Python
885Spiral Matrix III72.20%MEDIUMC++ Java Python
886Possible Bipartition46.80%MEDIUMC++ Java Python
887Super Egg Drop27.10%HARDC++ Java Python
888Fair Candy Swap60.40%EASYC++ Java Python
889Construct Binary Tree from Preorder and Postorder Traversal69.70%MEDIUMC++ Java Python
890Find and Replace Pattern75.60%MEDIUMC++ Java Python
891Sum of Subsequence Widths35.00%HARDC++ Java Python
892Surface Area of 3D Shapes61.50%EASYC++ Java Python
893Groups of Special-Equivalent Strings70.40%MEDIUMC++ Java Python
894All Possible Full Binary Trees79.30%MEDIUMC++ Java Python
895Maximum Frequency Stack64.80%HARDC++ Java Python
896Monotonic Array58.40%EASYC++ Java Python
897Increasing Order Search Tree76.00%EASYC++ Java Python
898Bitwise ORs of Subarrays36.20%MEDIUMC++ Java Python
899Orderly Queue58.50%HARDC++ Java Python
900RLE Iterator58.50%MEDIUMC++ Java Python
901Online Stock Span62.90%MEDIUMC++ Java Python
902Numbers At Most N Given Digit Set40.80%HARDC++ Java Python
903Valid Permutations for DI Sequence56.90%HARDC++ Java Python
904Fruit Into Baskets42.90%MEDIUMC++ Java Python
905Sort Array By Parity74.80%EASYC++ Java Python
906Super Palindromes39.20%HARDC++ Java Python
907Sum of Subarray Minimums33.70%MEDIUMC++ Java Python
908Smallest Range I67.10%EASYC++ Java Python
909Snakes and Ladders40.30%MEDIUMC++ Java Python
910Smallest Range II32.30%MEDIUMC++ Java Python
911Online Election51.60%MEDIUMC++ Java Python
912Sort an Array61.70%MEDIUMC++ Java Python
913Cat and Mouse35.10%HARDC++ Java Python
914X of a Kind in a Deck of Cards33.20%EASYC++ Java Python
915Partition Array into Disjoint Intervals48.40%MEDIUMC++ Java Python
916Word Subsets52.70%MEDIUMC++ Java Python
917Reverse Only Letters60.90%EASYC++ Java Python
918Maximum Sum Circular Subarray36.80%MEDIUMC++ Java Python
919Complete Binary Tree Inserter63.60%MEDIUMC++ Java Python
920Number of Music Playlists49.30%HARDC++ Java Python
921Minimum Add to Make Parentheses Valid77.30%MEDIUMC++ Java Python
922Sort Array By Parity II70.60%EASYC++ Java Python
9233Sum With Multiplicity41.40%MEDIUMC++ Java Python
924Minimize Malware Spread41.90%HARDC++ Java Python
925Long Pressed Name34.90%EASYC++ Java Python
926Flip String to Monotone Increasing58.30%MEDIUMC++ Java Python
927Three Equal Parts39.30%HARDC++ Java Python
928Minimize Malware Spread II41.90%HARDC++ Java Python
929Unique Email Addresses67.40%EASYC++ Java Python
930Binary Subarrays With Sum48.40%MEDIUMC++ Java Python
931Minimum Falling Path Sum67.00%MEDIUMC++ Java Python
932Beautiful Array64.60%MEDIUMC++ Java Python
933Number of Recent Calls73.10%EASYC++ Java Python
934Shortest Bridge52.30%MEDIUMC++ Java Python
935Knight Dialer48.80%MEDIUMC++ Java Python
936Stamping The Sequence53.50%HARDC++ Java Python
937Reorder Data in Log Files55.90%EASYC++ Java Python
938Range Sum of BST84.90%EASYC++ Java Python
939Minimum Area Rectangle53.40%MEDIUMC++ Java Python
940Distinct Subsequences II44.20%HARDC++ Java Python
941Valid Mountain Array33.80%EASYC++ Java Python
942DI String Match75.60%EASYC++ Java Python
943Find the Shortest Superstring45.40%HARDC++ Java Python
944Delete Columns to Make Sorted70.10%EASYC++ Java Python
945Minimum Increment to Make Array Unique48.80%MEDIUMC++ Java Python
946Validate Stack Sequences65.30%MEDIUMC++ Java Python
947Most Stones Removed with Same Row or Column56.20%MEDIUMC++ Java Python
948Bag of Tokens46.20%MEDIUMC++ Java Python
949Largest Time for Given Digits35.50%MEDIUMC++ Java Python
950Reveal Cards In Increasing Order76.90%MEDIUMC++ Java Python
951Flip Equivalent Binary Trees66.60%MEDIUMC++ Java Python
952Largest Component Size by Common Factor40.40%HARDC++ Java Python
953Verifying an Alien Dictionary52.40%EASYC++ Java Python
954Array of Doubled Pairs38.40%MEDIUMC++ Java Python
955Delete Columns to Make Sorted II34.10%MEDIUMC++ Java Python
956Tallest Billboard39.90%HARDC++ Java Python
957Prison Cells After N Days39.50%MEDIUMC++ Java Python
958Check Completeness of a Binary Tree53.50%MEDIUMC++ Java Python
959Regions Cut By Slashes68.40%MEDIUMC++ Java Python
960Delete Columns to Make Sorted III56.50%HARDC++ Java Python
961N-Repeated Element in Size 2N Array75.30%EASYC++ Java Python
962Maximum Width Ramp48.00%MEDIUMC++ Java Python
963Minimum Area Rectangle II54.40%MEDIUMC++ Java Python
964Least Operators to Express Number47.00%HARDC++ Java Python
965Univalued Binary Tree68.80%EASYC++ Java Python
966Vowel Spellchecker51.60%MEDIUMC++ Java Python
967Numbers With Same Consecutive Differences47.00%MEDIUMC++ Java Python
968Binary Tree Cameras41.70%HARDC++ Java Python
969Pancake Sorting69.60%MEDIUMC++ Java Python
970Powerful Integers43.50%MEDIUMC++ Java Python
971Flip Binary Tree To Match Preorder Traversal49.90%MEDIUMC++ Java Python
972Equal Rational Numbers42.40%HARDC++ Java Python
973K Closest Points to Origin66.00%MEDIUMC++ Java Python
974Subarray Sums Divisible by K53.00%MEDIUMC++ Java Python
975Odd Even Jump39.10%HARDC++ Java Python
976Largest Perimeter Triangle59.10%EASYC++ Java Python
977Squares of a Sorted Array71.50%EASYC++ Java Python
978Longest Turbulent Subarray47.50%MEDIUMC++ Java Python
979Distribute Coins in Binary Tree71.30%MEDIUMC++ Java Python
980Unique Paths III79.40%HARDC++ Java Python
981Time Based Key-Value Store52.80%MEDIUMC++ Java Python
982Triples with Bitwise AND Equal To Zero57.50%HARDC++ Java Python
983Minimum Cost For Tickets63.80%MEDIUMC++ Java Python
984String Without AAA or BBB41.70%MEDIUMC++ Java Python
985Sum of Even Numbers After Queries60.90%MEDIUMC++ Java Python
986Interval List Intersections70.90%MEDIUMC++ Java Python
987Vertical Order Traversal of a Binary Tree41.10%HARDC++ Java Python
988Smallest String Starting From Leaf48.50%MEDIUMC++ Java Python
989Add to Array-Form of Integer45.30%EASYC++ Java Python
990Satisfiability of Equality Equations49.70%MEDIUMC++ Java Python
991Broken Calculator50.00%MEDIUMC++ Java Python
992Subarrays with K Different Integers53.20%HARDC++ Java Python
993Cousins in Binary Tree53.70%EASYC++ Java Python
994Rotting Oranges51.60%MEDIUMC++ Java Python
995Minimum Number of K Consecutive Bit Flips50.60%HARDC++ Java Python
996Number of Squareful Arrays49.10%HARDC++ Java Python
997Find the Town Judge49.90%EASYC++ Java Python
998Maximum Binary Tree II65.40%MEDIUMC++ Java Python
999Available Captures for Rook67.80%EASYC++ Java Python
1000Minimum Cost to Merge Stones42.00%HARDC++ Java Python
x