Day 26 #SDESheetChallenge
Solved:
Next Smaller Element
LRU Cache
LFU Cache
Focused on monotonic stacks and cache design. Implemented LRU & LFU caches with O(1) average get() and put() operations using HashMaps, linked lists, and frequency tracking.
#DSA#Java#Algorithms
Day 25 #SDESheetChallenge
Solved:
Balanced Parenthesis
Next Greater Element
Sort a Stack (Recursion)
Key takeaway: Learned how stacks power expression validation, monotonic stack patterns, and recursion-based problem solving.
#DSA#Java#Algorithms#CodingInterview
Day 24 #SDESheetChallenge
Solved 4 implementation-based problems:
• Stack using Arrays
• Queue using Arrays
• Stack using Queue
• Queue using Stack
Focused on mastering LIFO, FIFO, and data structure design fundamentals.
#DSA#Java#Algorithms#CodingInterview
Day 23 #SDESheetChallenge
Solved:
• Find Median from Data Stream
• Merge K Sorted Arrays
• Top K Frequent Elements
Key takeaway: Heaps are extremely effective for dynamic datasets, ranking problems, and processing top-k queries efficiently without full sorting.
#DSA#Java
Day 22 #SDESheetChallenge
Solved:
• Implement Max Heap
• K-th Largest Element in an Array
• Maximum Sum Combination
Key takeaway: The right data structure can dramatically improve both efficiency and simplicity. Today's focus was on Heaps and Priority Queues.
#DSA#Java
Day 21 #SDESheetChallenge
Solved:
• Median of Two Sorted Arrays
• Aggressive Cows
• Book Allocation
• Kth Element of Two Sorted Arrays
Today's focus: Binary Search on Answer.
Building stronger pattern recognition with every problem.
#DSA#Java#Algorithms
Day 20 #SDESheetChallenge
Solved:
• Find Nth Root of a Number
• Single Element in Sorted Array
• Search in Rotated Sorted Array
• Matrix Median
Learned:
• Binary Search on Answers
• Search Space Reduction
• Sorted Properties
Matrix Median was today's highlight.
#DSA
Day 19 #SDESheetChallenge
Solved:
• M Coloring Problem
• Rat in a Maze
• Word Break
Learned:
• Backtracking
• Graph Coloring
• Dynamic Programming
Word Break was today's highlight.
#DSA#DP#Backtracking#Java
Day 18 #SDESheetChallenge
Solved:
• Permutations of a String
• N-Queens
• Sudoku Solver
Learned:
• Backtracking
• Constraint Propagation
• State Space Search
Sudoku Solver was today's highlight.
#DSA#Backtracking#Java
Day 16 #SDESheetChallenge
Solved:
• Assign Cookies
• Subset Sum Equals Target
• Subsets II
• Minimum Coins
Subsets II was the standout problem today—handling duplicates efficiently in backtracking was the key insight.
#DSA#DP#Backtracking#Java
Day 14 #SDESheetChallenge
Solved:
• Remove Duplicates from Sorted Array
• Maximum Consecutive Ones
• Trapping Rain Water
Learned:
Two Pointer Technique
Array Traversal Patterns
Optimal Water Trapping using Two Pointers
Trapping Rain Water was the highlight today.
#DSA
Day 13 #SDESheetChallenge
Solved:
• Clone LL with Random Pointer
• 3Sum
• Rotate a Linked List
Learned:
- Deep Copy without extra space
- Sorting + Two Pointers
- Circular Linked List Manipulation
3 more problems done.
Thanks @striver_79@takeUforward#DSA#Java
Day 12 #SDESheetChallenge
Solved:
• Palindrome Linked List
• Starting Point of Loop in LL
• Flattening of Linked List
Learned:
Fast & Slow Pointers
Floyd's Cycle Detection
Recursive Merge Technique
Thanks @striver_79@takeUforward#DSA#Java
Day 11 #SDESheetChallenge
Detect Cycle in LL Intersection of LLs
Reverse Nodes in K Groups
Learned:
Floyd's Algorithm,
Two Pointers,
K-Group Reversal.
3 more problems done.
Thanks @striver_79@takeUforward#DSA#Java
Day 10 of #SDESheetChallenge
Solved:
Add two numbers in Linked List,
Remove Nth node from the back,
Delete Node in a Linked List O(1)
Learned:
Linked List Arithmetic,
Two Pointers,
In-place Deletion
3 problems done. Consistency > Motivation.
Thanks @striver_79@takeUforward
Day 9 of #SDESheetChallenge
Solved:
Reverse a LL,
Middle of Linked List,
Merge two Sorted Lists
Learned:
Linked List Reversal,
Fast-Slow Pointer,
Two Pointer Merge
3 problems done. Consistency > Motivation.
Thanks @striver_79@takeUforward