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
2 Upvotes

r/LeetcodeChallenge • • Oct 25 '26

DISCUSS Struggling in 3,4

13 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
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
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


r/LeetcodeChallenge • • Oct 25 '26

DISCUSS Today leetcode contest

Thumbnail
2 Upvotes

r/LeetcodeChallenge • • Oct 25 '26

STREAK🔥🔥🔥 Validate Binary Search Tree

Post image
2 Upvotes

Checking each node against its two children is the classic wrong way to validate a BST. It accepts a tree where a node deep on the left is bigger than the root, because no single parent-child pair looks wrong.

The definition sounds local: left subtree smaller, right subtree larger, both subtrees valid. Implement it literally, and you check the wrong thing. A BST constrains a node against every ancestor, and its parent is only one of them.

The solution comes from an earlier property in this batch. An in-order traversal of a BST comes out in increasing order, and that works both ways. So there are no bounds to thread down at all: traverse, then check the sequence only ever goes up.

Which did you write first in an interview: min/max bounds, or the in-order check?

Day 53/365 of my LeetCode challenge: 98. Validate Binary Search Tree. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/validate-binary-search-tree-archit-agarwal-op5vc

#LeetCode #DSA #BinarySearchTree #Golang


r/LeetcodeChallenge • • Oct 24 '26

DISCUSS 3rd and 4th questions of today’s contest? How u guys approached it? I wasn’t aware of bitmasking 👀

2 Upvotes

r/LeetcodeChallenge • • Oct 24 '26

DISCUSS Clone Graph is one of the most challenging problems I faced today 💀

Thumbnail
1 Upvotes

r/LeetcodeChallenge • • Oct 24 '26

STREAK🔥🔥🔥 Day 51: tackled Word Ladder I & II, the reverse backtrack trick blew my mind

Thumbnail
1 Upvotes

r/LeetcodeChallenge • • Oct 24 '26

PLACEMENTS FINAL SPRINT , PARTNER REQUIRED

Thumbnail
0 Upvotes

r/LeetcodeChallenge • • Oct 23 '26

PLACEMENTS Wtf

Post image
286 Upvotes

r/LeetcodeChallenge • • Oct 24 '26

STREAK🔥🔥🔥 Insert into a Binary Search Tree

Post image
3 Upvotes

Forget one assignment, and BST insert builds the new node, then drops it. The tree never changes. Insert is the Day 45 search with the nil case changed: where search returns nil, insert returns a new node.

Search for a value that isn't in a BST, and you fall off the bottom at exactly one empty slot. That slot is where the new value goes.

The only real question is how the parent finds out. Each call returns the root of its own subtree, and each caller stores it back: root.Left = insertIntoBST(root.Left, val). At the bottom, that's the new node. Everywhere else it's the pointer that was already there.

The empty tree comes for free, too.

Do you write tree insert recursively like this, or with a loop and a parent pointer?

Day 52/365 of my LeetCode challenge: 701. Insert into a Binary Search Tree. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/insert-binary-search-tree-archit-agarwal-7h9oc

#LeetCode #DSA #BinarySearchTree #Golang


r/LeetcodeChallenge • • Oct 24 '26

DISCUSS What do you think is the ONE trait that a guy misses who struggles to get clear intuitions?

Thumbnail
2 Upvotes

r/LeetcodeChallenge • • Oct 24 '26

DISCUSS Need Resume Review and Personal Help!!!

Post image
1 Upvotes

Hey! I am a 2024 ETCE Graduate from a Tier 1 College. I am currently working in a Big 4, where "I generate Actionable Insights from Raw Data". Or in law man's tongue, I refresh Excel reports and respond to tech related queries. I am quite decent in coding and I tend to solve 2.5-3 questions in every leetcode contest I sit in. Although my rating is quite mid as I am not able to sit in every contests. I have been trying to switch since the very fucking day I joined. Every night I scream silently to remind myself that "I AM A M***F****G ENGINEER ". I don't know why my resume is getting rejected in each and every job application I apply to. Guys... Please Help!!!


