Skip to content

SocioDroid/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

Leetcode Solutions

My accepted leetcode solutions

ID Title Runtime Memory Timestamp Solution
1 Two Sum 48 ms 39.8 MB 14-06-2020 09:47 java
2 Add Two Numbers 2 ms 38.8 MB 23-05-2021 14:50 java
3 Longest Substring Without Repeating Characters 24 ms 10.9 MB 26-04-2021 12:29 cpp
4 Median Of Two Sorted Arrays 36 ms 90.3 MB 25-04-2021 07:56 cpp
5 Longest Palindromic Substring 80 ms 231.5 MB 19-05-2021 13:41 cpp
8 String To Integer Atoi 0 ms 7 MB 28-05-2021 cpp
11 Container With Most Water 92 ms 59 MB 27-04-2021 07:41 cpp
15 3Sum 68 ms 20 MB 25-04-2021 18:06 cpp
19 Remove Nth Node From End Of List 8 ms 10.6 MB 01-05-2021 09:40 cpp
20 Valid Parentheses 0 ms 6.2 MB 18-04-2021 04:24 cpp
21 Merge Two Sorted Lists 20 ms 14.9 MB 19-04-2021 04:55 cpp
22 Generate Parentheses 0 ms 15.6 MB 20-05-2021 19:30 cpp
23 Merge K Sorted Lists 36 ms 13.3 MB 09-05-2021 17:21 cpp
28 Implement Strstr 88 ms 19 MB 18-05-2021 06:59 python3
31 Next Permutation 4 ms 12.2 MB 20-05-2021 08:21 cpp
33 Search In Rotated Sorted Array 4 ms 11.1 MB 27-04-2021 07:16 cpp
34 Find First And Last Position Of Element In Sorted Array 516 ms 15.1 MB 09-08-2020 python3
37 Sudoku Solver 36 ms 6.5 MB 20-05-2021 11:41 cpp
38 Count And Say 36 ms 6.6 MB 30-05-2021 cpp
42 Trapping Rain Water 0 ms 14.4 MB 25-04-2021 06:48 cpp
48 Rotate Image 4 ms 7.1 MB 27-04-2021 18:22 cpp
49 Group Anagrams 44 ms 20.7 MB 27-04-2021 18:52 cpp
50 Powx N 0 ms 5.9 MB 27-04-2021 09:48 cpp
51 N Queens 120 ms 13.9 MB 19-05-2021 11:00 cpp
52 N Queens Ii 4 ms 6 MB 20-05-2021 20:06 cpp
53 Maximum Subarray 16 ms 13.1 MB 19-04-2021 04:37 cpp
54 Spiral Matrix 0 ms 6.7 MB 27-04-2021 17:46 cpp
56 Merge Intervals 20 ms 14.2 MB 24-04-2021 17:07 cpp
57 Insert Interval 12 ms 17.1 MB 25-04-2021 15:12 cpp
59 Spiral Matrix Ii 0 ms 6.5 MB 28-05-2021 cpp
62 Unique Paths 0 ms 6.4 MB 21-05-2021 19:06 cpp
63 Unique Paths Ii 4 ms 7.6 MB 21-05-2021 18:33 cpp
64 Minimum Path Sum 8 ms 10.2 MB 21-05-2021 09:58 cpp
69 Sqrtx 0 ms 5.9 MB 03-05-2021 10:48 cpp
73 Set Matrix Zeroes 12 ms 13.4 MB 19-04-2021 05:35 cpp
74 Search A 2D Matrix 0 ms 9.5 MB 28-05-2021 cpp
75 Sort Colors 0 ms 8.1 MB 27-05-2021 cpp
76 Minimum Window Substring 108 ms 16.4 MB 15-05-2021 12:57 cpp
78 Subsets 0 ms 7 MB 04-05-2021 10:34 cpp
79 Word Search 132 ms 7.3 MB 11-05-2021 14:29 cpp
81 Search In Rotated Sorted Array Ii 4 ms 14.1 MB 27-04-2021 cpp
84 Largest Rectangle In Histogram 212 ms 66.4 MB 03-06-2021 cpp
88 Merge Sorted Array 4 ms 9.1 MB 31-05-2021 cpp
90 Subsets Ii 8 ms 8.5 MB 07-05-2021 16:10 cpp
94 Binary Tree Inorder Traversal 0 ms 8.3 MB 01-05-2021 07:18 cpp
97 Interleaving String 1852 ms 6.1 MB 02-06-2021 cpp
98 Validate Binary Search Tree 16 ms 21.8 MB 05-05-2021 12:26 cpp
100 Same Tree 4 ms 10.3 MB 01-05-2021 07:52 cpp
102 Binary Tree Level Order Traversal 4 ms 12.5 MB 05-05-2021 06:14 cpp
103 Binary Tree Zigzag Level Order Traversal 4 ms 12 MB 17-05-2021 11:08 cpp
104 Maximum Depth Of Binary Tree 8 ms 19 MB 04-05-2021 08:53 cpp
105 Construct Binary Tree From Preorder And Inorder Traversal 16 ms 25.9 MB 07-05-2021 12:08 cpp
108 Convert Sorted Array To Binary Search Tree 12 ms 21.4 MB 05-05-2021 13:30 cpp
111 Minimum Depth Of Binary Tree 240 ms 144.8 MB 04-05-2021 09:01 cpp
113 Path Sum Ii 56 ms 19.2 MB 08-08-2020 python3
119 Pascals Triangle Ii 24 ms 13.9 MB 12-08-2020 python3
121 Best Time To Buy And Sell Stock 116 ms 93.7 MB 17-04-2021 04:58 cpp
124 Binary Tree Maximum Path Sum 16 ms 28.3 MB 07-05-2021 12:53 cpp
125 Valid Palindrome 4 ms 7.2 MB 25-04-2021 14:57 cpp
128 Longest Consecutive Sequence 16 ms 14.1 MB 17-05-2021 14:39 cpp
133 Clone Graph 8 ms 9.2 MB 14-05-2021 12:18 cpp
143 Reorder List 36 ms 17.7 MB 01-05-2021 07:05 cpp
144 Binary Tree Preorder Traversal 0 ms 8.3 MB 04-05-2021 cpp
164 Maximum Gap 8 ms 8.5 MB 30-05-2021 cpp
171 Excel Sheet Column Number 32 ms 13.6 MB 10-08-2020 python3
189 Rotate Array 36 ms 25 MB 27-05-2021 cpp
191 Number Of 1 Bits 4 ms 5.9 MB 03-05-2021 09:16 cpp
200 Number Of Islands 56 ms 15.4 MB 14-05-2021 11:42 cpp
206 Reverse Linked List 8 ms 8.4 MB 30-04-2021 10:25 cpp
207 Course Schedule 32 ms 14.8 MB 14-05-2021 09:15 cpp
208 Implement Trie Prefix Tree 368 ms 32.9 MB 06-08-2020 python3
210 Course Schedule Ii 40 ms 15 MB 14-05-2021 09:17 cpp
211 Design Add And Search Words Data Structure 132 ms 21.7 MB 06-08-2020 python3
214 Shortest Palindrome 28 ms 7.9 MB 20-05-2021 07:35 cpp
215 Kth Largest Element In An Array 8 ms 10.1 MB 27-05-2021 cpp
217 Contains Duplicate 44 ms 20.8 MB 17-04-2021 04:36 cpp
226 Invert Binary Tree 0 ms 9.6 MB 04-05-2021 10:18 cpp
230 Kth Smallest Element In A Bst 16 ms 24.4 MB 05-05-2021 13:36 cpp
235 Lowest Common Ancestor Of A Binary Search Tree 28 ms 23.3 MB 06-05-2021 17:44 cpp
236 Lowest Common Ancestor Of A Binary Tree 16 ms 17.4 MB 05-05-2021 12:49 cpp
238 Product Of Array Except Self 28 ms 25 MB 18-04-2021 04:54 cpp
242 Valid Anagram 12 ms 7.3 MB 18-04-2021 04:02 cpp
268 Missing Number 20 ms 17.9 MB 28-04-2021 18:46 cpp
273 Integer To English Words 20 ms 14.1 MB 03-05-2021 11:45 python3
274 H Index 32 ms 14 MB 12-08-2020 python3
279 Perfect Squares 376 ms 10 MB 25-05-2021 cpp
283 Move Zeroes 40 ms 8.8 MB 27-05-2021 cpp
287 Find The Duplicate Number 92 ms 61.3 MB 31-05-2021 cpp
295 Find Median From Data Stream 100 ms 46.9 MB 10-05-2021 12:53 cpp
297 Serialize And Deserialize Binary Tree 140 ms 57.9 MB 05-05-2021 07:31 cpp
303 Range Sum Query Immutable 20 ms 17.7 MB 26-05-2021 cpp
304 Range Sum Query 2D Immutable 148 ms 67.1 MB 28-05-2021 cpp
322 Coin Change 92 ms 14.5 MB 21-05-2021 12:19 cpp
328 Odd Even Linked List 12 ms 10.5 MB 30-04-2021 09:42 cpp
338 Counting Bits 4 ms 7.6 MB 03-05-2021 09:40 cpp
342 Power Of Four 28 ms 13.9 MB 04-08-2020 python3
344 Reverse String 28 ms 13.9 MB 04-08-2020 python3
347 Top K Frequent Elements 20 ms 14.1 MB 10-05-2021 06:18 cpp
349 Intersection Of Two Arrays 4 ms 10.4 MB 27-05-2021 cpp
350 Intersection Of Two Arrays Ii 8 ms 10.4 MB 27-05-2021 cpp
371 Sum Of Two Integers 0 ms 6 MB 07-05-2021 10:59 cpp
409 Longest Palindrome 32 ms 12.7 MB 15-08-2020 python
416 Partition Equal Subset Sum 300 ms 11.9 MB 25-05-2021 cpp
417 Pacific Atlantic Water Flow 40 ms 17.3 MB 13-05-2021 12:24 cpp
424 Longest Repeating Character Replacement 4 ms 6.9 MB 27-04-2021 09:09 cpp
435 Non Overlapping Intervals 12 ms 10.2 MB 06-05-2021 18:01 cpp
437 Path Sum Iii 396 ms 14.9 MB 08-08-2020 python3
442 Find All Duplicates In An Array 384 ms 21 MB 07-08-2020 python3
445 Add Two Numbers Ii 52 ms 71.3 MB 30-04-2021 14:46 cpp
450 Delete Node In A Bst 32 ms 32.6 MB 07-05-2021 10:37 cpp
468 Validate Ip Address 28 ms 14 MB 16-06-2020 10:36 python3
474 Ones And Zeroes 80 ms 8.7 MB 22-05-2021 06:00 cpp
485 Max Consecutive Ones 40 ms 36.2 MB 29-05-2021 cpp
494 Target Sum 1168 ms 8.9 MB 25-05-2021 cpp
496 Next Greater Element I 4 ms 8.8 MB 25-04-2021 07:21 cpp
520 Detect Capital 36 ms 13.9 MB 02-08-2020 python3
547 Number Of Provinces 40 ms 14.4 MB 14-05-2021 09:46 cpp
572 Subtree Of Another Tree 20 ms 28.8 MB 05-05-2021 14:37 cpp
617 Merge Two Binary Trees 32 ms 32.8 MB 04-05-2021 09:54 cpp
647 Palindromic Substrings 624 ms 404.4 MB 19-05-2021 18:12 cpp
653 Two Sum Iv Input Is A Bst 44 ms 36.9 MB 06-05-2021 13:09 cpp
680 Valid Palindrome Ii 64 ms 19.7 MB 27-04-2021 09:21 cpp
684 Redundant Connection 32 ms 14 MB 11-05-2021 12:35 cpp
695 Max Area Of Island 40 ms 23.3 MB 03-06-2021 cpp
698 Partition To K Equal Sum Subsets 0 ms 9 MB 22-05-2021 06:59 cpp
700 Search In A Binary Search Tree 24 ms 34.9 MB 05-05-2021 12:54 cpp
703 Kth Largest Element In A Stream 24 ms 19.9 MB 09-05-2021 16:41 cpp
705 Design Hashset 160 ms 18.3 MB 03-08-2020 python3
709 To Lower Case 0 ms 36.7 MB 04-04-2021 10:49 java
721 Accounts Merge 236 ms 68.4 MB 15-05-2021 11:44 cpp
743 Network Delay Time 144 ms 41.6 MB 12-05-2021 20:10 cpp
771 Jewels And Stones 28 ms 14.3 MB 29-03-2021 11:47 python3
785 Is Graph Bipartite 24 ms 13.9 MB 11-05-2021 13:33 cpp
787 Cheapest Flights Within K Stops 40 ms 12.6 MB 17-05-2021 10:51 cpp
885 Spiral Matrix Iii 12 ms 12 MB 29-05-2021 cpp
987 Vertical Order Traversal Of A Binary Tree 28 ms 13.9 MB 08-08-2020 python3
994 Rotting Oranges 44 ms 14 MB 10-08-2020 python3
997 Find The Town Judge 256 ms 126.6 MB 13-05-2021 09:30 cpp
1010 Pairs Of Songs With Total Durations Divisible By 60 20 ms 23.1 MB 14-05-2021 cpp
1038 Binary Search Tree To Greater Sum Tree 4 ms 8.1 MB 07-05-2021 cpp
1047 Remove All Adjacent Duplicates In String 12 ms 10 MB 25-04-2021 06:25 cpp
1108 Defanging An Ip Address 0 ms 37.2 MB 26-03-2021 13:57 java
1143 Longest Common Subsequence 32 ms 13 MB 21-05-2021 06:05 cpp
1235 Maximum Profit In Job Scheduling 152 ms 64.4 MB 06-05-2021 11:37 cpp
1281 Subtract The Product And Sum Of Digits Of An Integer 0 ms 36.1 MB 04-04-2021 10:17 java
1286 Iterator For Combination 44 ms 15.7 MB 14-08-2020 python
1313 Decompress Run Length Encoded List 3 ms 39.3 MB 04-04-2021 10:32 java
1319 Number Of Operations To Make Network Connected 944 ms 63.8 MB 14-05-2021 10:36 cpp
1342 Number Of Steps To Reduce A Number To Zero 0 ms 35.8 MB 30-03-2021 13:57 java
1365 How Many Numbers Are Smaller Than The Current Number 12 ms 39.2 MB 30-03-2021 13:37 java
1389 Create Target Array In The Given Order 4 ms 8.3 MB 19-04-2021 13:57 cpp
1431 Kids With The Greatest Number Of Candies 36 ms 14.4 MB 27-03-2021 07:47 python3
1465 Maximum Area Of A Piece Of Cake After Horizontal And Vertical Cuts 132 ms 32.3 MB 03-06-2021 cpp
1470 Shuffle The Array 0 ms 43 MB 14-06-2020 09:06 java
1480 Running Sum Of 1D Array 4 ms 40.7 MB 14-06-2020 08:58 java
1512 Number Of Good Pairs 1 ms 36.6 MB 30-03-2021 13:00 java
1528 Shuffle String 52 ms 14.3 MB 30-03-2021 14:48 python3
1550 Three Consecutive Odds 92 ms 13.9 MB 16-08-2020 python3
1551 Minimum Operations To Make Array Equal 360 ms 13.8 MB 16-08-2020 python3
1557 Minimum Number Of Vertices To Reach All Nodes 300 ms 105.8 MB 13-05-2021 11:01 cpp
1603 Design Parking System 6 ms 39.5 MB 30-03-2021 13:10 java
1672 Richest Customer Wealth 0 ms 38.5 MB 26-03-2021 14:11 java
1695 Maximum Erasure Value 284 ms 99.4 MB 28-05-2021 cpp
1791 Find Center Of Star Graph 224 ms 77.2 MB 13-05-2021 10:52 cpp
1822 Sign Of The Product Of An Array 8 ms 10.3 MB 19-04-2021 14:10 cpp
1832 Check If The Sentence Is Pangram 4 ms 6.4 MB 19-04-2021 13:42 cpp

This repository was generated using leetcode-cli

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published