LeetCode | GeeksforGeeks
If you like this project, please leave me a star. β
A little Contribution π°Makes You Happy β€οΈ (And me Also π)
dsa-course@upi
Table of Contents
- Time Complexity
- Mathematics
- Bits Manipulation
- Recursion
- Matrix
- Hashing
- String
- Linked List
- Stack
- Queue
- Deque
- Tree
- Binary Search Tree
- Heap
- Graph
- Greedy
- Backtracking
- Dynamic Programming
- Trie
π© π§ π₯
Mathematics
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | Absolute value | Theory | π© Easy | abs() | ||
2 | Celsius To Fahrenheit | Theory | π© Easy | Math | ||
3 | Roots of Quadratic equation | Theory | π© Easy | Math | ||
4 | Factorial Of Number | π© Easy | Math | |||
5 | Count digits in a factorial | π© Easy | Factorial, Math | |||
6 | Series GP | π© Easy | Basic Math | |||
7 | Prime Number | π© Easy | Basic Math | |||
8 | Exactly 3 Divisors | Theory | π© Easy | Basic Math | ||
9 | Addition Under Modulo | Theory | π© Easy | Modulo | ||
10 | Multiplication Under Modulo | Theory | π© Easy | Modulo | ||
11 | Modular Multiplicative Inverse | π© Easy | Modulo | |||
12 | Trailing zeroes in factorial | π§ Medium | Logic | |||
13 | Prime Factors | π§ Medium | Prime |
Bits Manipulation
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | Find first set bit | π© Easy | Bits, Modulo | |||
2 | Rightmost different bit | π© Easy | XOR, Modulo | |||
3 | Check whether K-th bit is set or not | π© Easy | XOR, Modulo | |||
4 | Count total set bits | π§ Medium | RIght shift | |||
5 | Bit Difference | π© Easy | Bits | |||
6 | Number is sparse or not | π© Easy | Bits | |||
7 | Longest Consecutive 1's | π© Easy | Bits | |||
8 | Gray Code | π© Easy | Xor, Right Shift | |||
9 | Gray to Binary equivalent | π© Easy | Xor, Right Shift | |||
10 | Power of 2 | π© Easy | AND | |||
11 | Swap all odd and even bits | π© Easy | OR | |||
12 | Maximum AND Value | π§ Medium | AND |
Recursion
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | Print 1 to n without using loops | π© Easy | Recursion | |||
2 | Sum Of Digits | π© Easy | Recursion | |||
3 | Count Total Digits in a Number | π© Easy | Recursion | |||
4 | Digital Root | π§ Medium | Recursion | |||
5 | Fibonacci Using Recursion | π© Easy | Recursion | |||
6 | Tower Of Hanoi | π§ Medium | Recursion | |||
7 | Josephus problem | π§ Medium | Recursion |
Linked List
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | Convert Binary Number in a Linked List to Integer | Solution | π© Easy | Linked List |
Matrix
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | What is Multidimensional Arrays c++ | Video | π© Easy | Matrix, Array | ||
2 | Sum of upper and lower triangles | Solution | π© Easy | Matrix, Array | ||
3 | Transpose of Matrix | Solution | π© Easy | Matrix, Array | ||
4 | Rotate by 90 degree | Solution | π© Easy | Matrix, Array | ||
5 | Multiply the matrices | c++ | Solution | π© Easy | Matrix, Array | |
6 | Spirally traversing a matrix | c++ | Solution | π§ Medium | Matrix, Array | |
7 | Interchanging the rows of a Matrix | c++ | Solution | π© Easy | Matrix, Array | |
8 | Matrix Interchange | Practice | π© Easy | Matrix, Array | ||
9 | Search in a row-column sorted Matrix | c++ | Solution | π§ Medium | Matrix, Array | |
10 | Boolean Matrix | c++ | Solution | π§ Medium | Matrix, Array |
Hashing
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | What is Hashing Data structure | Theory | π© Easy | Hashing | ||
2 | Code of Hashing in c++ | c++ | Solution | π© Easy | Hashing | |
3 | Direct Access Table | Theory | π© Easy | Hash | ||
4 | What is Hash Function and collision | Theory | π© Easy | Hash | ||
5 | What is chaining in collision handling | Theory | π© Easy | Hashing | ||
6 | What is unordered_set | c++ | Theory | π© Easy | Hash | |
7 | What is unordered_map | c++ | GFG | Theory | π© Easy | Hash |
8 | Non Repeating Element | c++ | Solution | π© Easy | Hashing | |
9 | First Repeating Element | c++ | Solution | π© Easy | Hashing | |
10 | Union of two arrays | Practice | π© Easy | Hashing | ||
11 | Intersection of Two Arrays | c++ | Solution | π© Easy | unordered_set | |
12 | Key Pair | c++ | Solution | π© Easy | unordered_map | |
13 | Subarray with sum 0 | c++ | Solution | π§ Medium | unordered_set | |
14 | Winner of an election | c++ | Solution | π© Easy | unordered_map | |
15 | Pairs with Positive Negative values | c++ | Solution | π© Easy | map, Vector | |
16 | Print Anagrams Together / Group Anagrams | c++ | Solution | π§ Medium | unordered_map, string | |
17 | Relative Sort Array / Sort an array according to the other | c++ | Solution | π§ Medium | Map | |
18 | Custom Sort String | c++ | Solution | π§ Medium | map | |
19 | Sort Array by Increasing Frequency | c++ | Solution | π© Easy | map, Lambda | |
20 | Longest Consecutive Sequence | Practice | π§ Medium | map |
String
Stack
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 |
Queue
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 |
Deque
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 |
Tree
Binary Search Tree
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 |
Graph
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 |
Greedy
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 |
Backtracking
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 |
Dynamic Programming
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | Fibonacci Numbers - Top Down DP | π© Easy | Recursion |
Trie
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | Insert and Search | π§ Medium | Trie |
Connect with us ~Prince
Do star, fork and share the repo to show your support, it would help others too!
Let me know your views on the repository or any changes or improvements at LinkedIn, Telegram
β€οΈ Thank you all for Forking this repository β€οΈ