-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem_Set_LeetCode
More file actions
168 lines (138 loc) ยท 5.99 KB
/
problem_Set_LeetCode
File metadata and controls
168 lines (138 loc) ยท 5.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
## **๐ Loops (10)**
- ๐ [7] Reverse Integer
- ๐ [9] [Palindrome Number](https://leetcode.com/problems/palindrome-number)
- ๐ข [258] Add Digits
- ๐ [202] Happy Number
- ๐ข [2520] Count the Digits That Divide a Number
- ๐ข [728] Self Dividing Numbers
- โ
[507] Perfect Number
- โฝ [1742] Maximum Number of Balls in a Box
- ๐คข [263] Ugly Number
- ๐ [1342] Number of Steps to Reduce a Number to Zero
---
## **๐ข Easy Problems**
- ๐ [13] Roman to Integer
- ๐ [9] Palindrome Number
- โ๏ธ [326] Power of Three
- ๐ [171] Excel Sheet Column Number
- ๐ [412] Fizz Buzz
- โ [231] Power of Two
- ๐ญ [190] Reverse Bits
- ๐ข [191] Number of 1 Bits
---
## **๐ก Medium Problems**
- ๐งฎ [50] Pow(x, n)
- ๐งฉ [166] Fraction to Recurring Decimal
- โ [227] Basic Calculator II
- ๐ข [12] Integer to Roman
- โ๏ธ [43] Multiply Strings
- ๐ [151] Reverse Words in a String
- ๐ [8] String to Integer (atoi)
- ๐ข [29] Divide Two Integers
---
## **๐ Maps and Vectors (6)**
- ๐ [242] [Valid Anagram](https://leetcode.com/problems/valid-anagram)
- ๐ [2273] [Find Resultant Array After Removing Anagrams](https://leetcode.com/problems/find-resultant-array-after-removing-anagrams)
- ๐ท๏ธ [49] [Group Anagrams](https://leetcode.com/problems/group-anagrams)
- ๐ [448] Find All Numbers Disappeared in an Array
- ๐ [442] Find All Duplicates in an Array
- ๐ญ [645] Set Mismatch
---
## **๐ฆ Arrays (19)**
- ๐ข [204] Count Primes
- โ [27] [Remove Element](https://leetcode.com/problems/remove-element)
- โ [26] [Remove Duplicates from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array)
- โ๏ธ [2460] [Apply Operations to an Array](https://leetcode.com/problems/apply-operations-to-an-array)
- ๐ [283] [Move Zeroes](https://leetcode.com/problems/move-zeroes)
- ๐ [80] [Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii)
- โ [66] [Plus One](https://leetcode.com/problems/plus-one)
- ๐จ [75] [Sort Colors](https://leetcode.com/problems/sort-colors)
- ๐ [58] [Length of Last Word](https://leetcode.com/problems/length-of-last-word)
- ๐ [88] Merge Sorted Array
- โ [169] Majority Element
- ๐ [217] Contains Duplicate
---
## **๐ Recursion (6)**
- ๐ข [50] Pow(x, n)
- ๐ [509] [Fibonacci Number](https://leetcode.com/problems/fibonacci-number)
- ๐ [797] All Paths From Source to Target (Graph)
- ๐ฏ [494] Target Sum
- ๐คนโโ๏ธ [241] Different Ways to Add Parentheses
- ๐ [60] Permutation Sequence
---
## **๐ HashSet (3)**
- ๐ข [705] [Design HashSet](https://leetcode.com/problems/design-hashset)
- ๐ข [706] [Design HashMap](https://leetcode.com/problems/design-hashmap)
- ๐ [771] Jewels and Stones
---
## **๐ Dynamic Programming (9)**
- ๐โโ๏ธ [70] [Climbing Stairs](https://leetcode.com/problems/climbing-stairs)
- ๐ [198] [House Robber](https://leetcode.com/problems/house-robber)
- ๐ [509] [Fibonacci Number](https://leetcode.com/problems/fibonacci-number)
- ๐ [746] [Min Cost Climbing Stairs](https://leetcode.com/problems/min-cost-climbing-stairs)
- ๐ก [213] [House Robber II](https://leetcode.com/problems/house-robber-ii)
- ๐ญ [322] Coin Change
- Problem 121 Best Time to Buy and Sell Stock - LeetCode
- 118. Pascal's Triangle
- 62. Unique Paths
---
## **๐ Prefix Sum (3)**
- ๐ข [1480] [Running Sum of 1D Array](https://leetcode.com/problems/running-sum-of-1d-array)
- โ [53] Maximum Subarray
- ๐ [1413] [Minimum Value to Get Positive Step-by-Step Sum](https://leetcode.com/problems/minimum-value-to-get-positive-step-by-step-sum)
---
## **๐ฆ Stacks and Queues (10)**
- ๐ [225] Implement Stack using Queues
- ๐ [232] Implement Queue using Stacks
- ๐ฝ๏ธ [1700] Number of Students Unable to Eat Lunch
- ๐ [20] Valid Parentheses
- ๐ง [42] [Trapping Rain Water](https://leetcode.com/problems/trapping-rain-water)
- ๐ข [496] Next Greater Element I
- ๐ข [503] Next Greater Element II
- โณ [2073] Time Needed to Buy Tickets
- ๐งฉ [155] Min Stack
- ๐ [739] Daily Temperatures
---
## **๐ Sliding Window (8)**
- ๐ [3] [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters)
- ๐ฏ [209] [Minimum Size Subarray Sum](https://leetcode.com/problems/minimum-size-subarray-sum)
- ๐ [1876] Substrings of Size Three with Distinct Characters
- ๐ [567] Permutation in String
- โ ๏ธ [219] [Contains Duplicate II](https://leetcode.com/problems/contains-duplicate-ii)
- ๐ [643] [Maximum Average Subarray I](https://leetcode.com/problems/maximum-average-subarray-i)
- ๐ท๏ธ [424] Longest Repeating Character Replacement
## **๐ Binary Search (7)**
๐ฏ [704] Binary Search
๐ [278] First Bad Version
โ [35] Search Insert Position
๐ [374] Guess Number Higher or Lower
๐น [852] Peak Index in a Mountain Array
๐ข [162] Find Peak Element
๐ [153] Find Minimum in Rotated Sorted Array
---
##๐ **Linked List (10)**
๐ [206] Reverse Linked List
๐ [21] Merge Two Sorted Lists
๐ [141] Linked List Cycle
๐ [83] Remove Duplicates from Sorted List
๐ข [2] Add Two Numbers
๐ [160] Intersection of Two Linked Lists
๐ฅ [234] Palindrome Linked List
โฉ [19] Remove Nth Node From End of List
๐ [203] Remove Linked List Elements
๐ [24] Swap Nodes in Pairs
##๐ **Doubly Linked List (4)**
๐ [707] Design Linked List
๐ [430] Flatten a Multilevel Doubly Linked List
๐ [146] LRU Cache (Doubly Linked List)
๐ [25] Reverse Nodes in k-Group
---
## ๐ฒ **Trees (8)**
๐ณ [104] Maximum Depth of Binary Tree
๐ฑ [100] Same Tree
๐ [101] Symmetric Tree
๐ก [102] Binary Tree Level Order Traversal
๐ [144] Binary Tree Preorder Traversal
๐ [94] Binary Tree Inorder Traversal
๐ [145] Binary Tree Postorder Traversal
๐ [226] Invert Binary Tree