My accepted leetcode solutions
ID | Title | Runtime | Memory | Timestamp | Solution |
---|---|---|---|---|---|
1 | Two Sum | 44 ms | 8.9 MB | 09-02-2021 | cpp |
2 | Add Two Numbers | 24 ms | 71.3 MB | 09-02-2021 | cpp |
3 | Longest Substring Without Repeating Characters | 4 ms | 8.3 MB | 10-02-2021 | cpp |
4 | Median Of Two Sorted Arrays | 48 ms | 90.4 MB | 10-02-2021 | cpp |
11 | Container With Most Water | 744 ms | 27.9 MB | 19-03-2021 | python3 |
15 | 3Sum | 88 ms | 23.7 MB | 19-03-2021 | cpp |
19 | Remove Nth Node From End Of List | 4 ms | 10.6 MB | 12-04-2021 | cpp |
20 | Valid Parentheses | 28 ms | 14.3 MB | 16-03-2021 | python3 |
21 | Merge Two Sorted Lists | 8 ms | 14.9 MB | 09-04-2021 | cpp |
22 | Generate Parentheses | 4 ms | 13.5 MB | 25-05-2021 | cpp |
23 | Merge K Sorted Lists | 24 ms | 13.3 MB | 23-04-2021 | cpp |
25 | Reverse Nodes In K Group | 16 ms | 11.5 MB | 14-01-2021 | cpp |
28 | Implement Strstr | 4 ms | 6.8 MB | 23-05-2021 | cpp |
31 | Next Permutation | 4 ms | 12.1 MB | 26-02-2021 | cpp |
33 | Search In Rotated Sorted Array | 4 ms | 11.1 MB | 26-03-2021 | cpp |
37 | Sudoku Solver | 20 ms | 6.5 MB | 25-05-2021 | cpp |
41 | First Missing Positive | 20 ms | 6.5 MB | 25-05-2021 | cpp |
42 | Trapping Rain Water | 8 ms | 14.1 MB | 10-03-2021 | cpp |
48 | Rotate Image | 0 ms | 7.1 MB | 22-03-2021 | cpp |
49 | Group Anagrams | 32 ms | 20.5 MB | 31-03-2021 | cpp |
50 | Powx N | 0 ms | 5.8 MB | 10-04-2021 | cpp |
53 | Maximum Subarray | 64 ms | 14.8 MB | 16-03-2021 | python3 |
54 | Spiral Matrix | 0 ms | 6.9 MB | 02-03-2021 | cpp |
56 | Merge Intervals | 36 ms | 14.2 MB | 23-02-2021 | cpp |
57 | Insert Interval | 72 ms | 17.5 MB | 19-03-2021 | python3 |
69 | Sqrtx | 72 ms | 17.5 MB | 19-03-2021 | python3 |
73 | Set Matrix Zeroes | 136 ms | 14.9 MB | 20-03-2021 | python3 |
75 | Sort Colors | 4 ms | 8.3 MB | 18-02-2021 | cpp |
76 | Minimum Window Substring | 16 ms | 7.7 MB | 06-04-2021 | cpp |
78 | Subsets | 0 ms | 7.1 MB | 01-04-2021 | cpp |
79 | Word Search | 140 ms | 10.8 MB | 23-03-2021 | cpp |
90 | Subsets Ii | 8 ms | 8.6 MB | 02-04-2021 | cpp |
94 | Binary Tree Inorder Traversal | 0 ms | 10.3 MB | 16-04-2021 | cpp |
98 | Validate Binary Search Tree | 8 ms | 21.6 MB | 19-04-2021 | cpp |
100 | Same Tree | 0 ms | 10 MB | 17-04-2021 | cpp |
102 | Binary Tree Level Order Traversal | 4 ms | 12.5 MB | 16-04-2021 | cpp |
104 | Maximum Depth Of Binary Tree | 12 ms | 18.8 MB | 17-04-2021 | cpp |
105 | Construct Binary Tree From Preorder And Inorder Traversal | 20 ms | 25.8 MB | 18-04-2021 | cpp |
108 | Convert Sorted Array To Binary Search Tree | 20 ms | 21.5 MB | 19-04-2021 | cpp |
111 | Minimum Depth Of Binary Tree | 240 ms | 144.8 MB | 17-04-2021 | cpp |
121 | Best Time To Buy And Sell Stock | 112 ms | 93.3 MB | 28-02-2021 | cpp |
123 | Best Time To Buy And Sell Stock Iii | 116 ms | 75.6 MB | 23-01-2021 | cpp |
125 | Valid Palindrome | 8 ms | 7.2 MB | 30-03-2021 | cpp |
130 | Surrounded Regions | 12 ms | 10 MB | 22-05-2021 | cpp |
139 | Word Break | 48 ms | 13 MB | 28-01-2021 | cpp |
143 | Reorder List | 36 ms | 18.4 MB | 15-04-2021 | cpp |
153 | Find Minimum In Rotated Sorted Array | 0 ms | 10.1 MB | 26-03-2021 | cpp |
169 | Majority Element | 16 ms | 19.5 MB | 11-02-2021 | cpp |
189 | Rotate Array | 212 ms | 38.8 MB | 11-02-2021 | java |
191 | Number Of 1 Bits | 0 ms | 5.8 MB | 05-04-2021 | cpp |
200 | Number Of Islands | 16 ms | 9.5 MB | 20-05-2021 | cpp |
206 | Reverse Linked List | 8 ms | 8.6 MB | 14-01-2021 | cpp |
207 | Course Schedule | 40 ms | 13.3 MB | 21-05-2021 | cpp |
210 | Course Schedule Ii | 16 ms | 14.1 MB | 22-05-2021 | cpp |
215 | Kth Largest Element In An Array | 108 ms | 10 MB | 11-02-2021 | cpp |
217 | Contains Duplicate | 120 ms | 20.3 MB | 15-03-2021 | python3 |
226 | Invert Binary Tree | 4 ms | 9.5 MB | 17-04-2021 | cpp |
230 | Kth Smallest Element In A Bst | 132 ms | 523.4 MB | 20-04-2021 | cpp |
235 | Lowest Common Ancestor Of A Binary Search Tree | 28 ms | 23.2 MB | 20-04-2021 | cpp |
236 | Lowest Common Ancestor Of A Binary Tree | 8 ms | 14.1 MB | 17-04-2021 | cpp |
238 | Product Of Array Except Self | 252 ms | 22.3 MB | 17-03-2021 | python3 |
242 | Valid Anagram | 48 ms | 14.5 MB | 15-03-2021 | python3 |
268 | Missing Number | 12 ms | 17.9 MB | 03-04-2021 | cpp |
273 | Integer To English Words | 0 ms | 7.1 MB | 07-04-2021 | cpp |
279 | Perfect Squares | 84 ms | 5.9 MB | 25-01-2021 | cpp |
283 | Move Zeroes | 4 ms | 9.1 MB | 12-02-2021 | cpp |
287 | Find The Duplicate Number | 4 ms | 10.9 MB | 19-02-2021 | cpp |
295 | Find Median From Data Stream | 1024 ms | 46.8 MB | 23-04-2021 | cpp |
297 | Serialize And Deserialize Binary Tree | 112 ms | 36.8 MB | 17-04-2021 | cpp |
300 | Longest Increasing Subsequence | 200 ms | 10.4 MB | 27-01-2021 | cpp |
328 | Odd Even Linked List | 12 ms | 10.5 MB | 09-04-2021 | cpp |
338 | Counting Bits | 8 ms | 8.5 MB | 05-04-2021 | cpp |
347 | Top K Frequent Elements | 16 ms | 13.8 MB | 30-04-2021 | cpp |
371 | Sum Of Two Integers | 0 ms | 5.9 MB | 03-04-2021 | cpp |
376 | Wiggle Subsequence | 0 ms | 7 MB | 16-01-2021 | cpp |
417 | Pacific Atlantic Water Flow | 44 ms | 17.5 MB | 17-05-2021 | cpp |
424 | Longest Repeating Character Replacement | 12 ms | 7 MB | 30-03-2021 | cpp |
435 | Non Overlapping Intervals | 68 ms | 17.4 MB | 20-03-2021 | python3 |
445 | Add Two Numbers Ii | 44 ms | 71 MB | 10-04-2021 | cpp |
450 | Delete Node In A Bst | 32 ms | 32.7 MB | 20-04-2021 | cpp |
496 | Next Greater Element I | 8 ms | 9 MB | 24-03-2021 | cpp |
509 | Fibonacci Number | 0 ms | 5.8 MB | 22-01-2021 | cpp |
518 | Coin Change 2 | 20 ms | 6.8 MB | 24-01-2021 | cpp |
543 | Diameter Of Binary Tree | 4 ms | 20.7 MB | 16-04-2021 | cpp |
547 | Number Of Provinces | 24 ms | 13.6 MB | 22-05-2021 | cpp |
572 | Subtree Of Another Tree | 24 ms | 29.1 MB | 19-04-2021 | cpp |
617 | Merge Two Binary Trees | 40 ms | 32.9 MB | 17-04-2021 | cpp |
653 | Two Sum Iv Input Is A Bst | 228 ms | 736.4 MB | 20-04-2021 | cpp |
662 | Maximum Width Of Binary Tree | 8 ms | 17.2 MB | 20-05-2021 | cpp |
680 | Valid Palindrome Ii | 60 ms | 24 MB | 30-03-2021 | cpp |
684 | Redundant Connection | 32 ms | 10.1 MB | 02-05-2021 | cpp |
700 | Search In A Binary Search Tree | 72 ms | 34.7 MB | 19-04-2021 | cpp |
703 | Kth Largest Element In A Stream | 36 ms | 19.9 MB | 22-04-2021 | cpp |
721 | Accounts Merge | 1044 ms | 46.8 MB | 21-05-2021 | cpp |
743 | Network Delay Time | 112 ms | 40 MB | 14-05-2021 | cpp |
785 | Is Graph Bipartite | 24 ms | 13.6 MB | 03-05-2021 | cpp |
797 | All Paths From Source To Target | 12 ms | 10.7 MB | 16-05-2021 | cpp |
938 | Range Sum Of Bst | 108 ms | 64.7 MB | 19-04-2021 | cpp |
997 | Find The Town Judge | 200 ms | 69.8 MB | 16-05-2021 | cpp |
1038 | Binary Search Tree To Greater Sum Tree | 0 ms | 8.1 MB | 22-04-2021 | cpp |
1047 | Remove All Adjacent Duplicates In String | 16 ms | 10.2 MB | 24-03-2021 | cpp |
1143 | Longest Common Subsequence | 12 ms | 10.6 MB | 27-01-2021 | cpp |
1392 | Longest Happy Prefix | 12 ms | 10.6 MB | 27-01-2021 | cpp |
1557 | Minimum Number Of Vertices To Reach All Nodes | 300 ms | 106.7 MB | 16-05-2021 | cpp |
1631 | Path With Minimum Effort | 300 ms | 106.7 MB | 16-05-2021 | cpp |
1791 | Find Center Of Star Graph | 280 ms | 26.4 MB | 14-05-2021 | cpp |