Day 17 of my #DSAJourney π
Solved LeetCode 34 β
The most important concept I learned: left and right are boundaries of the search space, not directions. π§
Slowly improving my problem-solving and understanding the βwhyβ behind every step. πͺ
#LeetCode#DSA#BinarySearch
π Day 16 of my DSA Journey
Today I solved 2 Binary Search problems:
πΉ LeetCode 852 β Peak Index in a Mountain Array ποΈ
πΉ LeetCode 153 β Find Minimum in Rotated Sorted Array π
#DSA#DSAJourney#LeetCode#BinarySearch#ProblemSolving
π Day 15 of my DSA Journey
Solved LeetCode 560 β Subarray Sum Equals K β
π Approach: Prefix Sum + HashMap
β±οΈ Time: O(n)
πΎ Space: O(n)
One step closer to mastering DSA, one problem at a time. πͺπ₯
#DSA#DSAJourney#LeetCode#Coding#CPlusPlus#ProblemSolving
Day 14 of my DSA Journey π
Today I solved:
πΉ 21. Merge Two Sorted Lists β Recursion π
πΉ 138. Copy List with Random Pointer β HashMap + Deep Copy π§
Two more problems solved, two more concepts understood! πͺπ₯
#DSA#LeetCode#100DaysOfCode#CodingJourney#Cpp
Day 13 of my DSA Journey π
Today I solved:
πΉ 141. Linked List Cycle β Slow & Fast Pointers π’π
πΉ 142. Linked List Cycle II β Floydβs Cycle Detection π
Understanding pointers better, one problem at a time! πͺ
#DSA#LeetCode#100DaysOfCode#CodingJourney#Cpp
Day 12 of my DSA Journey π
Today I solved:
πΉ 206. Reverse Linked List β 3-pointer approach π
πΉ 876. Middle of the Linked List β Slow & Fast pointers π’π
Learning one concept at a time and getting better every day! πͺ
#DSA#LeetCode#100DaysOfCode#CodingJourney#Cpp
Day 10 of my DSA Journey π
Today I solved 2 LeetCode problems:
πΉ 54. Spiral Matrix β Boundary Traversal
πΉ 240. Search a 2D Matrix II β Top-Right Search
Learning step by step, one problem at a time. πͺ
#DSA#LeetCode#100DaysOfCode#CodingJourney#Cpp
Day 10 of #DSACodingChallenge π
Solved LeetCode 2596 β Check Knight Tour Configuration.
Learned how recursion validates each knight move by exploring all 8 possible directions and ensuring the sequence follows the expected path.
#LeetCode#CPP#DSA#Recursion
Day 9 of #DSACodingChallenge π
Solved LeetCode 131 β Palindrome Partitioning.
Learned how Backtracking explores every possible partition, checks whether each substring is a palindrome, and backtracks to find all valid palindrome partitions.
#LeetCode#Backtracking#Recursion
Day 8 of #DSACodingChallenge π
Solved LeetCode 39 β Combination Sum.
Learned how Backtracking explores all possible combinations by choosing an element, recursively exploring, and undoing the choice to try different paths.
#LeetCode#CPP#DSA#Backtracking#Recursion
Day 6 of #DSACodingChallenge π
Solved LeetCode 37 β Sudoku Solver.
Learned how Backtracking fills the Sudoku grid by trying digits, validating each move, and backtracking whenever a choice leads to a dead end.
#LeetCode#CPP#DSA#Backtracking#Recursion
Day 5 of #DSACodingChallenge π
Solved LeetCode 51 β N-Queens
and LeetCode 7 β Reverse Integer.
Learned Backtracking by placing and removing queens to explore all valid solutions, and handled integer overflow while reversing an integer.
#LeetCode#DSA#Backtracking#Recursion
Day 4 of #DSACodingChallenge π
Solved LeetCode 287 β Find the Duplicate Number
Solved Leetcode 15 β 3Sum, and 18 β 4Sum.
Learned Floyd's Slow & Fast Pointer technique to detect the duplicate along with mastering Two Pointers and Sorting for 3Sum & 4Sum.
LeetCode #CPP#DSA
Day 2 of #DSACodingChallenge
Solved LeetCode 167 β Two Sum II.
Learned how the Two Pointer approach efficiently finds the target pair in a sorted array with O(n) time and O(1) space, making it much better than the brute-force approach.π
#LeetCode#CPP#DSA#TwoPointers
Day 2 of #DSACodingChallenge π
Solved LeetCode 1 β Two Sum (Hashing)
Learned how HashMap stores previously seen values, allowing us to find the required pair in O(n) time instead of using the O(nΒ²) brute-force approach.
#LeetCode#DSA#CPP#HashMap#100DaysOfCode
Every expert was once a beginner.
I've never posted anything before, but today I'm starting something different. I'll document my DSA journey from scratch, stay consistent, and keep learning in public.
Day 1 starts now. π
#DSA#BuildInPublic#Programming#LeetCode