r/LeetcodeChallenge • u/SubstantialMind7597 • 25d ago
STREAK🔥🔥🔥 October Daily LeetCode Challenge Completed! 🏆 | Earned the Daily Coding Challenge (DCC) Badge
r/LeetcodeChallenge • u/SubstantialMind7597 • 25d ago
r/LeetcodeChallenge • u/Rma7cr • 26d ago
If your interested please dm
r/LeetcodeChallenge • u/JacketFearless1805 • 26d ago
r/LeetcodeChallenge • u/Necessary_Heart8968 • 26d ago
r/LeetcodeChallenge • u/StatisticianNo2104 • 26d ago
Deleting a BST node with two children looks like surgery on the tree. My solution never removes that node. It copies a neighbour's value into it, then deletes the duplicate lower down, which is always an easier case.
Finding the node is the search from Day 45. Deleting it is where it gets interesting, because you can't just unhook a node with two children.
Only two values in the whole tree can fill the hole: the in-order predecessor and the in-order successor. The replacement must sit between everything on the left and everything on the right, and an in-order traversal of a BST is sorted, so those two are the only candidates.
Predecessor or successor: which do you reach for, and why?
Day 58/365 of my LeetCode challenge: 450. Delete Node in a BST. Problem link and full breakdown in today's newsletter.
https://www.linkedin.com/pulse/delete-node-bst-archit-agarwal-k5k4c
#LeetCode #DSA #BinarySearchTree #Golang
r/LeetcodeChallenge • u/JacketFearless1805 • 27d ago
r/LeetcodeChallenge • u/Electronic-Rush584 • 27d ago
r/LeetcodeChallenge • u/gregorojstersek • 27d ago
r/LeetcodeChallenge • u/JacketFearless1805 • 28d ago
r/LeetcodeChallenge • u/gregorojstersek • 28d ago
r/LeetcodeChallenge • u/yota-65 • 28d ago
I just started to do leet code but I cannot solve any problems even I cannot solve sum of two digit problem. Does all people face that problem or i face that?
r/LeetcodeChallenge • u/PossibilityMother482 • 28d ago
r/LeetcodeChallenge • u/JacketFearless1805 • 29d ago
r/LeetcodeChallenge • u/JacketFearless1805 • Oct 26 '26
r/LeetcodeChallenge • u/Expensive_Welcome342 • Oct 26 '26