image
π§ Day 45 - #SDESheetChallenge takeUforward
45 days.
One challenge completed. β
Today's problems:
π Distinct Numbers in Each Subarray
π K-th Largest Element in an Unsorted Array
π Flood Fill Algorithm
This challenge wasn't just about solving 100+ DSA problems.
It taught me to stay consistent, recognize patterns, and enjoy the process of problem-solving.
A huge thanks to takeUforward and Raj Vikramaditya for creating such an amazing roadmap. It made DSA practice structured and pushed me to show up every single day.
This may be the end of the challenge...
but it's definitely not the end of the journey.
On to more LeetCode, more projects, and more learning. π
https://lnkd.in/gjwXUgEY
#SDESheetChallenge #LeetCode #DSA #ProblemSolving #LearningInPublic #SoftwareEngineering
image
π§ Day 44 - #SDESheetChallenge takeUforward
Just one more day left in the challenge.
It's interesting how problems that once felt intimidating now feel familiar because the underlying patterns keep repeating.
Today's problems:
π Binary Tree to Doubly Linked List
π Find Median in a Stream
π Kth Largest Element in a Stream of Running Integers
π‘ Today's takeaway:
The more patterns you learn, the less every new problem feels like a completely new problem.
Day 44 completed. β
Thanks takeUforward and Raj Vikramaditya for the amazing SDE Sheet.
https://lnkd.in/gjwXUgEY
#SDESheetChallenge #LeetCode #DSA #Algorithms #ProblemSolving #LearningInPublic
image
π§ Day 43 - #SDESheetChallenge takeUforward
Today's BST problems brought together almost everything I've learned about trees.
π Two Sum in BST
Used two BST iterators to simulate the two-pointer technique without converting the tree into an array.
π BST Iterator
Implemented an iterator using a stack to return the next smallest element in O(1) amortized time.
π Size of the Largest BST in a Binary Tree
Used a bottom-up DFS where each subtree returned its min, max, and size to identify the largest valid BST.
π Serialize & Deserialize Binary Tree
Converted a tree into a string and reconstructed it back using Level Order Traversal.
π‘ Today's takeaway:
Hard tree problems aren't about learning new algorithms. They're about combining familiar ideas in the right way.
Day 43 completed. β
Thanks takeUforward and Raj Vikramaditya for the amazing SDE Sheet.
https://lnkd.in/gjwXUgEY
#SDESheetChallenge #LeetCode #DSA #BST #BinaryTree #Algorithms #ProblemSolving
image
π§ Day 42 - #SDESheetChallenge takeUforward
Today's BST problems showed how much you can achieve just by using the tree's ordering.
π Floor in a BST
Traversed the tree to find the greatest value less than or equal to the target.
π Ceil in a BST
Found the smallest value greater than or equal to the target using the same BST property.
π Find K-th Smallest Element in BST
Performed an inorder traversal since BST nodes are visited in sorted order.
π K-th Smallest & Largest Element in BST
Extended the inorder idea to efficiently retrieve both extremes.
π‘ Today's takeaway:
The more I practice BSTs, the more I realize that inorder traversal is one of the most powerful tools in the toolkit.
Day 42 completed. β
Thanks takeUforward and Raj Vikramaditya for the amazing SDE Sheet.
https://lnkd.in/gjwXUgEY
#SDESheetChallenge #LeetCode #DSA #BST #BinarySearchTree #Algorithms #ProblemSolving
image
π§ Day 41 - #SDESheetChallenge takeUforward
Today's BST problems reinforced one thing:
The BST property itself solves half the problem.
π Construct a BST from Preorder Traversal
Built the tree by maintaining valid value ranges instead of searching for split points.
π Check if a Tree is a BST
Validated every node using lower and upper bounds during DFS.
π LCA in BST
Used the BST property to move left or right until both nodes diverged.
π Inorder Successor & Predecessor in BST
Traversed the tree while keeping track of the closest larger and smaller values.
π‘ Today's takeaway:
Once you trust the BST property, many "hard" problems become straightforward.
Day 41 completed. β
Thanks takeUforward and Raj Vikramaditya for the amazing SDE Sheet.
https://lnkd.in/gjwXUgEY
#SDESheetChallenge #LeetCode #DSA #BST #BinarySearchTree #Algorithms #ProblemSolving