Vijay Pagare

DSA - 2 new (sliding window, linked list)

🧠 Today’s Problems

76. Minimum Window Substring

Insight:
Use a hashmap to track the frequency of characters in t. Expand the window until all required characters are covered. Once valid, try shrinking the window from the left to find the minimum substring.

Key ideas:

Important Learning:
When encountering extra characters beyond required frequency, they should NOT affect the valid count. This means:

Comment:
I had ~95% of the logic clear.


206. Reverse Linked List

Insight:
Classic pointer manipulation problem.

Pattern:

next = curr.next
curr.next = prev
prev = curr
curr = next

Comment:
Conceptually straightforward, but execution wasn’t as fast as expected.
Had to pause and think through pointer transitions.


⚡ Key Takeaways


🚀 Good Momentum

Feels like it’s really hard NOT to crack FAANG with a year’s grind.

#Dsa #Leetcode