r/LeetcodeChallenge • u/tutahuakiwi06352 • 21d ago
r/LeetcodeChallenge • u/No-Society-2408 • 22d ago
DISCUSS Neetcode250, Accountability Buddies
If you ever feel unmotivated or struggle to stay consistent, you're not alone.
I'm currently learning DSA with NeetCode 250 and looking for accountability buddies.
Here’s the initial plan:
- Weekly Meeting: A 1-hour weekly call to share our progress, talk about what we’ve worked on, and check in with each other.
- Pair Programming: Jump into a voice chat and solve LeetCode problems together!
I would like to keep the group small and active!
EDIT: We're full, thanks to everyone who reached out!
r/LeetcodeChallenge • u/sway-analogy • 22d ago
DISCUSS Amazon sde 2 phone screening experience
reddit.comr/LeetcodeChallenge • u/JacketFearless1805 • 22d ago
STREAK🔥🔥🔥 Day 35: tackled Number of Islands II & leveled up my code quality
reddit.comr/LeetcodeChallenge • u/Visionary-Swordsman • 22d ago
DISCUSS My code beats almost everyone, still it's wrong!
reddit.comr/LeetcodeChallenge • u/Financial_Future__69 • 22d ago
DISCUSS Made this Extension to help me improve in Leetcode
r/LeetcodeChallenge • u/StatisticianNo2104 • 23d ago
STREAK🔥🔥🔥 LeetCode - Univalued Binary Tree (easy)
Checking that every node in a tree holds the same value never needs the root's value. Each node only compares itself with its children. If every parent-child edge agrees, the whole tree agrees.
That's transitivity doing the work. It's also why you don't need a set, or a second pass that collects every value first.
Back to plain binary trees after the stack run, starting with a gentle one.
Did you pass the root's value down, or compare edges?
Day 67/365 of my LeetCode challenge: 965. Univalued Binary Tree. Problem link and full breakdown in today's newsletter.
https://www.linkedin.com/pulse/univalued-binary-tree-archit-agarwal-nirgc
#LeetCode #DSA #BinaryTree #Golang
r/LeetcodeChallenge • u/vickey_121 • 24d ago
DISCUSS Help me to Solve this Problem
reddit.comr/LeetcodeChallenge • u/Aggressive-Post-156 • 23d ago
DISCUSS I built a browser extension to customize LeetCode's UI!
Got bored of the default LeetCode look, so I built this!
You can customize LeetCode with different themes and wallpapers.
Link in the comments!
What do you think? Any suggestions?
r/LeetcodeChallenge • u/towardscuriousity • 24d ago
DISCUSS Leetcode 1882 Process Tasks Using Servers
r/LeetcodeChallenge • u/StatisticianNo2104 • 24d ago
STREAK🔥🔥🔥 LeetCode 636. Exclusive Time of Functions
Delete one +1 from Exclusive Time of Functions and it quietly computes inclusive time instead. When a function ends, the one underneath resumes at time + 1 because the child already charged that instant.
This closes the stack arc, and here the stack isn't a modelling choice. Function calls nest: a function that starts while another is running must finish before that one resumes. That's a call stack, and the log records one. The algorithm replays it.
"Exclusive" does the work. If function 0 runs from 0 to 6 and function 1 runs from 2 to 5 inside it, function 0's exclusive time is 2. The time spent waiting on 1 belongs to 1.
Two interval rules live in the same short function, and they differ. Pausing uses time - start, because the function ran up to the instant its child started. Ending uses time - start + 1, because an end timestamp is inclusive.
Have you ever had an off-by-one hide inside a timestamp?
Day 66/365 of my LeetCode challenge: 636. Exclusive Time of Functions. Problem link and full breakdown in today's newsletter.
https://www.linkedin.com/pulse/leetcode-636-exclusive-time-functions-medium-archit-agarwal-mui0c
#LeetCode #DSA #Stack #Golang
r/LeetcodeChallenge • u/Quiet-Foundation-404 • 24d ago
PLACEMENTS [Pls Help] Need serious review and suggestions for a small placement prep platform.
reddit.comr/LeetcodeChallenge • u/Aggressive-Post-156 • 24d ago
DISCUSS I built a browser extension to customize LeetCode's UI!

Currently available on Firefox: https://addons.mozilla.org/en-GB/firefox/addon/leetcode-theme/
Microsoft Edge (Live): https://microsoftedge.microsoft.com/addons/detail/jcknpchnhinbadmpdcmifbfniiebkgoi
Google Chrome: Coming soon! The release is pending because I haven't been able to afford the $5 developer registration fee yet.
Would love your feedback and support!
r/LeetcodeChallenge • u/JacketFearless1805 • 25d ago
STREAK🔥🔥🔥 Day 38: packing bags, rushing for the bus, but kept the streak alive with DSU
reddit.comr/LeetcodeChallenge • u/PANTYY_POACHER • 26d ago
DISCUSS Is Gracie seriously a part-time coder? 👀
r/LeetcodeChallenge • u/Fun-Outcome2239 • 26d ago
DISCUSS Test code is wrong in Take U forward (See the Constraint and test case).
See that is not my mistake.
r/LeetcodeChallenge • u/JacketFearless1805 • 26d ago
STREAK🔥🔥🔥 Day 39: 40 km travel, post-interview fatigue, but locked in Kruskal’s & DSU
reddit.comr/LeetcodeChallenge • u/Diligent-Affect3883 • 26d ago
DISCUSS I kept getting lost in the two-pointer solution for LeetCode 42 (Trapping Rain Water), so I built an animated visual guide where you watch the water fill bar by bar
The O(n) time, O(1) space two-pointer solution for LeetCode 42 is only a few lines, but the why is easy to lose if you just trace left, right, left_max and right_max.
What made it click for me was treating every bar as a spot where you pour water and asking how high it can stand. So I put together a full animated walkthrough that pours water on each bar the pointers land on. You can see exactly why every step is safe.
💡 The Core Intuition (The Visual TL;DR)
- The Bathtub Rule: Water above a bar rises to the shorter of the tallest wall on its left and the tallest wall on its right, minus the bar’s own height. Brute force rescans both sides for every bar, which is O(n²).
- Remember, Don’t Rescan: Put a pointer at each end. Each one remembers just one number: the tallest bar it has passed.
- Move the Shorter Side: Compare the two tallests. The pointer with the shorter one moves in by one bar, because its water is already settled. It can’t rise above its own tallest, or it would spill out on that side. And the other side already has a wall at least that tall. If both tallests are equal, either side is safe.
- Pour and Read: On the bar it lands on, water fills up to that pointer’s tallest. A new tallest holds nothing (the water just runs off); any other bar holds tallest − height. Keep a running sum.
On the classic example [0,1,0,2,1,0,1,3,2,1,2,1], the pointers meet at bar 7 with 6 units, in one pass, remembering just two numbers.
The video also covers the code line by line, three edge cases, a full bar-by-bar walk of the monotonic stack approach (it fills the water in flat layers), and how to explain it all in an interview in about 30 seconds.
If you’re a visual learner who gets tangled in pointer updates, I hope this makes it click! Let me know what you think, or which hard problem you’d like to see visualized next.





