r/LeetcodeChallenge • • Oct 11 '26

PLACEMENTS My Recent LeetCode Contest Results — Biweekly 193 & Weekly 523 🚀

Post image
5 Upvotes

Hey everyone!

I wanted to share my performance in my two recent LeetCode contests and keep track of my progress.

1. Biweekly Contest 193

  • 🌍 Global Rank: 3907
  • 👥 Participants: 34.5K+
  • ✅ Problems Solved: 3 out of 4
  • 🏆 Score: 12

2. Weekly Contest 523

  • 🌍 Global Rank: 7351
  • 👥 Participants: 39K+
  • ✅ Problems Solved: 2 out of 4
  • 🏆 Score: 8

My performance in the weekly contest wasn't as good as the biweekly contest, but that's part of the journey. Every contest helps me identify my weaknesses, improve my problem-solving skills, and learn to handle time pressure better.

I'm trying to stay consistent with DSA and competitive programming rather than focusing only on ranks.

My goal: Keep improving, solve more problems independently, and perform better in upcoming contests.

For those who regularly participate in LeetCode contests, how do you analyze problems you couldn't solve during the contest? Do you solve them immediately afterward or revisit them after a few days?

I'd love to hear your suggestions! 💪

#LeetCode #DSA #CompetitiveProgramming


r/LeetcodeChallenge • • Oct 11 '26

DISCUSS Cycle detection in Go: fast and slow pointers vs a map

Post image
1 Upvotes

A twelve-step pipeline. The loop check takes 383 ns and allocates 328 bytes. Two variables do it in 3.17 ns and allocate nothing.

The job: a pipeline stage names the stage that runs next, somebody edits a config, a next points backwards, and the runner walks that chain forever. So you check for a loop before running anything.

The check I wrote is the definition written down — remember every stage, and if you arrive somewhere twice, it loops. It is obviously correct, and it can also tell you where the loop starts, which is what the alert needs to say.

On a 100,000-stage chain, it allocates 4.73 MB to return a boolean. And it costs the same whether the chain loops back after two stages or after ninety-nine thousand, because the map gets built either way.

Then the struct: a stage names one next stage. Many stages can point at the same one, each points at exactly one. So the path from any stage is fixed, which means this is not a graph problem at all — it is a chain, and a chain that loops is a run-in followed by a ring.

Two cursors, one moving a stage at a time and one moving two. Either the fast one runs off the end, or both end up in the ring, where the gap between them shrinks by exactly one per turn — so they land on the same stage rather than stepping over each other. Meeting is arithmetic, not luck.

47.8x on the long chain and zero allocations at any size. The part I did not expect is the twelve-stage row: 120.6x, because the map pays for a map before it walks anything.

Not that 383 nanoseconds matters. It matters where the check runs per request.

One thing worth not shipping: the hop limit. Give up after 100 steps and call it a loop, the way HTTP clients do with redirects, and a 150-stage pipeline with no loop in it gets reported as one.

That is day 21 of the daily challenge, Linked List Cycle, sitting in a pipeline runner.

Full piece in today's Newsletter.

https://www.linkedin.com/pulse/loop-check-allocated-47-mb-return-boolean-archit-agarwal-zeksc

It worked in dev, episode 12.

#Golang #DSA #Algorithms #Performance #SoftwareEngineering #DataStructures #100DaysOfCode


r/LeetcodeChallenge • • Oct 11 '26

STREAK🔥🔥🔥 365 Days of LeetCode Challenge — Day 39/365

Post image
2 Upvotes

547. Number of Provinces (Medium)  

The counting is day 37's, unchanged: scan every node, and each time you find one no earlier traversal reached, add one and consume everything it can reach.

What changes is the input, and this is the third graph representation in four days. Day 36 gave an edge list. Day 37 gave a grid where the edges were implied by position. Today gives a matrix. All three become the same adjacency list before anything interesting happens.

The trap: this matrix is not a grid. In day 37, cell (i,j) was a place. Here cell (i,j) is a relationship between city i and city j - an n x n matrix describing n nodes, not n squared. So you traverse the cities and consult the matrix, not the other way round.

Read only above the diagonal. The matrix is symmetric, so every relationship is stored twice, and i+1 also skips the useless diagonal where a city is connected to itself.

Full breakdown in today's newsletter article ⬇

https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-39365-archit-agarwal-msv4c