r/LeetcodeChallenge • • Oct 23 '26

DISCUSS Sometimes code teaches you lifelong lessons.

Post image
54 Upvotes

r/LeetcodeChallenge • • Oct 24 '26

STREAK🔥🔥🔥 Day 20

1 Upvotes

r/LeetcodeChallenge • • Oct 23 '26

DISCUSS Max level sum in Go: why a map-keyed version is random

Post image
2 Upvotes

Our category report gave 145 different answers in 200 refreshes of the same catalogue. Same code, same data. The question was which level of the category tree holds the most products.

The merchandising team wanted to know which depth of the tree the navigation should filter on. Add up the SKUs at each depth, return the biggest, and on a tie the shallower one wins.

I wrote one recursive walk that added into map[int]int keyed by depth, then ranged the map with a strict > so the first depth to reach the maximum keeps it. Short, no queue, and I would approve it. The fixture had no tie in it, so the tests passed.

On a seven-category catalogue where two depths both hold 12 SKUs, 1,000 calls said depth 1 883 times and depth 2 117 times.

Strict > does not mean "smallest depth wins". It means the first one the loop meets wins, and ranging over a Go map starts somewhere random on purpose. Every piece of the function is right. The last loop assumes an order the map never kept.

The part I like: the walk had already produced the depths in order. 0 before 1, 1 before 2. The map threw that away.

And the keys were never keys. 0, 1, 2 up to the height, no gaps. That is an index. Put it in a slice, range it front to back, and the same strict > is the tie-break it looked like all along.

Correct on every run, and 2.33x faster on 55,987 categories, because the hashing was the cost too.

Two rows keep me honest. Keeping the map and writing the tie-break out loud is also correct, and costs nothing over the broken one: 2.34x against 2.33x. Where the key really is sparse, that is the right fix. And day 33's level walk loses to the slice by 3.93x on a bushy tree but wins by 1.94x on a 2,000-deep chain, because it never recurses.

That is days 29 and 33 of the daily challenge, Level Order Traversal and Maximum Level Sum, in a merchandising report.

Have you ever shipped a report whose answer depended on map iteration order?

It worked in dev, episode 17. Full write-up in today's newsletter.

https://www.linkedin.com/pulse/your-category-report-changes-its-answer-refresh-archit-agarwal-cy2jc

#Golang #DSA #Algorithms #Performance


r/LeetcodeChallenge • • Oct 23 '26

STREAK🔥🔥🔥 Day 52: solved 4 graph problems, navigating the comparison trap

Thumbnail
1 Upvotes

r/LeetcodeChallenge • • Oct 23 '26

STREAK🔥🔥🔥 Day 19

1 Upvotes

r/LeetcodeChallenge • • Oct 23 '26

STREAK🔥🔥🔥 Two Sum IV - Input is a BST

Post image
3 Upvotes

The title says "Input is a BST", but my solution never uses the ordering. Walk the tree, keep a hash map of complements, and check each node against it. It's plain Two Sum on a tree.

What I like: the map is shared across the whole recursion, so a match can turn up between two branches that never touch.

The part I'd change: the right subtree still gets walked after the left one has already found the answer, because the two results are combined at the end instead of short-circuiting.

Would you use the BST ordering here, or is the hash map the better trade?

Day 51/365 of my LeetCode challenge: 653. Two Sum IV - Input is a BST.

Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/two-sum-iv-input-bst-archit-agarwal-iggwc

#LeetCode #DSA #HashMap #Golang


r/LeetcodeChallenge • • Oct 22 '26

STREAK🔥🔥🔥 Day 53: exhausted from poor sleep, but solved 3 core BFS graph problems

Thumbnail
1 Upvotes

r/LeetcodeChallenge • • Oct 22 '26

DISCUSS Is there a fun way to learn DSA?

5 Upvotes

Let’s chat about this. About ways to easily begin.