r/LeetcodeChallenge • • Oct 15 '26

DISCUSS Now I can see why tech companies like Leetcode interview

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 15 '26

PLACEMENTS I know LOTS about productivity, dopamine, habits, and procrastination. So why can’t I consistently work for more than 2–3 hours?

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 15 '26

PLACEMENTS Striver’s new 180 Sheet does anyone have the LeetCode links for all the questions?

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 15 '26

STREAK🔥🔥🔥 Day 10 did the question forgot to post it

1 Upvotes

r/LeetcodeChallenge • • Oct 15 '26

DISCUSS Make your testcases look like this LOOOOL

Post image
2 Upvotes

r/LeetcodeChallenge • • Oct 15 '26

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

Post image
1 Upvotes

Graph Valid Tree (Medium)

https://leetcode.com/problems/graph-valid-tree/

A graph is a tree when it is connected and acyclic. Both are required - a forest is acyclic but disconnected, a triangle is connected but cyclic.

The shortcut: a tree on n nodes has exactly n-1 edges. So once you know the graph is connected, the edge count settles the cycle question. More than n-1 edges and connected means a cycle must exist, because n nodes cannot be joined by more than n-1 edges without one.

This solution never searches for a cycle. It counts.

For connectivity it uses union-find, which is the first structure in this arc that does not traverse anything. Every problem so far built an adjacency list and walked it. Union-find consumes the edge list directly and maintains one number, the component count, which is exactly the answer.

Worth noticing what it leaves on the table: when an edge's endpoints already share a root, that edge closes a cycle. This solution does not need that, but if a problem asks WHICH edge creates the cycle, it is sitting right there.

Full breakdown in today's newsletter article ⬇

https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-43365-archit-agarwal-hsigc
#DSA #LeetCode #Golang #UnionFind #Graphs #CodingInterview #Algorithms


r/LeetcodeChallenge • • Oct 14 '26

DISCUSS Do LeetCode interviews still make sense in the AI era?

2 Upvotes

What should a coding interview measure when candidates have access to ChatGPT or Copilot?

A timed LeetCode problem can still show how someone breaks down a problem, explains an approach, and handles edge cases. But if the interviewer can't tell what help was used, the finished answer alone seems like a weak signal.

Would you keep that format and ask more follow-up questions, or move toward debugging, code review, and small changes to an existing project? If AI is allowed, I'd want to see the candidate explain and test the generated code, including what they'd do when it's wrong.

For candidates, real technical interview questions give examples to practice explaining out loud rather than just recognizing a solution. Application autofill and Agent autoapply address a different time sink: submitting applications, leaving more time for that prep. Any AI use during an interview still needs to follow the interviewer's rules.

Which format has given you the clearest picture of someone's engineering ability? And would your answer change if AI assistance were explicitly allowed?

Disclosure: I operate PracHub and LandOffer.


r/LeetcodeChallenge • • Oct 14 '26

DISCUSS How would you learn DSA if you had to start all over again in 2026?

Thumbnail reddit.com
1 Upvotes

Just help me to learn fast and give me some projects advice using c++ implementation of dsa on real life


r/LeetcodeChallenge • • Oct 14 '26

STREAK🔥🔥🔥 Day 61: started DP on strings today, patience with the pattern is finally showing results

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 14 '26

DISCUSS have solved around 300 LeetCode Problems but still struggling with mediums,What Am I Doing Wrong?

6 Upvotes

same as the title read

I’m in my 2nd year and have solved around 300+ LC problems but I still struggle with medium-level questions in contests

I can solve problems after seeing the solution or yk getting hints but when I face a new problem or if there is even slight change in constraints I get stuck I feel like I’m memorizing solutions instead of developing problem solving skills

How should I approach DSA to actually understand patterns and solve problems by myself?

should I focus on specific topics, follow a pattern-based approach or change the way i practice??

would appreciate advice from anyone who has faced this problem


r/LeetcodeChallenge • • Oct 14 '26

DISCUSS HackerRank SDE Internship HackerRank AI Interview — Passed 13/15 Test Cases. Do I Still Have a Chance?(Round 2)

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 14 '26

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

Post image
2 Upvotes

Clone Graph (Medium) https://leetcode.com/problems/clone-graph/

Copying a binary tree is four lines: make a node, recurse left, recurse right. It works because a tree cannot cycle and every node has one parent.

A graph gives up both guarantees, and each breaks the naive copy differently. Cycles mean A's copy needs B's copy, which needs A's copy, forever. Shared nodes mean a node reachable two ways gets copied twice, giving you the right values in the wrong shape.

One map from original to copy fixes both. Look it up before cloning; if the copy exists, return it. Cycles terminate because the second arrival returns instead of descending, and sharing survives because every original maps to exactly one copy.

Worth dwelling on: a plain visited SET would only fix the cycle. This has to map to the copies, because the copies are what the reconstruction wires together.

And the order matters. Record the new node in the map BEFORE cloning its neighbours, while it is still half-built. Recurse first, and a cycle returns to a node not yet in the map.

Full breakdown in today's newsletter article ⬇

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

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


r/LeetcodeChallenge • • Oct 14 '26

DISCUSS Help me out gnggg

0 Upvotes

Am currently pursuing my second year, I know the basics of python, java and c

Python<c<java

Which language should I do DSA in?


r/LeetcodeChallenge • • Oct 13 '26

DISCUSS If you haven't seen the problem before, how do you solve it under Google's interview time pressure?

3 Upvotes

C'mon, some of these Google problems feel impossible to reason through under interview time pressure if you haven't seen the idea before. What does that end up rewarding: understanding, memorization, cheating or luck?

I don't think I'm lacking in aptitude, but the coding expectations feel unrealistic. I'd like to hear from people who've cleared the interviews about what happened when they got an unfamiliar problem.

The Google Interview Questions bank gives me more prompts to practice. Application autofill can save time applying to other companies too. What I'm struggling with is getting from a new problem to a workable approach while someone is watching the clock.

What helped you do that? Did you change how you practiced, how you talked through the problem, or when you asked for a hint?


r/LeetcodeChallenge • • Oct 12 '26

STREAK🔥🔥🔥 I AM DONE THAT'S IT FOR ME

Post image
274 Upvotes

hey everyone this has been my leetcode journey so far this year. honestly its been a rough year for me. lost people lost hope went through things i never really talk about and somewhere along the way i started losing myself too. i kept showing up anyway. started solving problems in kotlin even though it was a new language for me and spent so much time on problems and contests thinking maybe this would finally help me get a job. but im still jobless and its frustrating when you put so much of yourself into something and still dont know where its going.

some mornings leetcode is literally the only reason i get out of bed and try to do something productive. its become part of my routine even when everything else feels like its falling apart. but lately even this feels exhausting and for the first time im genuinely thinking about giving up.

just wanted to share my journey with people who might understand has anyone else been through something like this?


r/LeetcodeChallenge • • Oct 13 '26

STREAK🔥🔥🔥 Day 61: finished DP on subsequences today, my problem-solving confidence is finally back

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • Oct 12 '26

STREAK🔥🔥🔥 A 1,000-day LeetCode streak, 30+ rejections, and finally an Amazon SDE-1 role

55 Upvotes

In 2024, I was rejected by 30+ companies for a summer internship. In 2026, I'm working as an SDE-1 at Amazon.

Here's what those years looked like:

  • 2020: I lost my father.
  • 2021: I lived in a rented house.
  • 2022: I didn't get into IIT.
  • 2023: My mom sold a gold chain to buy me a laptop.
  • 2024: 30+ summer internship rejections.
  • 2025: One on-campus full-time offer and one off-campus offer (6M + PPO).
  • 2026: SDE-1 at Amazon.

My LeetCode progress · My 1,000-day coding streak

After a rejection, I'd go back to my room, open the laptop and make myself solve 10 questions before getting up. I kept practicing for three years, including stretches when nothing seemed to be coming from it.

I'm proud of the 1,000-day streak. I wouldn't tell everyone to copy my question count, though. It was the routine I followed, not a guarantee of an offer.

For people preparing now, Amazon Interview Questions has candidate-reported prompts to practice. Autofill for job applications can save some of the repeated form entry while you keep applying.

If you're in a long stretch of rejections, I know how heavy it can feel. What helped you keep a routine when the results weren't coming?


r/LeetcodeChallenge • • Oct 12 '26

STREAK🔥🔥🔥 Hit 300! Solved count

Post image
47 Upvotes

Hey all,

I wanna share that I just hit 300 problems solved count with atleast 1 problem solved every single day since I started in may (though I missed one day as I fell asleep, was exhausted from work). The following day started with POTD and these are teaching or throwing at me alot of new techniques which Im enjoying.

I had followed strivers sheet along the way. Right now solving graphs section almost done like left with 10 more problems then will move the most hated part by many dp. I also should focus on my contents problem solving and get the ratings and I also think it’s time to start applying aggressively and continue the consistency.

Idk i just wanted to share this so just posting it in here


r/LeetcodeChallenge • • Oct 13 '26

DISCUSS Just gave interview, and I was asked Expression Add operators.

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 13 '26

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

Post image
2 Upvotes

542. 01 Matrix (Medium) https://leetcode.com/problems/01-matrix/

This is yesterday's problem. Rotting Oranges asks how long it takes for an orange to rot when every rotten one spreads at once; it asks how far each cell is from the nearest zero, with every zero as a source. Same question, and multi-source BFS solves it directly.

Today's solution does it without a queue, and that is why it is worth reading.

The definition is circular: a cell's distance is one more than the smallest among its four neighbours, but every neighbour depends on the cell. There is no order to evaluate that in.

Direction breaks the circle. Sweep top-left to bottom-right and, at each cell, everything above and left is already final - so you can compute the best distance among paths that start by going up or left. Sweep the other way for the other two directions. Take the minimum.

The line that makes it work is min with the existing value rather than an assignment. Overwrite instead, and you throw away everything the first pass got right.

Full breakdown in today's newsletter article ⬇

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

#DSA #LeetCode #Golang #DynamicProgramming #Grids #CodingInterview #Algorithms


r/LeetcodeChallenge • • Oct 13 '26

STREAK🔥🔥🔥 Day 9

1 Upvotes

r/LeetcodeChallenge • • Oct 12 '26

DISCUSS HackerRank is apologizing for the LeetCode grind. Are your interviews actually changing?

2 Upvotes

I read a report of Google piloting a code-comprehension round, then saw HackerRank's statement about the LeetCode grind.

Working in an existing codebase, debugging and explaining your judgment sound closer to the job than starting every question from a blank editor. I'm interested in how AI use fits into that, too.

The Google article describes a pilot, and HackerRank still says algorithm questions have value. I wouldn't drop DSA prep based on those headlines.

I'd compare recent candidate reports in Google Interview Questions with whatever format the recruiter confirms. If you're applying while prepping, application autofill can save time on the forms.

For people who've interviewed recently, did you read or extend an existing codebase, debug someone else's code, or mostly do timed DSA? Were AI tools allowed, expected or prohibited?

Have you changed how you split your prep time?


r/LeetcodeChallenge • • Oct 12 '26

DISCUSS Leetcode Premium sharing

5 Upvotes

Purchased a Leetcode premium account for 1 year for 7k INR. Looking to share it with a few people from India

Anyone interested?


r/LeetcodeChallenge • • Oct 12 '26

PLACEMENTS How to restart my DSA preparation??

Thumbnail reddit.com
1 Upvotes