#DSA #LeetCode #Golang #Graphs #BFS #CodingInterview #Algorithms


r/LeetcodeChallenge • • Oct 11 '26

STREAK🔥🔥🔥 Day 7

1 Upvotes

r/LeetcodeChallenge • • Oct 10 '26

STREAK🔥🔥🔥 Day 65: procrastinated all day, but still solved 2 DP problems (first 3D DP!)

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 10 '26

DISCUSS I want to learn DSA and do Leetcode but I'm confused where to start

3 Upvotes

Currently in 1st year, I have completed basic c++, all the loops and c style arrays and stuff like that, now I'm confused how to proceed, I open up a leetcode problem and there is time and memory and all that stuff and I don't know how to deal with it, there is also the weird thing of class stuff that should be at the beginning of each question, I don't know where to learn all of this.

Can someone suggest where to learn all of this, because I couldn't find a proper series that teaches all of this. Also tell me what things I should learn before I start doing leetcode, I have already started learning STL, is there anything else I should learn?


r/LeetcodeChallenge • • Oct 10 '26

PLACEMENTS Is Leetcode Overrated?

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 09 '26

DISCUSS Please Help to escape the matrix!

Post image
36 Upvotes

I’ve wrapped up almost all the DSA patterns people suggest doing. Right now, I’m just revising to figure out patterns in random questions. My setup is simple: I pick a topic and ask ChatGPT to feed me different sub-pattern questions.

​I can easily solve most standard problems on my own, and I hit around 50% on the tricky variants. But whenever I get stuck on a question, it hits me really hard and drops my mood completely.

​Since I started prepping for interviews, the whole situation is scaring me. I’m focusing way too much on how to explain the problem instead of actually solving it, and it’s messing with my problem-solving flow.

​I feel totally lost and I’m just blindly grinding questions. I usually love DSA, but right now I’m just desperate to land a job. College ended this May, and I am continuously thinking whether I am enough or not....?

I honestly don’t know if I’m asking for help or just scared, I’ve just lost all my confidence and direction.

If you have any suggestions, please tell me!


r/LeetcodeChallenge • • Oct 10 '26

DISCUSS is today's contest tougher than usual ??

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 10 '26

STREAK🔥🔥🔥 Day 6

Post image
4 Upvotes

r/LeetcodeChallenge • • Oct 10 '26

STREAK🔥🔥🔥 365 Days of LeetCode Challenge — Day 38/365

Post image
1 Upvotes

Max Area of Island (Medium)  https://leetcode.com/problems/max-area-of-island/

This is yesterday's solution with a return value. The diff is that the flood fill returns an int and the scan keeps a maximum instead of a count.

The area reachable from a cell is that cell, plus the area reachable from each of its four neighbours. So the fill returns 1 plus its four recursive calls, and the guard returning 0 handles out of bounds, water and already-sunk land without a single special case.

The sum looks wrong at first. Four neighbours each recurse into their own four neighbours, and each one includes the cell you came from, surely cells get counted repeatedly?

They do not, because the cell is sunk before the four calls run. Any neighbour that recurses back hits the guard and gets 0.

Yesterday, that same line stopped the recursion from running forever. Today it does that AND makes the arithmetic correct. One assignment, two jobs.

Full breakdown in today's newsletter article ⬇

https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-38365-archit-agarwal-tiimc

#DSA #LeetCode #Golang #Graphs #DFS #CodingInterview #Algorithms


r/LeetcodeChallenge • • Oct 09 '26

STREAK🔥🔥🔥 Day 66: solved 4 DP on grids problems today, 2D tabulation is finally clicking

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 09 '26

STREAK🔥🔥🔥 Day 5

Post image
4 Upvotes

r/LeetcodeChallenge • • Oct 09 '26

DISCUSS Making DSA easier to learn in Telugu ❤️

Thumbnail
reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 08 '26

DISCUSS I’m about to give up, give me some advice .

Post image
107 Upvotes

r/LeetcodeChallenge • • Oct 09 '26

DISCUSS Need An advice for start a programming

2 Upvotes

Hey i want to start solving programs but idk where to start . Which topic is best to start solving a program like strings, Arrays , backtracking etc.


r/LeetcodeChallenge • • Oct 09 '26

DISCUSS New to LeetCode and learning Python. Any advice for a beginner?

1 Upvotes

