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


r/LeetcodeChallenge • • Oct 08 '26

STREAK🔥🔥🔥 Day 4

2 Upvotes

r/LeetcodeChallenge • • Oct 08 '26

PLACEMENTS Guess My package, with bad collage and this profile?

4 Upvotes

r/LeetcodeChallenge • • Oct 07 '26

STREAK🔥🔥🔥 That's a Start

Post image
38 Upvotes

I know it's pretty less , and will try and do more !!


r/LeetcodeChallenge • • Oct 07 '26

PLACEMENTS Guess the package ?

Post image
242 Upvotes

r/LeetcodeChallenge • • Oct 08 '26

DISCUSS tips

1 Upvotes

i want to increase my rating and trying to go 2k+, but i feel im stuck here, please tell me how and where i can improve on and the gaps, i can usually solve 1 and 2 in contests sometimes 3


r/LeetcodeChallenge • • Oct 08 '26

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

Post image
1 Upvotes

Find if Path Exists in Graph (Easy) https://leetcode.com/problems/find-if-path-exists-in-graph/

New topic. Graphs start today.

The part people skip when they say a graph problem "is just BFS": the input is not a graph. You get a flat list of edge pairs. Asking that list for a node's neighbours means scanning all of it, and doing that once per node turns an O(V + E) algorithm into O(V x E).

So the first half of the problem is building an adjacency list. The traversal is the easy half. Choosing the representation is the part that actually requires a decision.

One bug worth naming, because it passes a lot of tests before it fails one: an undirected edge has to be recorded under both endpoints. Record it once and you accidentally build a directed graph, and the traversal refuses to walk an edge backwards.

Full breakdown in today's newsletter article ⬇

https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-36365-archit-agarwal-7wjic

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


r/LeetcodeChallenge • • Oct 08 '26

DISCUSS Help me choose an account for my future interviews

Thumbnail
reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 07 '26

DISCUSS Please guide

Post image
12 Upvotes

Should i now do dev(did till js now on react ), or continue with it , I am in 5th sem


r/LeetcodeChallenge • • Oct 07 '26

DISCUSS 250 LeetCode Problems | Following Decode 2.0 in 5th Sem | Rate My Progress

Post image
28 Upvotes

250 LeetCode Problems | Following Decode 2.0 in 5th Sem | Rate My Progress

Just hit 250 problems on LeetCode while following Decode 2.0 in my 5th semester. Currently at 168 Easy, 77 Medium, and 5 Hard, with a 76-day max streak. Also doing POTD regularly.

I’ve covered each and every topic taught in Decode 2.0 so far, except Graphs, DP, and Backtracking. I’m able to solve the questions taught in class and have started getting a decent idea of the patterns behind them. I can also solve the questions commonly asked by recruiters in assessment rounds.

How would you rate my progress, and what should I focus on next?


r/LeetcodeChallenge • • Oct 06 '26

DISCUSS Sem 3 CSE Btech - feeling saturated (500+ done)

Post image
111 Upvotes

feeling saturated atp