Skip to content

SumanSudhir/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

No. Problems My Solution Related Topic Date
1 Two Sum Solution Array, Hash Table _
2 Add Two Numbers Solution Linked List, Math
3 Longest Substring Without Repeating Characters Solution Hash Table, Two Pointers, String, Sliding Window
4 Median of Two Sorted Arrays Solution Array, Binary Search, Divide and Conquer
6 ZigZag Conversion Solution String
7 Reverse Integer Solution Math
9 Palindrome Number Solution Math
10 Regular Expression Matching Solution String, Dynamic Programming, Backtracking
11 Container With Most Water Solution Array, Two Pointers
12 Integer to Roman Solution Math, String
13 Roman to Integer Solution Math, String
14 Longest Common Prefix Solution String
15 3Sum Solution Array, Two Pointers
16 3Sum Closest Solution Array, Two Pointers
18 4Sum Solution
19 Remove Nth Node From End of List Solution
20 Valid Parentheses Solution
21 Merge Two Sorted Lists Solution
24 Swap Nodes in Pairs Solution
26 Remove Duplicates from Sorted Array Solution
27 Remove Element Solution
28 Implement strStr() Solution
29 Divide Two Integers Solution
31 Next Permutation Solution
33 Search in Rotated Sorted Array Solution Array, Binary Search 7th April'20
34 Find First and Last Position of Element in Sorted Array Solution Array, Binary Search 7th April'20
35 Search Insert Position Solution Array, Binary Search 7th April'20
36 Valid Sudoku Solution Hash Table 8th April'20
38 Count and Say Solution String 9th April'20
39 Combination Sum Solution Array, Backtracking 9th April'20
40 Combination Sum II Solution Array Backtracking 9th April'20
43 Multiply Strings Solution Math String 10th April'20
46 Permutations Solution Backtracking 11th April'20
48 Rotate Image Solution Math 14th April'20
49 Group Anagrams Solution Hash Table, String 22nd April
53 Maximum Subarray Solution Array, Divide and Conquer, Dynamic Programming 10th April'20
54 Spiral Matrix Solution Array 24th April'20
55 Jump Game Solution Array, Greedy 24th April'20
56 Merge Intervals Solution Array, Sort 24th April'20
58 Length of Last Word Solution String 24th April'20
59 Spiral Matrix II Solution Array 25th April'20
61 Rotate List Solution Linked List, Two Pointers 26th April'20
62 Unique Paths Solution Array, Dynamic Programming 26th April'20
63 Unique Paths II Solution Array, Dynamic Programming 27th April'20
64 Minimum Path Sum Solution Array, Dynamic Programming 27th April'20
66 Plus One Solution Array 27th April'20
67 Add Binary Solution String, Math 28th April'20
69 Sqrt(x) Solution Math, Binary Search 28th April'20
70 Climbing Stairs Solution Dynamic Programming 30th April'20
73 Set Matrix Zeroes Solution Array 30th April'20
74 Search a 2D Matrix Solution Array, Binary Search 30th April'20
75 Sort Colors Solution Array, Two Pointers, Sort 2nd May'20
77 Combinations Solution Backtracking 5th May'20
78 Subsets Solution Array, Backtracking, Bit Manipulation 9th May'20
80 Remove Duplicates from Sorted Array II Solution Array, Two Pointers 12th May'20
81 Search in Rotated Sorted Array II Solution Array, Binary Search 16th May'20
83 Remove Duplicates from Sorted List Solution Linked List 16th May'20
94 Binary Tree Inorder Traversal Solution Tree
98 Validate Binary Search Tree Solution Tree, Depth-first Search 5th April'20
100 Same Tree Solution Tree, Depth-first Search 6th April'20
101 Symmetric Tree Solution Tree, Depth-first Search, Breadth-first Search 23rd May'20
102 Binary Tree Level Order Traversal Solution Tree, Breadth-first Search 25th May'20
103 Binary Tree Zigzag Level Order Traversal Solution Tree, Stack, Breadth-first Search 26th May'20
104 Maximum Depth of Binary Tree Solution Tree, Breadth-first Search 26th May'20
107 Binary Tree Level Order Traversal II Solution Tree, Breadth-first Search 28th May'20
108 Convert Sorted Array to Binary Search Tree Solution Tree, Depth-first Search 28th May'20
114 Flatten Binary Tree to Linked List Solution Tree, Depth-first Search
125 Valid Palindrome Solution Two Pointers, String 3rd August'20
202 Happy Number Solution Hash Table, Math 30th April'20
342 Power of Four Solution Bit Manupulation 4th August'20
437 Path Sum III Solution Tree 9th August'20
520 Detect Capital Solution String 1st August'20
705 Design HashSet Solution Hash Table, Design 2nd August'20
1450 Number of Students Doing Homework at a Given Time Solution Array 17th May'20
1451 Rearrange Words in a Sentence Solution String, Sort 17th May'20

TODO

No. Problems My Solution Related Topic Date
5 Longest Palindromic Substring to be added
8 String to Integer (atoi) to be added
17 Letter Combinations of a Phone Number to be added
22 Generate Parentheses to be added
23 Merge k Sorted Lists to be added
25 Reverse Nodes in k-Group to be added
30 Substring with Concatenation of All Words to be added
32
37
95 Unique Binary Search Trees II to be added Tree
41
42

About

My C++ solution for LeetCode problems

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages