Skip to content

βœ… Solutions to LeetCode problems most of them are solved in Java, 100% test coverage, runtime beats 100% 🀠 πŸ₯³

Notifications You must be signed in to change notification settings

Raghuram42/leetcodesolutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Leetcode Solutions

My accepted leetcode solutions

ID Title Runtime Memory Timestamp Solution
1 Two Sum 2 ms 38.7 MB 11-01-2020 java
2 Add Two Numbers 2 ms 38.7 MB 11-01-2020 java
3 Longest Substring Without Repeating Characters 2 ms 38.7 MB 11-01-2020 java
4 Median Of Two Sorted Arrays 2 ms 46.2 MB 12-01-2020 java
5 Longest Palindromic Substring 98 ms 42.9 MB 05-06-2020 java
6 Zigzag Conversion 98 ms 42.9 MB 05-06-2020 java
7 Reverse Integer 1 ms 33.8 MB 15-01-2020 java
8 String To Integer Atoi 31 ms 40 MB 14-05-2020 java
9 Palindrome Number 7 ms 39.2 MB 14-05-2020 java
11 Container With Most Water 674 ms 39.4 MB 04-06-2020 java
12 Integer To Roman 6 ms 38.3 MB 10-03-2021 java
13 Roman To Integer 5 ms 40.2 MB 23-05-2020 java
14 Longest Common Prefix 2 ms 39.4 MB 21-05-2020 java
15 3Sum 2 ms 39.4 MB 21-05-2020 java
16 3Sum Closest 2 ms 39.4 MB 21-05-2020 java
17 Letter Combinations Of A Phone Number 1190 ms 48 MB 11-01-2020 java
18 4Sum 15 ms 40.3 MB 02-09-2020 java
19 Remove Nth Node From End Of List 15 ms 40.3 MB 02-09-2020 java
20 Valid Parentheses 15 ms 40.3 MB 02-09-2020 java
21 Merge Two Sorted Lists 2 ms 40.1 MB 28-07-2020 java
22 Generate Parentheses 15 ms 40.3 MB 02-09-2020 java
23 Merge K Sorted Lists 4 ms 40.9 MB 24-01-2021 java
24 Swap Nodes In Pairs 4 ms 40.9 MB 24-01-2021 java
26 Remove Duplicates From Sorted Array 4 ms 40.9 MB 24-01-2021 java
27 Remove Element 4 ms 40.9 MB 24-01-2021 java
28 Implement Strstr 4 ms 40.9 MB 24-01-2021 java
29 Divide Two Integers 173 ms 36 MB 27-02-2021 java
30 Substring With Concatenation Of All Words 173 ms 36 MB 27-02-2021 java
31 Next Permutation 173 ms 36 MB 27-02-2021 java
32 Longest Valid Parentheses 173 ms 36 MB 27-02-2021 java
33 Search In Rotated Sorted Array 173 ms 36 MB 27-02-2021 java
34 Find First And Last Position Of Element In Sorted Array 0 ms 42.2 MB 02-11-2020 java
35 Search Insert Position 0 ms 39.8 MB 10-06-2020 java
36 Valid Sudoku 0 ms 39.8 MB 10-06-2020 java
37 Sudoku Solver 0 ms 39.8 MB 10-06-2020 java
38 Count And Say 1 ms 36.4 MB 13-06-2020 java
39 Combination Sum 1 ms 36.4 MB 13-06-2020 java
40 Combination Sum Ii 2 ms 39.4 MB 22-06-2021 java
41 First Missing Positive 1 ms 36.4 MB 13-06-2020 java
42 Trapping Rain Water 1 ms 40.2 MB 19-06-2021 java
45 Jump Game Ii 0 ms 36.9 MB 30-09-2020 java
46 Permutations 1 ms 36.4 MB 13-06-2020 java
47 Permutations Ii 1 ms 39.8 MB 12-11-2020 java
48 Rotate Image 0 ms 39.6 MB 15-06-2020 java
49 Group Anagrams 0 ms 39.6 MB 15-06-2020 java
50 Powx N 0 ms 39.6 MB 15-06-2020 java
51 N Queens 0 ms 39.6 MB 15-06-2020 java
52 N Queens Ii 2 ms 35.8 MB 29-05-2021 java
53 Maximum Subarray 1 ms 41.4 MB 02-05-2020 java
54 Spiral Matrix 1 ms 41.4 MB 02-05-2020 java
55 Jump Game 1 ms 41.4 MB 02-05-2020 java
56 Merge Intervals 7 ms 42 MB 29-08-2020 java
57 Insert Interval 2 ms 42.1 MB 13-09-2020 java
58 Length Of Last Word 2 ms 42.1 MB 13-09-2020 java
59 Spiral Matrix Ii 2 ms 42.1 MB 13-09-2020 java
60 Permutation Sequence 1 ms 37.3 MB 20-06-2020 java
61 Rotate List 0 ms 38.2 MB 07-10-2020 java
62 Unique Paths 0 ms 36.3 MB 29-06-2020 java
63 Unique Paths Ii 0 ms 38.4 MB 01-10-2020 java
64 Minimum Path Sum 1 ms 42.2 MB 12-05-2020 java
65 Valid Number 2 ms 38.4 MB 15-05-2021 java
66 Plus One 0 ms 37.6 MB 06-07-2020 java
67 Add Binary 3 ms 38.1 MB 19-07-2020 java
68 Text Justification 0 ms 39.3 MB 02-04-2021 java
69 Sqrtx 1 ms 36.3 MB 21-06-2021 java
70 Climbing Stairs 0 ms 36.1 MB 31-07-2020 java
71 Simplify Path 3 ms 39.3 MB 05-02-2021 java
72 Edit Distance 5 ms 39.6 MB 31-05-2020 java
73 Set Matrix Zeroes 1 ms 41.1 MB 29-08-2020 java
74 Search A 2D Matrix 0 ms 38.4 MB 16-10-2020 java
75 Sort Colors 0 ms 37.9 MB 11-06-2020 java
76 Minimum Window Substring 10 ms 40 MB 12-03-2021 java
78 Subsets 1 ms 39.9 MB 11-07-2020 java
79 Word Search 1 ms 39.9 MB 11-07-2020 java
80 Remove Duplicates From Sorted Array Ii 0 ms 39.3 MB 11-12-2020 java
81 Search In Rotated Sorted Array Ii 0 ms 39.3 MB 11-12-2020 java
82 Remove Duplicates From Sorted List Ii 0 ms 38.5 MB 05-01-2021 java
83 Remove Duplicates From Sorted List 0 ms 38.8 MB 22-04-2021 java
84 Largest Rectangle In Histogram 0 ms 38.8 MB 22-04-2021 java
85 Maximal Rectangle 10 ms 41.8 MB 05-06-2021 java
86 Partition List 0 ms 38.8 MB 22-04-2021 java
88 Merge Sorted Array 0 ms 38.8 MB 22-04-2021 java
89 Gray Code 5 ms 46.5 MB 22-06-2021 java
90 Subsets Ii 0 ms 38.8 MB 22-04-2021 java
91 Decode Ways 1 ms 37.8 MB 20-09-2020 java
92 Reverse Linked List Ii 1 ms 37.8 MB 20-09-2020 java
96 Unique Binary Search Trees 1 ms 37.8 MB 20-09-2020 java
97 Interleaving String 7 ms 55.2 MB 02-06-2021 java
98 Validate Binary Search Tree 1 ms 37.8 MB 20-09-2020 java
99 Recover Binary Search Tree 1 ms 37.8 MB 20-09-2020 java
100 Same Tree 0 ms 38.7 MB 13-07-2020 java
102 Binary Tree Level Order Traversal 1 ms 39.9 MB 18-06-2020 java
103 Binary Tree Zigzag Level Order Traversal 0 ms 39.7 MB 22-07-2020 java
104 Maximum Depth Of Binary Tree 0 ms 38.8 MB 01-12-2020 java
105 Construct Binary Tree From Preorder And Inorder Traversal 6 ms 41.1 MB 08-06-2021 java
106 Construct Binary Tree From Inorder And Postorder Traversal 4 ms 40 MB 27-07-2020 java
107 Binary Tree Level Order Traversal Ii 1 ms 40.3 MB 02-07-2020 java
109 Convert Sorted List To Binary Search Tree 1 ms 39.9 MB 06-05-2021 java
110 Balanced Binary Tree 0 ms 39 MB 14-10-2020 java
111 Minimum Depth Of Binary Tree 5 ms 60.1 MB 22-10-2020 java
112 Path Sum 5 ms 60.1 MB 22-10-2020 java
114 Flatten Binary Tree To Linked List 0 ms 38.3 MB 14-05-2021 java
115 Distinct Subsequences 16 ms 42.2 MB 09-10-2020 java
116 Populating Next Right Pointers In Each Node 24 ms 17.7 MB 13-11-2020 cpp
117 Populating Next Right Pointers In Each Node Ii 1 ms 38.3 MB 06-12-2020 java
118 Pascals Triangle 0 ms 37.3 MB 12-08-2020 java
119 Pascals Triangle Ii 1 ms 36.8 MB 12-08-2020 java
120 Triangle 0 ms 39.1 MB 21-04-2021 java
121 Best Time To Buy And Sell Stock 1 ms 39.4 MB 07-06-2020 java
122 Best Time To Buy And Sell Stock Ii 0 ms 39.6 MB 03-05-2020 java
123 Best Time To Buy And Sell Stock Iii 2 ms 39.3 MB 16-08-2020 java
124 Binary Tree Maximum Path Sum 0 ms 41.4 MB 02-06-2020 java
125 Valid Palindrome 11 ms 39.8 MB 03-08-2020 java
127 Word Ladder 304 ms 30.2 MB 09-01-2021 cpp
128 Longest Consecutive Sequence 304 ms 30.2 MB 09-01-2021 cpp
129 Sum Root To Leaf Numbers 1 ms 39.4 MB 26-06-2020 java
130 Surrounded Regions 1 ms 41.7 MB 17-06-2020 java
131 Palindrome Partitioning 9 ms 52.8 MB 14-12-2020 java
133 Clone Graph 27 ms 39.4 MB 02-06-2020 java
134 Gas Station 0 ms 39.8 MB 05-06-2020 java
135 Candy 24 ms 41.4 MB 27-06-2021 java
136 Single Number 0 ms 40.7 MB 02-05-2020 java
137 Single Number Ii 1 ms 39.4 MB 22-06-2020 java
138 Copy List With Random Pointer 0 ms 38.5 MB 10-02-2021 java
139 Word Break 1 ms 39.1 MB 29-09-2020 java
140 Word Break Ii 4 ms 40.7 MB 30-07-2020 java
141 Linked List Cycle 0 ms 39.5 MB 27-10-2020 java
142 Linked List Cycle Ii 0 ms 38.8 MB 27-10-2020 java
143 Reorder List 1 ms 42.5 MB 20-08-2020 java
144 Binary Tree Preorder Traversal 0 ms 37.6 MB 18-06-2020 java
146 Lru Cache 16 ms 47.8 MB 27-05-2020 java
147 Insertion Sort List 28 ms 38.8 MB 02-11-2020 java
148 Sort List 6 ms 43.5 MB 13-10-2020 java
150 Evaluate Reverse Polish Notation 4 ms 38.2 MB 25-05-2021 java
151 Reverse Words In A String 105 ms 40.6 MB 15-07-2020 java
152 Maximum Product Subarray 1 ms 38.9 MB 11-09-2020 java
153 Find Minimum In Rotated Sorted Array 0 ms 39.7 MB 25-07-2020 java
154 Find Minimum In Rotated Sorted Array Ii 1 ms 41 MB 25-07-2020 java
155 Min Stack 5 ms 41.6 MB 08-05-2020 java
160 Intersection Of Two Linked Lists 16 ms 53.3 MB 04-03-2021 java
162 Find Peak Element 0 ms 39.1 MB 28-10-2020 java
164 Maximum Gap 2 ms 39.4 MB 30-05-2021 java
165 Compare Version Numbers 1 ms 37.6 MB 09-09-2020 java
167 Two Sum Ii Input Array Is Sorted 1 ms 39.2 MB 12-06-2020 java
169 Majority Element 1 ms 39.2 MB 12-06-2020 java
171 Excel Sheet Column Number 1 ms 38.2 MB 10-08-2020 java
172 Factorial Trailing Zeroes 0 ms 36.6 MB 30-08-2020 java
173 Binary Search Tree Iterator 14 ms 43.2 MB 09-12-2020 java
174 Dungeon Game 1 ms 38.8 MB 21-06-2020 java
175 Combine Two Tables 831 ms 0B 16-05-2020 mssql
176 Second Highest Salary 926 ms 0B 15-05-2020 mssql
177 Nth Highest Salary 685 ms 0B 16-05-2020 mssql
178 Rank Scores 899 ms 0B 15-05-2020 mssql
179 Largest Number 9 ms 38.9 MB 25-09-2020 java
180 Consecutive Numbers 9 ms 38.9 MB 25-09-2020 java
181 Employees Earning More Than Their Managers 1027 ms 0B 15-05-2020 mssql
182 Duplicate Emails 1161 ms 0B 16-05-2020 mssql
183 Customers Who Never Order 992 ms 0B 16-05-2020 mssql
184 Department Highest Salary 1084 ms 0B 16-05-2020 mssql
185 Department Top Three Salaries 1067 ms 0B 16-05-2020 mssql
187 Repeated Dna Sequences 15 ms 47.7 MB 17-10-2020 java
188 Best Time To Buy And Sell Stock Iv 15 ms 47.7 MB 17-10-2020 java
189 Rotate Array 1 ms 42.9 MB 09-06-2020 java
190 Reverse Bits 2 ms 40.2 MB 12-07-2020 java
191 Number Of 1 Bits 2 ms 40.2 MB 12-07-2020 java
196 Delete Duplicate Emails 1861 ms 0B 16-05-2020 mysql
197 Rising Temperature 1388 ms 0B 16-05-2020 mssql
198 House Robber 0 ms 38.9 MB 14-09-2020 java
199 Binary Tree Right Side View 1 ms 38.1 MB 06-02-2021 java
200 Number Of Islands 2 ms 41.7 MB 12-05-2020 java
201 Bitwise And Of Numbers Range 5 ms 38.8 MB 23-05-2020 java
202 Happy Number 2 ms 38.4 MB 02-05-2020 java
203 Remove Linked List Elements 2 ms 46.6 MB 20-07-2020 java
204 Count Primes 33 ms 42 MB 10-05-2021 java
206 Reverse Linked List 0 ms 39.2 MB 17-08-2020 java
207 Course Schedule 2 ms 40.1 MB 29-05-2020 java
208 Implement Trie Prefix Tree 35 ms 48.5 MB 14-05-2020 java
210 Course Schedule Ii 7 ms 47.9 MB 15-06-2020 java
211 Design Add And Search Words Data Structure 53 ms 50.7 MB 05-08-2020 java
212 Word Search Ii 817 ms 54.1 MB 30-06-2020 java
213 House Robber Ii 0 ms 36.4 MB 02-10-2020 java
215 Kth Largest Element In An Array 4 ms 39.1 MB 16-01-2021 java
216 Combination Sum Iii 0 ms 36.7 MB 12-09-2020 java
217 Contains Duplicate 6 ms 45.7 MB 02-09-2020 java
218 The Skyline Problem 172 ms 72.8 MB 30-11-2020 cpp
219 Contains Duplicate Ii 6 ms 42.8 MB 02-09-2020 java
220 Contains Duplicate Iii 15 ms 39.5 MB 02-09-2020 java
221 Maximal Square 4 ms 42.2 MB 31-05-2020 java
222 Count Complete Tree Nodes 5 ms 42.2 MB 23-06-2020 java
226 Invert Binary Tree 0 ms 37.2 MB 01-06-2020 java
227 Basic Calculator Ii 15 ms 41.4 MB 24-11-2020 java
228 Summary Ranges 0 ms 37.1 MB 28-10-2020 java
229 Majority Element Ii 11 ms 43.8 MB 04-09-2020 java
230 Kth Smallest Element In A Bst 0 ms 42.6 MB 20-05-2020 java
231 Power Of Two 1 ms 36.5 MB 08-06-2020 java
232 Implement Queue Using Stacks 1 ms 36.5 MB 08-06-2020 java
234 Palindrome Linked List 0 ms 39.3 MB 02-04-2021 java
236 Lowest Common Ancestor Of A Binary Tree 4 ms 41.3 MB 03-03-2021 java
237 Delete Node In A Linked List 0 ms 39.2 MB 02-06-2020 java
238 Product Of Array Except Self 3 ms 47.2 MB 10-05-2020 java
239 Sliding Window Maximum 1240 ms 30.3 MB 28-11-2020 python
240 Search A 2D Matrix Ii 15 ms 51.5 MB 23-02-2021 java
242 Valid Anagram 3 ms 39 MB 27-10-2020 java
258 Add Digits 1 ms 36.8 MB 26-07-2020 java
260 Single Number Iii 1 ms 40 MB 23-07-2020 java
262 Trips And Users 807 ms 0B 16-05-2020 mssql
264 Ugly Number Ii 2 ms 37.1 MB 04-07-2020 java
268 Missing Number 0 ms 40.3 MB 28-08-2020 java
274 H Index 0 ms 37.3 MB 11-08-2020 java
275 H Index Ii 0 ms 46.7 MB 18-06-2020 java
278 First Bad Version 12 ms 35.7 MB 01-05-2020 java
279 Perfect Squares 33 ms 78.6 MB 27-06-2020 java
283 Move Zeroes 0 ms 39.7 MB 03-05-2020 java
284 Peeking Iterator 4 ms 39.1 MB 08-02-2021 java
287 Find The Duplicate Number 939 ms 41.8 MB 25-06-2020 java
289 Game Of Life 0 ms 37.4 MB 30-12-2020 java
290 Word Pattern 0 ms 37.1 MB 07-09-2020 java
295 Find Median From Data Stream 43 ms 49.9 MB 12-03-2021 java
299 Bulls And Cows 5 ms 39.2 MB 10-09-2020 java
300 Longest Increasing Subsequence 138 ms 91.4 MB 29-09-2020 java
303 Range Sum Query Immutable 16 ms 46.3 MB 14-09-2020 java
304 Range Sum Query 2D Immutable 10 ms 44.8 MB 12-05-2021 java
307 Range Sum Query Mutable 95 ms 71.1 MB 19-02-2021 java
309 Best Time To Buy And Sell Stock With Cooldown 0 ms 37.7 MB 29-07-2020 java
310 Minimum Height Trees 24 ms 52.3 MB 15-06-2020 java
312 Burst Balloons 24 ms 52.3 MB 15-06-2020 java
315 Count Of Smaller Numbers After Self 666 ms 41.9 MB 30-08-2020 java
316 Remove Duplicate Letters 3 ms 38.9 MB 11-10-2020 java
318 Maximum Product Of Word Lengths 24 ms 39 MB 27-05-2021 java
322 Coin Change 53 ms 52.5 MB 22-09-2020 java
324 Wiggle Sort Ii 6 ms 41.2 MB 25-06-2021 java
326 Power Of Three 10 ms 38.8 MB 27-04-2021 java
328 Odd Even Linked List 1 ms 42.1 MB 16-05-2020 java
329 Longest Increasing Path In A Matrix 8 ms 39 MB 10-04-2021 java
332 Reconstruct Itinerary 4 ms 40 MB 28-06-2020 java
334 Increasing Triplet Subsequence 0 ms 38.7 MB 18-12-2020 java
336 Palindrome Pairs 90 ms 40.9 MB 13-06-2021 java
337 House Robber Iii 1 ms 39.2 MB 03-10-2020 java
338 Counting Bits 1 ms 39.2 MB 03-10-2020 java
341 Flatten Nested List Iterator 3 ms 41.4 MB 13-04-2021 java
342 Power Of Four 3 ms 36.8 MB 04-08-2020 java
343 Integer Break 3 ms 36.8 MB 04-08-2020 java
344 Reverse String 1 ms 46.2 MB 04-06-2020 java
347 Top K Frequent Elements 1 ms 46.2 MB 04-06-2020 java
350 Intersection Of Two Arrays Ii 4 ms 39.3 MB 25-09-2020 java
354 Russian Doll Envelopes 4 ms 39.3 MB 25-09-2020 java
367 Valid Perfect Square 4 ms 39.3 MB 25-09-2020 java
368 Largest Divisible Subset 18 ms 40.1 MB 13-06-2020 java
371 Sum Of Two Integers 18 ms 40.1 MB 13-06-2020 java
376 Wiggle Subsequence 27 ms 54.1 MB 18-03-2021 java
377 Combination Sum Iv 27 ms 54.1 MB 18-03-2021 java
380 Insert Delete Getrandom O1 27 ms 54.1 MB 18-03-2021 java
382 Linked List Random Node 0 ms 36.5 MB 12-03-2021 java
383 Ransom Note 0 ms 36.5 MB 12-03-2021 java
384 Shuffle An Array 83 ms 47.7 MB 12-06-2020 java
385 Mini Parser 5 ms 39.3 MB 08-02-2021 java
387 First Unique Character In A String 20 ms 40.1 MB 05-05-2020 java
388 Longest Absolute File Path 1 ms 37.5 MB 16-03-2021 java
389 Find The Difference 3 ms 39.1 MB 24-09-2020 java
392 Is Subsequence 1 ms 39.2 MB 09-06-2020 java
394 Decode String 24 ms 14 MB 19-11-2020 python3
395 Longest Substring With At Least K Repeating Characters 24 ms 14 MB 19-11-2020 python3
399 Evaluate Division 1 ms 38.2 MB 27-09-2020 java
402 Remove K Digits 57 ms 38.9 MB 13-05-2020 java
403 Frog Jump 222 ms 41.8 MB 14-10-2020 java
404 Sum Of Left Leaves 0 ms 37.3 MB 24-08-2020 java
406 Queue Reconstruction By Height 0 ms 37.3 MB 24-08-2020 java
409 Longest Palindrome 2 ms 37.4 MB 14-08-2020 java
412 Fizz Buzz 5 ms 40.8 MB 26-08-2020 java
413 Arithmetic Slices 0 ms 37.1 MB 18-02-2021 java
414 Third Maximum Number 1 ms 41.2 MB 11-06-2020 java
416 Partition Equal Subset Sum 98 ms 46.9 MB 12-09-2020 java
417 Pacific Atlantic Water Flow 36 ms 24 MB 25-03-2021 cpp
421 Maximum Xor Of Two Numbers In An Array 42 ms 54.4 MB 16-09-2020 java
423 Reconstruct Original Digits From English 16 ms 39.3 MB 28-03-2021 java
424 Longest Repeating Character Replacement 16 ms 39.3 MB 28-03-2021 java
427 Construct Quad Tree 0 ms 39.4 MB 24-06-2021 java
430 Flatten A Multilevel Doubly Linked List 203 ms 73 MB 01-05-2021 java
435 Non Overlapping Intervals 3 ms 39.3 MB 15-08-2020 java
436 Find Right Interval 168 ms 28 MB 27-08-2020 cpp
437 Path Sum Iii 477 ms 52.8 MB 08-08-2020 java
438 Find All Anagrams In A String 23 ms 44.8 MB 17-05-2020 java
441 Arranging Coins 2 ms 38.6 MB 01-07-2020 java
442 Find All Duplicates In An Array 11 ms 63.1 MB 06-08-2020 java
445 Add Two Numbers Ii 5 ms 45.3 MB 07-11-2020 java
448 Find All Numbers Disappeared In An Array 11 ms 63.7 MB 11-06-2020 java
449 Serialize And Deserialize Bst 5 ms 39.8 MB 09-10-2020 java
450 Delete Node In A Bst 0 ms 40.4 MB 31-08-2020 java
451 Sort Characters By Frequency 58 ms 52.5 MB 22-05-2020 java
452 Minimum Number Of Arrows To Burst Balloons 16 ms 46.8 MB 10-10-2020 java
454 4Sum Ii 105 ms 79.7 MB 17-12-2020 java
455 Assign Cookies 6 ms 39.6 MB 09-03-2021 java
456 132 Pattern 80 ms 40.1 MB 23-10-2020 java
458 Poor Pigs 40 ms 15.7 MB 14-11-2020 csharp
459 Repeated Substring Pattern 10 ms 39.6 MB 03-09-2020 java
460 Lfu Cache 595 ms 53.4 MB 19-06-2020 java
461 Hamming Distance 0 ms 36.2 MB 05-07-2020 java
462 Minimum Moves To Equal Array Elements Ii 4 ms 39 MB 19-05-2021 java
463 Island Perimeter 210 ms 108.4 MB 07-07-2020 java
464 Can I Win 14 ms 43.1 MB 25-09-2020 java
468 Validate Ip Address 1 ms 37.5 MB 16-06-2020 java
470 Implement Rand10 Using Rand7 5 ms 44.9 MB 28-08-2020 java
473 Matchsticks To Square 1140 ms 36.8 MB 15-06-2021 java
474 Ones And Zeroes 264 ms 9.7 MB 02-04-2021 cpp
476 Number Complement 0 ms 35.9 MB 04-05-2020 java
478 Generate Random Point In A Circle 208 ms 49.5 MB 17-03-2021 java
482 License Key Formatting 0 ms 35.9 MB 04-05-2020 java
485 Max Consecutive Ones 2 ms 41.5 MB 08-06-2020 java
494 Target Sum 629 ms 54.9 MB 15-09-2020 java
495 Teemo Attacking 1 ms 41.2 MB 26-09-2020 java
497 Random Point In Non Overlapping Rectangles 196 ms 17.9 MB 22-08-2020 python3
498 Diagonal Traverse 5 ms 41.8 MB 25-12-2020 java
509 Fibonacci Number 0 ms 35.7 MB 16-02-2021 java
516 Longest Palindromic Subsequence 56 ms 49.3 MB 06-10-2020 java
518 Coin Change 2 2 ms 36.9 MB 07-06-2020 java
520 Detect Capital 2 ms 37.9 MB 01-08-2020 java
523 Continuous Subarray Sum 28 ms 40.5 MB 20-09-2020 java
524 Longest Word In Dictionary Through Deleting 24 ms 39.6 MB 22-02-2021 java
525 Contiguous Array 20 ms 48.8 MB 09-05-2020 java
526 Beautiful Arrangement 74 ms 35.8 MB 03-01-2021 java
528 Random Pick With Weight 20 ms 43.5 MB 05-06-2020 java
532 K Diff Pairs In An Array 12 ms 42.2 MB 03-10-2020 java
535 Encode And Decode Tinyurl 6 ms 39.5 MB 15-03-2021 java
538 Convert Bst To Greater Tree 0 ms 39 MB 09-02-2021 java
540 Single Element In A Sorted Array 0 ms 39.6 MB 12-05-2020 java
542 01 Matrix 19 ms 43 MB 09-01-2021 java
543 Diameter Of Binary Tree 0 ms 39.2 MB 09-05-2020 java
547 Number Of Provinces 2 ms 39.8 MB 18-01-2021 java
551 Student Attendance Record I 0 ms 37.5 MB 26-02-2021 java
554 Brick Wall 1286 ms 46.2 MB 22-04-2021 java
556 Next Greater Element Iii 0 ms 35.6 MB 23-12-2020 java
560 Subarray Sum Equals K 357 ms 40.7 MB 20-05-2020 java
561 Array Partition I 10 ms 41.1 MB 29-09-2020 java
563 Binary Tree Tilt 0 ms 38.8 MB 08-11-2020 java
567 Permutation In String 23 ms 39.8 MB 18-05-2020 java
575 Distribute Candies 31 ms 40.7 MB 16-02-2021 java
576 Out Of Boundary Paths 19 ms 39.3 MB 24-06-2021 java
581 Shortest Unsorted Continuous Subarray 12 ms 40.4 MB 28-09-2020 java
583 Delete Operation For Two Strings 8 ms 39.4 MB 07-05-2021 java
589 N Ary Tree Preorder Traversal 4 ms 38 MB 04-09-2020 java
593 Valid Square 36 ms 14.1 MB 11-11-2020 python3
594 Longest Harmonious Subsequence 16 ms 40.3 MB 04-02-2021 java
595 Big Countries 1491 ms 0B 16-05-2020 mssql
596 Classes More Than 5 Students 1288 ms 0B 16-05-2020 mssql
601 Human Traffic Of Stadium 984 ms 0B 16-05-2020 mssql
605 Can Place Flowers 1 ms 49.1 MB 05-12-2020 java
609 Find Duplicate File In System 30 ms 48.3 MB 18-05-2021 java
617 Merge Two Binary Trees 0 ms 39 MB 24-02-2021 java
620 Not Boring Movies 292 ms 0B 17-05-2020 mysql
621 Task Scheduler 4 ms 41.6 MB 28-07-2020 java
622 Design Circular Queue 4 ms 39.3 MB 04-04-2021 java
623 Add One Row To Tree 0 ms 38.7 MB 09-03-2021 java
626 Exchange Seats 924 ms 0B 15-05-2020 mssql
627 Swap Salary 924 ms 0B 15-05-2020 mssql
629 K Inverse Pairs Array 2767 ms 39.7 MB 19-06-2021 java
630 Course Schedule Iii 924 ms 0B 15-05-2020 mssql
637 Average Of Levels In Binary Tree 924 ms 0B 15-05-2020 mssql
645 Set Mismatch 924 ms 0B 15-05-2020 mssql
647 Palindromic Substrings 9 ms 39.1 MB 12-03-2021 java
650 2 Keys Keyboard 0 ms 35.5 MB 13-04-2021 java
653 Two Sum Iv Input Is A Bst 2 ms 40.2 MB 12-06-2020 java
654 Maximum Binary Tree 2 ms 39.3 MB 25-06-2021 java
662 Maximum Width Of Binary Tree 1 ms 39.1 MB 09-07-2020 java
665 Non Decreasing Array 0 ms 40.4 MB 27-10-2020 java
667 Beautiful Arrangement Ii 1 ms 39 MB 12-04-2021 java
669 Trim A Binary Search Tree 0 ms 42.5 MB 02-02-2021 java
673 Number Of Longest Increasing Subsequence 1560 ms 14.5 MB 30-10-2020 python3
678 Valid Parenthesis String 1560 ms 14.5 MB 30-10-2020 python3
682 Baseball Game 1560 ms 14.5 MB 30-10-2020 python3
684 Redundant Connection 6 ms 40.1 MB 16-06-2020 java
685 Redundant Connection Ii 191 ms 41.4 MB 25-06-2021 java
687 Longest Univalue Path 11 ms 63.7 MB 26-01-2021 java
688 Knight Probability In Chessboard 5 ms 38.6 MB 24-06-2021 java
690 Employee Importance 5 ms 40.8 MB 14-01-2021 java
695 Max Area Of Island 5 ms 40.8 MB 14-01-2021 java
696 Count Binary Substrings 252 ms 16.6 MB 23-04-2021 python
698 Partition To K Equal Sum Subsets 1 ms 37.3 MB 24-09-2020 java
700 Search In A Binary Search Tree 4 ms 38 MB 04-09-2020 java
701 Insert Into A Binary Search Tree 0 ms 39.6 MB 06-10-2020 java
703 Kth Largest Element In A Stream 0 ms 39.6 MB 06-10-2020 java
704 Binary Search 0 ms 39.8 MB 08-10-2020 java
705 Design Hashset 15 ms 48.9 MB 02-08-2020 java
706 Design Hashmap 32 ms 46.5 MB 07-03-2021 java
707 Design Linked List 9 ms 39.8 MB 11-09-2020 java
709 To Lower Case 0 ms 37.3 MB 30-06-2020 java
713 Subarray Product Less Than K 7 ms 48.7 MB 28-09-2020 java
714 Best Time To Buy And Sell Stock With Transaction Fee 56 ms 319.4 MB 16-03-2021 java
717 1 Bit And 2 Bit Characters 0 ms 38.7 MB 29-09-2020 java
721 Accounts Merge 22 ms 42.6 MB 20-01-2021 java
725 Split Linked List In Parts 0 ms 39.3 MB 23-06-2021 java
729 My Calendar I 170 ms 39.5 MB 10-06-2021 java
733 Flood Fill 2 ms 45 MB 11-05-2020 java
735 Asteroid Collision 4 ms 40.3 MB 21-10-2020 java
739 Daily Temperatures 38 ms 48.4 MB 22-06-2021 java
743 Network Delay Time 120 ms 43.5 MB 26-02-2021 cpp
745 Prefix And Suffix Search 120 ms 43.5 MB 26-02-2021 cpp
746 Min Cost Climbing Stairs 120 ms 43.5 MB 26-02-2021 cpp
752 Open The Lock 1 ms 41 MB 14-09-2020 java
754 Reach A Number 120 ms 43.5 MB 26-02-2021 cpp
763 Partition Labels 4 ms 38 MB 04-09-2020 java
764 Largest Plus Sign 199 ms 88.9 MB 03-06-2021 java
767 Reorganize String 4 ms 38 MB 04-09-2020 java
771 Jewels And Stones 4 ms 38 MB 04-09-2020 java
775 Global And Local Inversions 608 ms 39.4 MB 05-04-2021 java
778 Swim In Rising Water 8 ms 39.6 MB 20-06-2021 java
783 Minimum Distance Between Bst Nodes 0 ms 36.6 MB 26-01-2021 java
784 Letter Case Permutation 6 ms 39.6 MB 16-02-2021 java
785 Is Graph Bipartite 7 ms 40 MB 11-09-2020 java
787 Cheapest Flights Within K Stops 120 ms 52 MB 14-06-2020 java
788 Rotated Digits 5 ms 35.9 MB 22-02-2021 java
792 Number Of Matching Subsequences 61 ms 46.9 MB 22-06-2021 java
794 Valid Tic Tac Toe State 0 ms 36.5 MB 27-01-2021 java
795 Number Of Subarrays With Bounded Maximum 2 ms 47.3 MB 17-06-2021 java
797 All Paths From Source To Target 3 ms 41.2 MB 24-07-2020 java
799 Champagne Tower 1 ms 36.6 MB 26-10-2020 java
802 Find Eventual Safe States 4 ms 49.1 MB 12-01-2021 java
804 Unique Morse Code Words 1 ms 36.9 MB 22-11-2020 java
807 Max Increase To Keep City Skyline 1 ms 38.7 MB 23-06-2021 java
811 Subdomain Visit Count 16 ms 39.9 MB 24-02-2021 java
816 Ambiguous Coordinates 10 ms 40.3 MB 13-05-2021 java
820 Short Encoding Of Words 30 ms 46.8 MB 06-03-2021 java
821 Shortest Distance To A Character 1 ms 39.2 MB 07-02-2021 java
823 Binary Trees With Factors 1 ms 39.2 MB 07-02-2021 java
824 Goat Latin 2 ms 39.2 MB 19-08-2020 java
832 Flipping An Image 52 ms 14.2 MB 10-11-2020 python3
835 Image Overlap 44 ms 38.5 MB 06-09-2020 java
836 Rectangle Overlap 0 ms 36 MB 02-03-2021 java
837 New 21 Game 4 ms 38.7 MB 25-06-2021 java
841 Keys And Rooms 2 ms 42 MB 10-01-2021 java
844 Backspace String Compare 0 ms 37.1 MB 05-05-2020 java
845 Longest Mountain In Array 3 ms 40.1 MB 16-11-2020 java
846 Hand Of Straights 2 ms 40.6 MB 10-09-2020 java
849 Maximize Distance To Closest Person 2 ms 40.6 MB 10-09-2020 java
856 Score Of Parentheses 0 ms 37.2 MB 24-02-2021 java
858 Mirror Reflection 0 ms 2 MB 17-11-2020 rust
859 Buddy Strings 8 ms 39.8 MB 12-10-2020 java
863 All Nodes Distance K In Binary Tree 14 ms 39 MB 25-05-2021 java
865 Smallest Subtree With All The Deepest Nodes 1 ms 38.2 MB 12-12-2020 java
869 Reordered Power Of 2 1 ms 35.7 MB 21-03-2021 java
870 Advantage Shuffle 172 ms 48.6 MB 24-03-2021 javascript
871 Minimum Number Of Refueling Stops 793 ms 40.1 MB 12-06-2021 java
872 Leaf Similar Trees 0 ms 37.2 MB 24-02-2021 java
874 Walking Robot Simulation 34 ms 44.2 MB 29-12-2020 java
876 Middle Of The Linked List 0 ms 36.9 MB 04-05-2020 java
877 Stone Game 0 ms 39.2 MB 17-09-2020 java
878 Nth Magical Number 0 ms 36 MB 21-06-2021 java
880 Decoded String At Index 208 ms 49.5 MB 17-03-2021 java
881 Boats To Save People 14 ms 48.2 MB 13-01-2021 java
886 Possible Bipartition 17 ms 47.4 MB 27-05-2020 java
890 Find And Replace Pattern 5 ms 40.1 MB 21-05-2021 java
894 All Possible Full Binary Trees 92 ms 28.1 MB 02-02-2021 cpp
895 Maximum Frequency Stack 59 ms 52.5 MB 28-02-2021 java
897 Increasing Order Search Tree 0 ms 36.6 MB 03-12-2020 java
898 Bitwise Ors Of Subarrays 545 ms 68.4 MB 10-05-2021 java
901 Online Stock Span 751 ms 89.9 MB 19-05-2020 java
902 Numbers At Most N Given Digit Set 0 ms 36.6 MB 21-11-2020 java
904 Fruit Into Baskets 83 ms 47.8 MB 21-02-2021 java
905 Sort Array By Parity 1 ms 45.5 MB 10-06-2020 java
906 Super Palindromes 1 ms 45.5 MB 10-06-2020 java
910 Smallest Range Ii 7 ms 39 MB 21-12-2020 java
914 X Of A Kind In A Deck Of Cards 5 ms 39.4 MB 19-12-2020 java
916 Word Subsets 460 ms 164.3 MB 26-03-2021 cpp
918 Maximum Sum Circular Subarray 2 ms 45.6 MB 15-05-2020 java
921 Minimum Add To Make Parentheses Valid 1 ms 36.9 MB 27-04-2021 java
923 3Sum With Multiplicity 157 ms 59.9 MB 23-03-2021 java
925 Long Pressed Name 0 ms 6.4 MB 01-03-2021 cpp
929 Unique Email Addresses 10 ms 38.8 MB 21-02-2021 java
933 Number Of Recent Calls 25 ms 48.2 MB 01-10-2020 java
936 Stamping The Sequence 32 ms 7.5 MB 31-03-2021 cpp
938 Range Sum Of Bst 14 ms 46.4 MB 30-06-2020 java
941 Valid Mountain Array 14 ms 46.4 MB 30-06-2020 java
943 Find The Shortest Superstring 24 ms 39.2 MB 23-05-2021 java
946 Validate Stack Sequences 2 ms 38.6 MB 26-02-2021 java
947 Most Stones Removed With Same Row Or Column 116 ms 14.4 MB 19-01-2021 python
948 Bag Of Tokens 3 ms 38.9 MB 24-10-2020 java
949 Largest Time For Given Digits 14 ms 39.6 MB 01-09-2020 java
952 Largest Component Size By Common Factor 123 ms 42.9 MB 30-08-2020 java
953 Verifying An Alien Dictionary 0 ms 37.6 MB 29-12-2020 java
957 Prison Cells After N Days 1 ms 39.8 MB 03-07-2020 java
959 Regions Cut By Slashes 6 ms 37.5 MB 21-01-2021 java
965 Univalued Binary Tree 0 ms 36.2 MB 24-02-2021 java
966 Vowel Spellchecker 116 ms 50.1 MB 22-03-2021 javascript
967 Numbers With Same Consecutive Differences 3 ms 39.4 MB 18-08-2020 java
968 Binary Tree Cameras 0 ms 38.5 MB 16-05-2021 java
969 Pancake Sorting 1 ms 39.9 MB 29-08-2020 java
970 Powerful Integers 1 ms 37.3 MB 30-04-2021 java
971 Flip Binary Tree To Match Preorder Traversal 0 ms 38.9 MB 29-03-2021 java
973 K Closest Points To Origin 25 ms 47.3 MB 30-05-2020 java
974 Subarray Sums Divisible By K 4 ms 42 MB 28-09-2020 java
977 Squares Of A Sorted Array 3 ms 53.8 MB 08-06-2020 java
980 Unique Paths Iii 0 ms 36.5 MB 20-09-2020 java
983 Minimum Cost For Tickets 68 ms 13.8 MB 25-08-2020 python3
986 Interval List Intersections 3 ms 40.7 MB 23-05-2020 java
987 Vertical Order Traversal Of A Binary Tree 3 ms 40.1 MB 07-08-2020 java
990 Satisfiability Of Equality Equations 0 ms 38.2 MB 20-01-2021 java
991 Broken Calculator 0 ms 35.5 MB 21-02-2021 java
993 Cousins In Binary Tree 1 ms 37.5 MB 07-05-2020 java
994 Rotting Oranges 2 ms 38.7 MB 09-08-2020 java
997 Find The Town Judge 9 ms 48.5 MB 10-05-2020 java
1002 Find Common Characters 7 ms 39.2 MB 29-09-2020 java
1007 Minimum Domino Rotations For Equal Row 10 ms 46.8 MB 19-10-2020 java
1008 Construct Binary Search Tree From Preorder Traversal 0 ms 37.8 MB 14-05-2020 java
1009 Complement Of Base 10 Integer 0 ms 35.9 MB 05-10-2020 java
1010 Pairs Of Songs With Total Durations Divisible By 60 17 ms 45.2 MB 08-12-2020 java
1011 Capacity To Ship Packages Within D Days 9 ms 42.9 MB 23-04-2021 java
1015 Smallest Integer Divisible By K 2 ms 35.7 MB 25-11-2020 java
1020 Number Of Enclaves 11 ms 62 MB 09-01-2021 java
1021 Remove Outermost Parentheses 2 ms 39.3 MB 24-02-2021 java
1022 Sum Of Root To Leaf Binary Numbers 11 ms 39.7 MB 08-09-2020 java
1025 Divisor Game 0 ms 35.9 MB 15-09-2020 java
1026 Maximum Difference Between Node And Ancestor 0 ms 39.9 MB 09-11-2020 java
1029 Two City Scheduling 1 ms 37.8 MB 03-06-2020 java
1032 Stream Of Characters 224 ms 139.3 MB 23-08-2020 java
1034 Coloring A Border 2 ms 52.7 MB 10-01-2021 java
1035 Uncrossed Lines 8 ms 39 MB 25-05-2020 java
1038 Binary Search Tree To Greater Sum Tree 0 ms 36.1 MB 09-02-2021 java
1041 Robot Bounded In Circle 8 ms 39.4 MB 17-09-2020 java
1042 Flower Planting With No Adjacent 29 ms 72.1 MB 23-01-2021 java
1044 Longest Duplicate Substring 29 ms 72.1 MB 23-01-2021 java
1046 Last Stone Weight 1 ms 37.2 MB 09-05-2020 java
1048 Longest String Chain 1190 ms 211.6 MB 17-05-2021 java
1049 Last Stone Weight Ii 1 ms 36.6 MB 08-10-2020 java
1051 Height Checker 2 ms 39.2 MB 10-06-2020 java
1074 Number Of Submatrices That Sum To Target 104 ms 39.4 MB 17-04-2021 java
1079 Letter Tile Possibilities 20 ms 40.9 MB 20-02-2021 java
1081 Smallest Subsequence Of Distinct Characters 2 ms 37 MB 12-10-2020 java
1089 Duplicate Zeros 1 ms 39.8 MB 08-06-2020 java
1091 Shortest Path In Binary Matrix 11 ms 40.3 MB 12-01-2021 java
1092 Shortest Common Supersequence 10 ms 43 MB 25-09-2020 java
1094 Car Pooling 15 ms 40.1 MB 21-09-2020 java
1103 Distribute Candies To People 1 ms 36.8 MB 17-08-2020 java
1108 Defanging An Ip Address 0 ms 37.4 MB 25-06-2020 java
1114 Print In Order 9 ms 36.5 MB 11-01-2020 java
1122 Relative Sort Array 0 ms 38.6 MB 10-02-2021 java
1129 Shortest Path With Alternating Colors 5 ms 39.7 MB 25-01-2021 java
1130 Minimum Cost Tree From Leaf Values 12 ms 37.2 MB 16-09-2020 java
1137 N Th Tribonacci Number 0 ms 35.4 MB 26-01-2021 java
1140 Stone Game Ii 271 ms 39.1 MB 24-06-2021 java
1143 Longest Common Subsequence 17 ms 43.5 MB 29-05-2020 java
1162 As Far From Land As Possible 25 ms 56.5 MB 11-01-2021 java
1169 Invalid Transactions 499 ms 39.9 MB 14-02-2021 java
1170 Compare Strings By Frequency Of The Smallest Character 20 ms 39.7 MB 05-10-2020 java
1179 Reformat Department Table 1657 ms 0B 17-05-2020 mssql
1185 Day Of The Week 9 ms 37.7 MB 15-02-2021 java
1191 K Concatenation Maximum Sum 16 ms 55.4 MB 22-09-2020 java
1192 Critical Connections In A Network 780 ms 162.3 MB 24-04-2021 javascript
1209 Remove All Adjacent Duplicates In String Ii 7 ms 38.8 MB 16-04-2021 java
1217 Minimum Cost To Move Chips To The Same Position 8 ms 37.5 MB 05-11-2020 java
1221 Split A String In Balanced Strings 1 ms 39 MB 30-06-2020 java
1232 Check If It Is A Straight Line 0 ms 39.2 MB 08-05-2020 java
1249 Minimum Remove To Make Valid Parentheses 10 ms 39.9 MB 19-02-2021 java
1252 Cells With Odd Values In A Matrix 4 ms 39.6 MB 16-07-2020 java
1254 Number Of Closed Islands 3 ms 43.9 MB 09-01-2021 java
1266 Minimum Time Visiting All Points 0 ms 39.3 MB 30-06-2020 java
1267 Count Servers That Communicate 2 ms 45.7 MB 21-01-2021 java
1268 Search Suggestions System 38 ms 44 MB 31-05-2021 java
1277 Count Square Submatrices With All Ones 5 ms 52.3 MB 21-05-2020 java
1281 Subtract The Product And Sum Of Digits Of An Integer 0 ms 36 MB 01-07-2020 java
1283 Find The Smallest Divisor Given A Threshold 12 ms 41.2 MB 06-11-2020 java
1286 Iterator For Combination 17 ms 41.1 MB 13-08-2020 java
1288 Remove Covered Intervals 77 ms 40.1 MB 04-10-2020 java
1290 Convert Binary Number In A Linked List To Integer 0 ms 39 MB 14-06-2020 java
1291 Sequential Digits 10 ms 39.6 MB 19-09-2020 java
1295 Find Numbers With Even Number Of Digits 1 ms 38.8 MB 08-06-2020 java
1296 Divide Array In Sets Of K Consecutive Numbers 41 ms 53.3 MB 10-09-2020 java
1299 Replace Elements With Greatest Element On Right Side 1 ms 40.9 MB 10-06-2020 java
1302 Deepest Leaves Sum 1 ms 40.8 MB 11-04-2021 java
1304 Find N Unique Integers Sum Up To Zero 0 ms 37.6 MB 25-03-2021 java
1305 All Elements In Two Binary Search Trees 17 ms 41.6 MB 05-09-2020 java
1306 Jump Game Iii 0 ms 47.2 MB 29-11-2020 java
1309 Decrypt String From Alphabet To Integer Mapping 5 ms 37.5 MB 29-03-2021 java
1312 Minimum Insertion Steps To Make A String Palindrome 5 ms 37.5 MB 29-03-2021 java
1313 Decompress Run Length Encoded List 2 ms 45.2 MB 26-06-2020 java
1314 Matrix Block Sum 3 ms 40.1 MB 15-09-2020 java
1319 Number Of Operations To Make Network Connected 14 ms 55 MB 20-01-2021 java
1323 Maximum 69 Number 0 ms 36.1 MB 21-07-2020 java
1326 Minimum Number Of Taps To Open To Water A Garden 14 ms 39.1 MB 31-01-2021 java
1329 Sort The Matrix Diagonally 7 ms 40.1 MB 23-01-2021 java
1332 Remove Palindromic Subsequences 0 ms 36.5 MB 08-03-2021 java
1334 Find The City With The Smallest Number Of Neighbors At A Threshold Distance 14 ms 43.8 MB 14-06-2020 java
1337 The K Weakest Rows In A Matrix 2 ms 40.1 MB 15-02-2021 java
1342 Number Of Steps To Reduce A Number To Zero 0 ms 36.2 MB 25-06-2020 java
1344 Angle Between Hands Of A Clock 1 ms 38.4 MB 14-07-2020 java
1345 Jump Game Iv 66 ms 63.1 MB 27-12-2020 java
1346 Check If N And Its Double Exist 2 ms 39.1 MB 09-06-2020 java
1351 Count Negative Numbers In A Sorted Matrix 1 ms 39.2 MB 14-06-2021 java
1354 Construct Target Array With Multiple Sums 7 ms 46.9 MB 09-05-2021 java
1356 Sort Integers By The Number Of 1 Bits 6 ms 39.6 MB 10-02-2021 java
1361 Validate Binary Tree Nodes 6 ms 51.8 MB 23-01-2021 java
1365 How Many Numbers Are Smaller Than The Current Number 9 ms 39.4 MB 02-07-2020 java
1376 Time Needed To Inform All Employees 122 ms 57.5 MB 13-01-2021 java
1379 Find A Corresponding Node Of A Binary Tree In A Clone Of That Tree 0 ms 46.5 MB 02-01-2021 java
1383 Maximum Performance Of A Team 76 ms 65.3 MB 05-06-2021 java
1386 Cinema Seat Allocation 22 ms 46.9 MB 09-03-2021 java
1387 Sort Integers By The Power Value 41 ms 38.8 MB 23-01-2021 java
1389 Create Target Array In The Given Order 2 ms 40.3 MB 17-07-2020 java
1396 Design Underground System 90 ms 53 MB 20-03-2021 java
1399 Count Largest Group 3 ms 35.9 MB 10-02-2021 java
1413 Minimum Value To Get Positive Step By Step Sum 0 ms 37.8 MB 03-02-2021 java
1423 Maximum Points You Can Obtain From Cards 1 ms 48 MB 11-05-2021 java
1431 Kids With The Greatest Number Of Candies 1 ms 40 MB 25-06-2020 java
1436 Destination City 3 ms 41.9 MB 14-06-2020 java
1437 Check If All 1S Are At Least Length K Places Away 1 ms 49.1 MB 25-01-2021 java
1446 Consecutive Characters 1 ms 37.8 MB 03-11-2020 java
1450 Number Of Students Doing Homework At A Given Time 0 ms 37.7 MB 17-05-2020 java
1451 Rearrange Words In A Sentence 64 ms 53.2 MB 17-05-2020 java
1452 People Whose List Of Favorite Companies Is Not A Subset Of Another List 179 ms 58.8 MB 17-05-2020 java
1455 Check If A Word Occurs As A Prefix Of Any Word In A Sentence 2 ms 37.7 MB 24-05-2020 java
1456 Maximum Number Of Vowels In A Substring Of Given Length 7 ms 40 MB 24-05-2020 java
1457 Pseudo Palindromic Paths In A Binary Tree 52 ms 57.2 MB 24-05-2020 java
1460 Make Two Arrays Equal By Reversing Sub Arrays 4 ms 42.8 MB 30-05-2020 java
1461 Check If A String Contains All Binary Codes Of Size K 192 ms 123.4 MB 30-05-2020 java
1462 Course Schedule Iv 284 ms 47.9 MB 31-05-2020 java
1463 Cherry Pickup Ii 11 ms 39.7 MB 19-12-2020 java
1464 Maximum Product Of Two Elements In An Array 3 ms 40.9 MB 31-05-2020 java
1465 Maximum Area Of A Piece Of Cake After Horizontal And Vertical Cuts 19 ms 60.7 MB 31-05-2020 java
1466 Reorder Routes To Make All Paths Lead To The City Zero 13 ms 55.2 MB 31-05-2020 java
1470 Shuffle The Array 6 ms 43.6 MB 07-06-2020 java
1471 The K Strongest Values In An Array 109 ms 51.9 MB 07-06-2020 java
1472 Design Browser History 63 ms 47.7 MB 07-06-2020 java
1475 Final Prices With A Special Discount In A Shop 1 ms 39.2 MB 25-02-2021 java
1480 Running Sum Of 1D Array 0 ms 39.7 MB 22-06-2020 java
1486 Xor Operation In An Array 0 ms 35.8 MB 22-06-2020 java
1492 The Kth Factor Of N 0 ms 35.7 MB 04-12-2020 java
1510 Stone Game Iv 0 ms 35.8 MB 22-06-2020 java
1512 Number Of Good Pairs 1 ms 37.2 MB 15-07-2020 java
1528 Shuffle String 1 ms 39.9 MB 21-09-2020 java
1534 Count Good Triplets 17 ms 37.3 MB 21-09-2020 java
1539 Kth Missing Positive Number 0 ms 38.7 MB 06-01-2021 java
1551 Minimum Operations To Make Array Equal 9 ms 77.3 MB 25-01-2021 java
1557 Minimum Number Of Vertices To Reach All Nodes 9 ms 77.3 MB 25-01-2021 java
1572 Matrix Diagonal Sum 0 ms 40.1 MB 05-09-2020 java
1574 Shortest Subarray To Be Removed To Make Array Sorted 1 ms 57.4 MB 06-09-2020 java
1575 Count All Possible Routes 126 ms 39.2 MB 08-09-2020 java
1582 Special Positions In A Binary Matrix 1 ms 39 MB 15-10-2020 java
1588 Sum Of All Odd Length Subarrays 2 ms 36.8 MB 15-10-2020 java
1603 Design Parking System 8 ms 51.7 MB 02-02-2021 java
1608 Special Array With X Elements Greater Than Or Equal X 8 ms 51.7 MB 02-02-2021 java
1611 Minimum One Bit Operations To Make Integers Zero 8 ms 51.7 MB 02-02-2021 java
1616 Split Two Strings To Make Palindrome 3 ms 39.6 MB 23-06-2021 java
1631 Path With Minimum Effort 8 ms 51.7 MB 02-02-2021 java
1640 Check Array Formation Through Concatenation 8 ms 51.7 MB 02-02-2021 java
1641 Count Sorted Vowel Strings 117 ms 37.7 MB 17-01-2021 java
1642 Furthest Building You Can Reach 117 ms 37.7 MB 17-01-2021 java
1646 Get Maximum In Generated Array 117 ms 37.7 MB 17-01-2021 java
1649 Create Sorted Array Through Instructions 117 ms 37.7 MB 17-01-2021 java
1656 Design An Ordered Stream 117 ms 37.7 MB 17-01-2021 java
1657 Determine If Two Strings Are Close 18 ms 39.9 MB 22-01-2021 java
1658 Minimum Operations To Reduce X To Zero 3 ms 49 MB 14-01-2021 java
1662 Check If Two String Arrays Are Equivalent 6 ms 38.6 MB 08-01-2021 java
1663 Smallest String With A Given Numeric Value 6 ms 38.6 MB 08-01-2021 java
1672 Richest Customer Wealth 0 ms 38.8 MB 02-02-2021 java
1673 Find The Most Competitive Subsequence 26 ms 58.5 MB 21-01-2021 java
1675 Minimize Deviation In Array 78 ms 54.9 MB 30-01-2021 java
1678 Goal Parser Interpretation 1 ms 39.1 MB 18-12-2020 java
1679 Max Number Of K Sum Pairs 33 ms 53.2 MB 18-01-2021 java
1680 Concatenation Of Consecutive Binary Numbers 606 ms 38.6 MB 27-01-2021 java
1684 Count The Number Of Consistent Strings 5 ms 39.5 MB 19-02-2021 java
1689 Partitioning Into Minimum Number Of Deci Binary Numbers 5 ms 39.3 MB 26-05-2021 java
1690 Stone Game Vii 356 ms 14.5 MB 08-06-2021 cpp
1695 Maximum Erasure Value 6 ms 52.6 MB 28-05-2021 java
1696 Jump Game Vi 6 ms 52.6 MB 28-05-2021 java
1704 Determine If String Halves Are Alike 2 ms 37.5 MB 07-04-2021 java
1710 Maximum Units On A Truck 7 ms 38.9 MB 10-02-2021 java
1720 Decode Xored Array 2 ms 53.4 MB 01-02-2021 java
1721 Swapping Nodes In A Linked List 4 ms 65.1 MB 14-03-2021 java
1725 Number Of Rectangles That Can Form The Largest Square 2 ms 53.4 MB 01-02-2021 java
1736 Latest Time By Replacing Hidden Digits 2 ms 53.4 MB 01-02-2021 java
1742 Maximum Number Of Balls In A Box 2 ms 53.4 MB 01-02-2021 java
1743 Restore The Array From Adjacent Pairs 202 ms 258.5 MB 31-01-2021 java
1744 Can You Eat Your Favorite Candy On Your Favorite Day 202 ms 258.5 MB 31-01-2021 java
1745 Palindrome Partitioning Iv 202 ms 258.5 MB 31-01-2021 java
1748 Sum Of Unique Elements 2 ms 53.4 MB 01-02-2021 java
1758 Minimum Changes To Make Alternating Binary String 202 ms 258.5 MB 31-01-2021 java
1769 Minimum Number Of Operations To Move All Balls To Each Box 202 ms 258.5 MB 31-01-2021 java
1773 Count Items Matching A Rule 4 ms 43.4 MB 28-02-2021 java
1774 Closest Dessert Cost 4 ms 43.4 MB 28-02-2021 java
1784 Check If Binary String Has At Most One Segment Of Ones 0 ms 37 MB 11-06-2021 java
1791 Find Center Of Star Graph 49 ms 72.5 MB 11-06-2021 java
1802 Maximum Value At A Given Index In A Bounded Array 3 ms 38.2 MB 02-06-2021 java
1805 Number Of Different Integers In A String 1 ms 37.1 MB 07-06-2021 java
1813 Sentence Similarity Iii 1 ms 37.5 MB 29-05-2021 java
1818 Minimum Absolute Sum Difference 117 ms 57.4 MB 27-05-2021 java
1823 Find The Winner Of The Circular Game 63 ms 38.4 MB 27-05-2021 java
1824 Minimum Sideway Jumps 88 ms 114 MB 02-05-2021 java
1827 Minimum Operations To Make The Array Increasing 3 ms 36.1 MB 28-02-2021 java
1828 Queries On Number Of Points Inside A Circle 3 ms 36.1 MB 28-02-2021 java
1829 Maximum Xor For Each Query 6 ms 131.9 MB 17-04-2021 java
1832 Check If The Sentence Is Pangram 1 ms 37.2 MB 29-05-2021 java
1833 Maximum Ice Cream Bars 32 ms 55.8 MB 29-05-2021 java
1834 Single Threaded Cpu 88 ms 114 MB 02-05-2021 java
1837 Sum Of Digits In Base K 88 ms 114 MB 02-05-2021 java
1838 Frequency Of The Most Frequent Element 88 ms 114 MB 02-05-2021 java
1839 Longest Substring Of All Vowels In Order 72 ms 45.5 MB 06-05-2021 java
1845 Seat Reservation Manager 88 ms 114 MB 02-05-2021 java
1848 Minimum Distance To The Target Element 1 ms 40.8 MB 02-05-2021 java
1849 Splitting A String Into Descending Consecutive Values 0 ms 37.2 MB 02-05-2021 java
1854 Maximum Population Year 6 ms 38.7 MB 03-06-2021 java
1859 Sorting The Sentence 1 ms 37.1 MB 27-05-2021 java
1861 Rotating The Box 15 ms 75.3 MB 22-05-2021 java
1863 Sum Of All Subset Xor Totals 0 ms 37.2 MB 02-05-2021 java
1864 Minimum Number Of Swaps To Make The Binary String Alternating 5 ms 39 MB 16-05-2021 java
1865 Finding Pairs With A Certain Sum 5 ms 39 MB 16-05-2021 java
1869 Longer Contiguous Segments Of Ones Than Zeros 5 ms 39 MB 16-05-2021 java
1870 Minimum Speed To Arrive On Time 5 ms 39 MB 16-05-2021 java
1871 Jump Game Vii 176 ms 67.2 MB 16-05-2021 java
1876 Substrings Of Size Three With Distinct Characters 2 ms 38.6 MB 29-05-2021 java
1877 Minimize Maximum Pair Sum In Array 74 ms 122.3 MB 29-05-2021 java
1879 Minimum Xor Sum Of Two Arrays 16 ms 42.5 MB 29-05-2021 java
1880 Check If Word Equals Summation Of Two Words 177 ms 53.5 MB 23-05-2021 java
1881 Maximum Value After Insertion 177 ms 53.5 MB 23-05-2021 java
1882 Process Tasks Using Servers 177 ms 53.5 MB 23-05-2021 java
1884 Egg Drop With 2 Eggs And N Floors 0 ms 37.3 MB 30-05-2021 java
1886 Determine Whether Matrix Can Be Obtained By Rotation 0 ms 38 MB 06-06-2021 java
1887 Reduction Operations To Make The Array Elements Equal 0 ms 38 MB 06-06-2021 java
1888 Minimum Number Of Flips To Make The Binary String Alternating 0 ms 38 MB 06-06-2021 java
1889 Minimum Space Wasted From Packaging 0 ms 38 MB 06-06-2021 java
1893 Check If All The Integers In A Range Are Covered 3 ms 39.2 MB 12-06-2021 java
1894 Find The Student That Will Replace The Chalk 3 ms 101.4 MB 12-06-2021 java
1895 Largest Magic Square 167 ms 42 MB 12-06-2021 java
1897 Redistribute Characters To Make All Strings Equal 121 ms 131.4 MB 06-06-2021 java
1898 Maximum Number Of Removable Characters 121 ms 131.4 MB 06-06-2021 java
1899 Merge Triplets To Form Target Triplet 121 ms 131.4 MB 06-06-2021 java
1903 Largest Odd Number In String 76 ms 48.5 MB 13-06-2021 java
1904 The Number Of Full Rounds You Have Played 76 ms 48.5 MB 13-06-2021 java
1905 Count Sub Islands 1 ms 37.3 MB 02-06-2021 java
1909 Remove One Element To Make The Array Strictly Increasing 15 ms 38.7 MB 26-06-2021 java
1910 Remove All Occurrences Of A Substring 1 ms 38.9 MB 26-06-2021 java
1911 Maximum Alternating Subsequence Sum 80 ms 121.8 MB 26-06-2021 java
1913 Maximum Product Difference Between Two Pairs 4 ms 52.2 MB 20-06-2021 java
1915 Number Of Wonderful Substrings 40 ms 134.9 MB 20-06-2021 java

About

βœ… Solutions to LeetCode problems most of them are solved in Java, 100% test coverage, runtime beats 100% 🀠 πŸ₯³

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages