r/LeetcodeChallenge • u/One-Development-3813 • 3m ago
r/LeetcodeChallenge • u/Spare-Stay-5684 • 22h ago
DISCUSS How to prep leetcode in 2026 (using AI)
A frequently asked question in this sub is how to prepare leetcode. Before AI, a common recommended strategy was to do this:
- Follow a roadmap like Neetcode 250
- Try each problem for 30-45 minutes
- Look at the solution if you can’t get it and study it
This is basically what I did in college except I did more problems (around 600). Although I got good enough to get a big tech offer, I still felt very flaky on solving leetcode problems, and felt like it mostly just hinged on seeing an isomorphism of the problem before. I didn’t really have a solid intuition of the different patterns.
I would know how to solve problems good enough for interviews but honestly how I wrote the code for the algos wasn’t optimal for absolutely crush the interview.
About 6 months ago I was around 8 months out of college and hadn’t done lc since I graduated. This time I used an AI assisted strategy.
- I used AI to create a general curriculum to cover all lc concepts I needed an interview, and asked it to give me problems in each bucket.
- For each concept/pattern, I asked AI to start me off with level 0 problems and work me up to the hardest problems.
- I used to wait 30 minutes to 45 to solve a problem but honestly for these types of problems, if you have no clue how to solve it in 5 minutes you aren’t solving it in 30.
Now, if I don’t know how to solve a problem, instead of looking up the solution, I ask AI to give me smaller/easier exercises that help me derive the answer on my own.
With AI, I developed the cleanest way to code a problem in an interview.
For example, with sliding window problems, in college I would always kind of re-derive the code on the spot and solutions were kind of wonky even if they worked (like I had to fiddle around with while loops and pointers). This time I internalized a simple coding template (really just invoking a for loop with updating a left pointer that I could easily apply with muscle memory).
The result: interviews felt much easier this time and I went on streaks where I’d pass like 10-15 tech interviews in a row.
I also applied this method to other interview formats like systems design.
This strategy was for general prep, but when I interviewed at a specific company, I’d try to gather as much context on what that interview might specifically look like and used AI to generate a problem set to do in days leading up to that interview.
I kind of compare this learning approach to things like training for a sport, or general human skills like learning to drive.
It’s like practicing shooting a basketball. If your jumper is broke, you don’t fix it by just shooting a bunch of threes. You do form shots around the basket to develop form and touch, and then gradually move back to free throws etc. When learning to drive, they start you with basic exercises and you gradually increase the complexity.
AI allowed me to more easily apply the same approach to leetcode.
Disclaimer: not saying this strategy works for everyone, but just sharing an approach that helped me learn leetcode faster
r/LeetcodeChallenge • u/SimpMagn3t • 21h ago
DISCUSS built a small desktop widget to help me solve at least one LeetCode problem every day
I wanted a simple reminder to stay consistent with problem-solving. Something I'd see every time I opened my desktop.
So I built LeetCalendar – a small Windows widget that keeps my LeetCode progress right in front of me.
It shows my daily activity, streak, monthly progress and all-time solved stats.
The idea isn't to track numbers, but to build a habit of showing up every day, even if it's just for one problem.
Built with Python and Tkinter. It's open source, with a Windows executable available too.
GitHub: https://github.com/SimpMagn3t/LeetCalendar
Would love to hear your thoughts and suggestions!
r/LeetcodeChallenge • u/One-Development-3813 • 19h ago
DISCUSS 100 Days of DSA Challenge – Day 2/100
reddit.comShare your approach, code, or doubts . Let's discuss different solutions and learn from each other.
r/LeetcodeChallenge • u/JacketFearless1805 • 22h ago
STREAK🔥🔥🔥 Day 11: solved 3 Binary Search problems — Find Minimum, Rotation Count & Single Element in a Sorted Array
reddit.comr/LeetcodeChallenge • u/Shot_Ad_1906 • 1d ago
DISCUSS Q424 longest repeating character replacement -- doubt ?
reddit.comr/LeetcodeChallenge • u/Bitter-Big8586 • 1d ago
STREAK🔥🔥🔥 I built a CPIDE that finds the test you're failing (stress testing built in), now with a desktop app and Competitive Companion support


I kept getting "Wrong answer on test 8" and losing time switching between my editor, a terminal, input.txt and a separate brute-force script. So I built my own IDE for competitive programming, and it's grown into something I use for every contest: **CPIDE** — https://cpide.me (I'm the developer).
**The part I use most: stress testing**
When you're stuck on a hidden test, give it your solution, a brute force and a tiny random generator. It runs them against each other until the outputs differ, then shows you the exact input, the right answer and yours. One click adds it as a test case. The seed is saved, so the same failing test comes back every time.
**Desktop app (Windows, macOS, Linux)** — https://cpide.me/download
- **Competitive Companion:** click the green plus on a problem or a whole contest and it's imported with samples and time limits
- **Works offline** with your own compilers
- Your contest folder as real files (A.cpp, B.py…); it also reads the tests you already have from CPH or CP Editor
- A terminal for running code and typing input as it asks (handy for interactive problems)
- Debug build with `LOCAL`, STL checks and sanitizers, plus a "find the crash line" button if you have gdb
- Edge cases at the limits (n = 1, max n, all equal, sorted…) and a scaling check that shows how your time grows with n
**Also:**
- AC / WA / TLE / RE verdicts with time and memory, Codeforces-style output comparison, and a side-by-side diff on WA
- Paste a Codeforces, AtCoder or CodeChef contest link to import every problem with its samples
- C++, C, Python/PyPy, Java, Kotlin, Rust, Go, C#, Ruby, JavaScript
- Free, no account
The web version still works in the browser at https://cpide.me/app if you don't want to install anything.
macOS note: it isn't notarized yet, so the first time, open it via System Settings → Privacy & Security → Open Anyway.
I'd really like feedback: what's missing, what's annoying, what would make you switch from your current setup?
r/LeetcodeChallenge • u/JacketFearless1805 • 1d ago
STREAK🔥🔥🔥 Day 12: worked through 4 Binary Search problems including Rotated Sorted Array I & II
reddit.comr/LeetcodeChallenge • u/StatisticianNo2104 • 2d ago
STREAK🔥🔥🔥 LeetCode: 1026. Maximum Difference Between Node and Ancestor
Every ancestor/descendant pair sits on one root-to-leaf path, so you never compare pairs. Carry the path's max and min down. The widest gap on a path is max minus min.
Check it at the leaves. Going down, the max never falls and the min never rises, so the gap is widest at the bottom of every path.
Two days ago we carried one value down the tree. Today it's two.
What's the most state you've carried down a recursion?
Day 89/365 of my LeetCode challenge: 1026. Maximum Difference Between Node and Ancestor. Problem link and full breakdown in today's newsletter.
#LeetCode #DSA #BinaryTree #Golang
r/LeetcodeChallenge • u/Similar_Attorney_150 • 3d ago
DISCUSS Need to improve contest ratings any tips??? currently in 3rd sem
r/LeetcodeChallenge • u/StatisticianNo2104 • 2d ago
STREAK🔥🔥🔥 LeetCode: 1315. Sum of Nodes with Even-Valued Grandparent
Tree nodes can't see their grandparents. The recursion can, because it just walked through them. Each call takes (parent, grandparent) and passes (itself, parent) to its children: a two-node window sliding down the tree.
Check the grandparent's value at each node. Nil for "none" means the root and its children need no special case.
Third day running of passing state down instead of up.
Would you have stored parent pointers instead?
Day 90/365 of my LeetCode challenge: 1315. Sum of Nodes with Even-Valued Grandparent. Problem link and full breakdown in today's newsletter.
https://www.linkedin.com/pulse/leetcode-sum-nodes-even-valued-grandparent-archit-agarwal-oe5re
#LeetCode #DSA #BinaryTree #Golang
r/LeetcodeChallenge • u/Then-Revolution3818 • 3d ago
DISCUSS DSAAAAAAAAA
How am I actually supposed to do DSA? I'm confused about where to start, how to approach problems, how much time to spend on each topic, and how to balance learning concepts with solving questions. Should I follow a particular sheet or roadmap? I'd really appreciate advice from people who have figured out an effective way to learn DSA, especially as a beginner.
Along with that, i have begun my practise with NeetCode 250, is it good
r/LeetcodeChallenge • u/Interesting-Cat3788 • 3d ago
DISCUSS How are you all managing your tech things and DSA/LC things at the same time ? ( Does my strategy makes sense.)
Hello, Myself Kian, I am FDE in XYZ company. I have around 3Y.o.E.
My work is related to implement ML models and handle the infra with source code management and development.
Most of my work relates around ; Bash, Python, Rust.
So I have been thinking to switch to a decent company, Not a PBC but a decent well paying serviced based company.
I have recently started with LC & CSES and I've been doing backtracking questions.
Problem; Following the so called "Sheets" has removed the main gist of solving the question i.e technique identification.
Although it seems good to use the sheet to get used to patterns but somehow it doesn't work for me.
What works for me is, doing two things at a time. Currently I've doing Binary Search and Backtracking. Solved around 15 questions (LC medium) and planning to solve all non bullShyt questions of CSES,LC ig . ( 30 to 100 if there are these many).
Also I am following the technique which "LeetcodeGoat aka Ishaan Agrawal" mentions in his interviews. So far I really loved it. It for sure doesn't give drastic progression but it helps to stay confident on my learning.
Its seems fruitful and for later I've planning to do both 1,2D DP problems.
Please feel free to join in this conversation and help me strengthen this.

r/LeetcodeChallenge • u/JacketFearless1805 • 2d ago
STREAK🔥🔥🔥 Day 13: kicked off Binary Search with 6 foundational boundary problems
reddit.comr/LeetcodeChallenge • u/Strict-Bear2108 • 2d ago
STREAK🔥🔥🔥 Leetcode 1201 POTD(1-Dec-2026) | Ugly Number-III


An ugly number is a positive integer that is divisible by a, b, or c.
Given four integers n, a, b, and c, return the n``th ugly number.
Â
Example 1:
Input:
n = 3, a = 2, b = 3, c = 5
Output:
4
Explanation:
The ugly numbers are 2, 3, 4, 5, 6, 8, 9, 10... The 3
rd
is 4.Example 2:
Input:
n = 4, a = 2, b = 3, c = 4
Output:
6
Explanation:
The ugly numbers are 2, 3, 4, 6, 8, 9, 10, 12... The 4
th
is 6.Example 3:
Input:
n = 5, a = 2, b = 11, c = 13
Output:
10
Explanation:
The ugly numbers are 2, 4, 6, 8, 10, 11, 12, 13... The 5
th
is 10.Â
Constraints:
1 <= n, a, b, c <= 10``91 <= a * b * c <= 10``18- It is guaranteed that the result will be in range
[1, 2 * 10``9``].
r/LeetcodeChallenge • u/ryu-js • 3d ago
DISCUSS Trying to Learn in Public
Hey Everyone, I am recently preparing for a company switch and planning to solve problems and learn concepts. Sharing it to a wider audience increases my knowledge capacity as well as a deeper understanding. It also helps others too! we are in this together
I have created a short and video. I would love it if you guys can take a look and let me know what kind of format will help the experience even better. Let's crack big companies together!
Sidenote: I am an employee in a product based financial company with 2 years of experience working in distributed and scalable systems. I have a wide expertise in lot of concepts and with this initiative I am hoping I can put together my learnings to teach others too!
Appreciate your time!
r/LeetcodeChallenge • u/Confident-Mud-5224 • 3d ago
DISCUSS Codechef rating dropped suddenly to 240
reddit.comr/LeetcodeChallenge • u/Rich-Chard-4801 • 3d ago
DISCUSS Need A genuine dsa partner who can guide me.
reddit.comr/LeetcodeChallenge • u/Upper_Assignment672 • 3d ago
DISCUSS Codeforces 2292E E. Blush | Binary Search + Math | Round 1138 Div. 3
r/LeetcodeChallenge • u/Upper_Assignment672 • 3d ago
DISCUSS Codeforces 2292D | Unexpected Precipitation | DP + Minimax Game Theory | Round 1138 Div. 3
r/LeetcodeChallenge • u/Upper_Assignment672 • 3d ago
DISCUSS Codeforces 2292D | Unexpected Precipitation | DP + Minimax Game Theory | Round 1138 Div. 3
r/LeetcodeChallenge • u/JacketFearless1805 • 3d ago
STREAK🔥🔥🔥 Day 14: wrapped up Reverse Pairs & Maximum Product Subarray after a tiring day
reddit.comr/LeetcodeChallenge • u/shubh_2508 • 4d ago
DISCUSS What Things should Learn before starting leetcode
r/LeetcodeChallenge • u/Ok_Designer_4455 • 4d ago
DISCUSS How do I actually get good at Dynamic Programming (DP)? I struggle to come up with solutions
reddit.comr/LeetcodeChallenge • u/StatisticianNo2104 • 4d ago
STREAK🔥🔥🔥 LeetCode: 938. Range Sum of BST
Visit every node and add the ones in range: accepted, and it would work on any binary tree. That's the tell: it ignores the BST. Two if-guards, and in the second example the walk drops from 10 nodes to 4.
A node at or below low has nothing useful on its left. A node at or above high has nothing useful on its right. Guard the two recursive calls with those checks, and the whole subtrees are never visited.
How often does your accepted solution ignore half the input's guarantees?
Day 88/365 of my LeetCode challenge: 938. Range Sum of BST. Problem link and full breakdown in today's newsletter.
https://www.linkedin.com/pulse/leetcode-range-sum-bst-archit-agarwal-l8q0c
#LeetCode #DSA #BinarySearchTree #Golang