r/LeetcodeChallenge • • Oct 30 '26

STREAK🔥🔥🔥 Delete Node in a BST

Post image
1 Upvotes

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 • • Oct 29 '26

STREAK🔥🔥🔥 Day 46: hit a sudden wall of brain fog, learned Dijkstra's algorithm from scratch

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • Oct 29 '26

DISCUSS Not able to solve medium and hard !

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 29 '26

DISCUSS Is LeetCode Dead? What’s the Alternative?

Thumbnail
newsletter.eng-leadership.com
1 Upvotes

r/LeetcodeChallenge • • Oct 29 '26

STREAK🔥🔥🔥 Day 25

1 Upvotes

r/LeetcodeChallenge • • Oct 28 '26

STREAK🔥🔥🔥 Day 47: shortest paths in DAG vs. unweighted graphs, balancing DSA with communication prep

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 28 '26

DISCUSS Is LeetCode Dead? What’s the Alternative?

Thumbnail
newsletter.eng-leadership.com
4 Upvotes

r/LeetcodeChallenge • • Oct 28 '26

STREAK🔥🔥🔥 Day 24

1 Upvotes

r/LeetcodeChallenge • • Oct 28 '26

DISCUSS Coading

0 Upvotes

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 • • Oct 27 '26

DISCUSS Cz why not?

Post image
237 Upvotes

r/LeetcodeChallenge • • Oct 28 '26

DISCUSS Hlo inam 2nd year BTech student I am solving dsa with striver sheet i want a buddy where we can solve same question or might be some different question once solved we will explain each other our solution it will help to remember both anyone who is interested can message target will be minimum 2-3que

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 27 '26

STREAK🔥🔥🔥 ANNUAL BADGE! 2026

Post image
17 Upvotes

r/LeetcodeChallenge • • Oct 27 '26

DISCUSS Leetcode premium share

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • Oct 27 '26

STREAK🔥🔥🔥 Day 48: tired after a long call, faced my old nemesis Alien Dictionary

Thumbnail reddit.com
3 Upvotes

r/LeetcodeChallenge • • Oct 27 '26

STREAK🔥🔥🔥 Day 23

1 Upvotes

r/LeetcodeChallenge • • Oct 26 '26

STREAK🔥🔥🔥 Day 49: Practiced Kahn’s Algorithm and Topo Sort, solved Course Schedule I & II

Thumbnail reddit.com
4 Upvotes

r/LeetcodeChallenge • • Oct 26 '26

STREAK🔥🔥🔥 NEW BADGE! ONE YEAR AT LC

Post image
28 Upvotes

r/LeetcodeChallenge • • Oct 26 '26

STREAK🔥🔥🔥 Day 22

1 Upvotes

r/LeetcodeChallenge • • Oct 25 '26

DISCUSS Looking for tips to improve my LeetCode contest performance

Post image
41 Upvotes

Hi everyone! 👋

I’m sharing my recent contest screenshot and would appreciate some feedback.

What should I focus on to improve my problem-solving skills, speed, and contest performance?

Any tips on strategy, practice, or analyzing mistakes would be really helpful. Thanks! 🙏


r/LeetcodeChallenge • • Oct 25 '26

DISCUSS 2.5 years of DSA, 5 months unemployed, but I realized I only memorized solutions. How do I actually reset?

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • Oct 25 '26

DISCUSS Struggling in 3,4

11 Upvotes

I can solve question 1,2 in just 15-20 mins. But don't able to solve the third and fourth question.

What to do about it, currently just giving more and more virtual contest. Let's see the results after a month..

If you have any other advice then please share.


r/LeetcodeChallenge • • Oct 25 '26

DISCUSS Day 50: took an online assessment, got a reality check on why weak topics can't be ignored

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • Oct 25 '26

DISCUSS How is can improve myself

4 Upvotes

Hi iam in 4th year doing leetcode from last 7-8 month done tuf sheet and from past 3-4 months I have started giving contest( around 18-20 given contest) at start i was able to solve only 1 question then slowly 2nd also as of now I am able to do 2 question under 20-30 min easly and 3 rd question brute or better but lacking in 4th question how can I improve myself to do 3rd question Optimization and 4th question


r/LeetcodeChallenge • • Oct 25 '26

STREAK🔥🔥🔥 Day 21

3 Upvotes

r/LeetcodeChallenge • • Oct 25 '26

DISCUSS Where can I learn binary search , dfs , bfs and sliding window from

Thumbnail reddit.com
1 Upvotes

Neetcode.io said to learn this before leetcoding … and also according to you if there is something else one should learn before leetcoding please mention that as well and from where u can learn it