- Stack
- Arrays
- Two Pointers
- Binary Search
- Sliding Window
- Linked List
- Bit Manipulation
- Trees
- Greedy
SL No. | Question | Solution |
---|---|---|
1 | Valid Parenthesis | valid.cpp |
2 | Min Stack | minstack.cpp |
3 | Evaluate Reverse Polish Notation | postfixeval.cpp |
4 | Generate Parentheses | genParen.cpp |
5 | Daily Temperature | dailyTemp.cpp |
6 | Car Fleet | carfleet.cpp |
SL No. | Question | Solution |
---|---|---|
1 | Contains Duplicate | duplicate.cpp |
2 | Valid Anagrams | anagram.cpp |
3 | Two Sum | twosum.cpp |
4 | Group Anagrams | groupAnagram.coo |
5 | Top K Frequent Elements | topkele.cpp |
6 | Product of Array Except Self | pdtOfArr.cpp |
7 | Valid Sudoku | sudoku.cpp |
SL No. | Question | Solution |
---|---|---|
1 | Valid Palindrome | valpal.cpp |
2 | Two Sum II Input Array is Sorted | twoSumII.cpp |
Two Sum II Input Array is Sorted | maxwater.cpp |
SL No. | Question | Solution |
---|---|---|
1 | Binary Search | search.cpp |
2 | Search a 2D Matrix | search2D.cpp |
SL No. | Question | Solution |
---|---|---|
1 | Best Time to Buy and Sell Stock | search.cpp |
Longest Substring Without Repeating Characters | search.cpp | |
2 | Longest Repeating Characters | search2D.cpp |
SL No. | Question | Solution |
---|---|---|
1 | Binary Search | search.cpp |
2 | Search a 2D Matrix | search2D.cpp |
SL No. | Question | Solution |
---|---|---|
1 | Single Number | singlenum.cpp |
2 | Number of 1 bits | search2D.cpp |
SL No. | Question | Solution |
---|---|---|
1 | Invert Binary Tree | invertbintree.cpp |
SL No. | Question | Solution |
---|---|---|
1 | Maximum Subarray | maxsubarray.py |
2 | Valid Parenthesis String | valPalStr.py |
SL No. | Question | Solution | Topic |
---|---|---|---|
1 | Merge Sorted Array | mergeArrays.cpp | Array/String |
2 | Remove Element | remove.cpp | Array/String |
3 | Remove duplicates from sorted array | remove.cpp | Array/String |
4 | Remove duplicates from sorted array - II | remove.cpp | Array/String |
5 | Majority Element | remove.cpp | Array/String |
6 | Rotate array | remove.cpp | Array/String |
7 | Best Time to Buy and Sell Stock | remove.cpp | Array/String |
Merge Intervals | remove.cpp | Intervals | |
Insert Interval | remove.cpp | Interval | |
Invert Binary Tree | invertbintree.cpp | Binary Tree General | |
Same Tree | sametree.cpp | Binary Tree General | |
Sum Root to Leaf Numbers | sumroottolead.cpp | Binary Tree General | |
Maximum Subarray | maxsubarray.py | Kadane's Algorithm |