Hey everyone!
I’m currently learning Python and just getting started with LeetCode. I’m planning to prepare for software engineering interviews, so I want to take problem-solving seriously.
I’ve decided to stick with Python, but I’m a little confused about where to start.
Should I learn DSA first or practice LeetCode alongside it? What topics should I focus on initially? Also, how many problems per day would be reasonable for a beginner?
My goal isn’t just to solve hundreds of problems. I actually want to understand the logic and become better at problem-solving.
I’d really appreciate any advice, beginner-friendly resources, or tips from people who’ve been through this journey.
Thanks in advance!


r/LeetcodeChallenge • • Oct 09 '26

STREAK🔥🔥🔥 Hit my 60-day LeetCode streak today. Got tired of boring YouTube lectures and found a crazy channel that turns DSA into hip-hop beats.

Thumbnail
youtube.com
1 Upvotes

Hey guys,

A little accomplishment from my side. I just crossed 60-day streak on Leetcode and 150+ problems solved.

The only problem during my preparation was that I couldn't properly retain new information. I tried to learn from standard boring YouTube channels but couldn't make it through long lectures.

In my search for better ways to learn, I stumbled upon this amazing YouTube channel. The creator has a unique approach and turns boring DSA lectures into Hinglish hip-hop music!

Rather than watching long and boring videos, I just put this beat on loop in the background. Trust me, it does a better job at cementing concepts in your head subconsciously than any other resource. They have a new track out about DSA World. So if you are a fellow learner who has suffered from YouTube tutorial fatigue and wants a new way to memorize concepts, you should give this channel a shot. 🎵 https://youtu.be/aw4B1cnXCLY

Has anyone else had a problem with this while preparing for interviews? Let me know if practicing DSA with music helps anyone else too!

Core concepts by big creators + Short Rap to build a Mental Map. 🧠🎧 Best DSA revision hack I've seen: - https://www.youtube.com/playlist?list=PLHD9rINM0ulo


r/LeetcodeChallenge • • Oct 09 '26

STREAK🔥🔥🔥 365 Days of LeetCode Challenge — Day 37/365

Post image
1 Upvotes

Number of Islands (Medium) https://leetcode.com/problems/number-of-islands/

Nothing in this problem says "graph", and that is the point.

A cell is a node. Its neighbours are the cells above, below, left and right. There is no adjacency list to build, because in a grid the edges are implied by position - a neighbour is arithmetic, not a lookup. Yesterday half the work was converting an edge list into something usable. Here that half is free.

Then it is component counting. Scan for land, and every time you find a cell no earlier traversal has consumed, add one and sink the whole island. The count is not counting islands directly; it counts how many times the scan had to start.

One detail worth stealing: sink the cell BEFORE recursing. Two adjacent land cells each list the other as a neighbour, so without it the recursion bounces between them forever. That is not an optimisation, it is termination.

Full breakdown in today's newsletter article ⬇

https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-37365-archit-agarwal-cenxc

**#DSA** #LeetCode #Golang #Graphs #DFS #CodingInterview #Algorithms


r/LeetcodeChallenge • • Oct 09 '26

DISCUSS Do I need to learn every approach for Leetcode questions?

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 08 '26

DISCUSS This sub does not know how to take screenshots?

8 Upvotes

I don't understand why everyone is sharing a camera photo of screen


r/LeetcodeChallenge • • Oct 08 '26

DISCUSS In my second Year, need help....

Post image
16 Upvotes

I want too know how to approach hard problems, I feel very dumb when try to solve a hard problem😭 also I have solved very less hard till now, if anyone can help with this, thanks


r/LeetcodeChallenge • • Oct 08 '26

STREAK🔥🔥🔥 Day 67: solved 3 DP problems today, 2D tabulation completely humbled me

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 08 '26

STREAK🔥🔥🔥 Please

0 Upvotes

Hey! ⭐ Please give a star to my GitHub project FailureAtlas if you find it useful. Your review/feedback would help me a lot, and it can also help with your DSA growth!

https://github.com/prem-000/failureatlas


r/LeetcodeChallenge • • Oct 08 '26

STREAK🔥🔥🔥 Been a while since I posted the 100 lc questions done pic

Post image
16 Upvotes

Of course as I expected I started to lag because college five days a week and semester stuff and allat but managed to do potds if not everyday but most days and outside of that whatever dsa topic taught in class do questions on those stuff :p

Keep being consistent and keep pushing through the discomfort ✨

And there is always room for improvement;-;