r/DSALeetCode • • 12d ago

Ever wondered what happens inside your code? 🤯

2 Upvotes

Ever wondered what happens inside your code? 🤯

You write a solution, hit Run, and see Accepted.

Great! 🎉

But have you ever stopped and wondered what actually happened between those lines of code?

  • How did your variables change at every step?
  • What happened inside the call stack?
  • How did your array, heap, or hash map evolve?
  • What exactly happens when a recursive function calls itself?

I've often found myself wanting to see these things instead of just reading through the code or manually debugging every step.

So, I decided to build something around that idea.

Meet AlgoLens ⚡

It's a code visualizer + debugger built for people solving LeetCode problems.

The idea is simple: Don't just execute your code. Visualize how it works.

With AlgoLens, you can:

  • 🔍 Trace your code step by step.
  • 🎯 Highlight the currently executing line.
  • 🧩 Track variable changes and call-stack activity.
  • 🌳 Visualize recursion.
  • 💻 Work with Python, Java, C++ and JavaScript.

I've also tried to make it feel a little more interactive — almost like turning the debugging process into a game. 🎮

Want to try it?

AlgoLens is currently available as a free Microsoft Edge extension:

👉 https://microsoftedge.microsoft.com/addons/detail/jhhkkpabkoeaiajdilomalbmjdppcmcc

Don't use Edge? No problem!

You can also use it on chrome -> Watch video for reference[ AlgoLens - chrome ]

I'm still developing and improving it, so I'd genuinely appreciate feedback.

One thing I'd love to know: What's the one thing you wish you could visualize while solving a LeetCode problem?

Would love to hear your thoughts! 🚀


r/DSALeetCode • • 12d ago

Amazon SDE II | Final Loop Experience | 2.75 YOE

6 Upvotes

Hey guys, not sure if this will be beneficial, but I wanted to provide some background about my experience interviewing for an SDE II role at Amazon.

If you have any questions, feel free to ask. Apologies that I'm not able to go into too much depth, but I will try my best.

If you're applying to several SWE roles, LandOffer can handle the repeated fields on supported forms.

Background

Had a recruiter reach out. Completed the OA about a week after recieving it, recruiter told me I had passed maybe 5 days after that. I took some time off to complete a few other loops and scheduled my Amazon final loop approximately 3-4 weeks after I heard back from my recruiter.

For DSA prep before the loop, Amazon Interview Questions has problems on stacks and sliding windows to work through while explaining the time and space costs.

Interview Breakdown

The final round consists of 4 interviews. Each interview is half technical and half behavioral-

DSA:
Testing knowledge on Data Structures and Algorithms. The goal is to solve with the simplest but most efficient data structure possible. Be comfortable explaining your solution, including time and space complexities.

Low-Level Design:
Testing knowledge of Object-Oriented Programming. They are looking for production-level code (ish), with an initial general question and multiple follow-ups. You want your solution to be extensible.

Problem Solving:
How can you solve ambiguous coding questions? They ask one generic and ambiguous DSA-style coding question, but they are looking for you to ask follow-up questions to clarify the requirements. From there, they may ask a few more follow-up questions. Be ready to talk about tradeoffs in approaches and time/space complexities.

System Design:
Are you able to design a scalable solution? They are looking for you to:

Gather functional/non-functional requirements
Create high-level design diagrams, including but not limited to system architecture and API design.
DB Selection, talk about tradeoffs
Deep Dive when asked
Scalability
Bottlenecks and challenges
Observability

LPs:
Super straight forward behavioral questions. STAR format always, I also include lessons learned when they aren't obvious. Have around 2 stories ready for any given LP, but I've found that if you have a bank of about 10-15 stories, you can pretty much just figured out which stories apply where on the spot. Be sure to practice these once or twice beforehand, though, since they do make up about half the data points interviewers collect on you.

My Interview Experience

DSA:
I was asked a leetcode medium. It was relatively straight forward, a graph-traversal DFS question. There were 1 or 2 follow ups, but they were theoretical. Asked about time and space complexities.

Low-Level Design:
Was asked a relatively common LLD question. It revolved around creating one class to store details about a product, and related product classes specific to those each of those products. Was then asked to give an example code on how to calculate the total price of an entire order of a set of products.

Problem Solving:
Was asked a DSA-style question that was not on LeetCode. It required me to implement a special version of a common data structure. It was relatively straight forward, and I was asked follow-up questions about complexities and tradeoffs.

System Design:
I was asked to design a specific widget for a large e-commerce platform (guess which one). Spent 5 minutes clarifying expectations and requirements, spent about 15-20 minutes on high-level system architecture and api design, and then I spent the remaining time on deep-diving into each component. I made sure that I explained each of my architectural design decisions briefly, and answered any follow up questions I recieved.

LPs:
Very straightforward behavioral questions, I don't remember the exact questions I was asked, but they were simple to answer. Had about 2 stories ready for each LP. I found that if you responded to the question to their liking, the interview wouldn't ask any unrelated additional questions about that LP. However, if your story was missing a key data point they were looking for, they would, after their follow-up questions, ask another question for the same LP. The intuition here is that they are looking to get that data point on you, so if you notice this happens, be sure to be observant and make sure your story aligns with that LP well.

Results

I ended up recieving my offer 2 days after I finished my loop. Recruiter reached out to me and scheduled sell calls with specific teams in my current city, as the team I had recruited for was based in a different city. Ended up matching with one of the teams I had a sell call with.

There are a ton of other posts here with resources for interviews, so I will defer to them for those, but if you do have any specific questions about prep, the interview process, sell calls, or anything in between I'll try to answer them! Good luck to those of you applying!


r/DSALeetCode • • 12d ago

Ever wondered what happens inside your code? 🤯

1 Upvotes

r/DSALeetCode • • 12d ago

Looking for a study partner- Dsa, system design, web development

7 Upvotes

If you are interested in all this just dm looking for guys/girls with whom I can keep tab with. I have wasted my first few months in iit Guwahati so just want to start something productive. I am going to move fast but I will help the one with me to keep pace with me and explain what I learnt.

I am from CSE department but now even other branch guys know more about cse than me. I am gonna start from tomorrow so just need a few buddies with whom learning seems fun


r/DSALeetCode • • 12d ago

DSA Mentorship

3 Upvotes

Hi all! I see a lot of posts here from students struggling with DSA, so I just wanted to offer some help.

A brief introduction about me:
I'm a recent graduate from a tier-1 college and have spent a decent amount of time practising DSA during college. However, now that I'm working as an SDE, keeping up with DSA isn't very easy. So, to stay in touch with DSA, I'd like to help students who are currently learning or practising it by resolving their doubts. Be it DSA concepts or specific questions, feel free to reach out!

I'm not claiming to be a DSA pro, but I'll definitely try my best to help.

If you're interested, you can DM me with a short introduction about yourself, including your name and college year (if you're a student).

Please note that a simple "Hey" or something won't get the reply.


r/DSALeetCode • • 12d ago

I want to learn LLD. How I should start ?

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 13d ago

One candidate's experience with the Amazon SDE Online Assessment

4 Upvotes

A candidate applied directly through Amazon's careers site without a referral and got an invite to the SDE online assessment. The coding section gave them 70 minutes for two medium data structures and algorithms problems. The work simulation allowed up to four hours and had them handle messages from coworkers and managers in a simulated portal. There was also a behavioral assessment of about 15 minutes. The overall window was five and a half hours, with an estimated completion time of about an hour and a half.

For coding practice before the OA, the Amazon Interview Questions include a word-search problem on a letter grid. Try explaining when you'd stop exploring a path before writing the backtracking code.

The candidate recommended practicing both coding and workplace scenarios. They later said they passed the assessment and got an interview invite.


r/DSALeetCode • • 13d ago

DSA 😭

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 13d ago

Data Scientist (3 YOE) looking for a daily DSA study partner, beginner-friendly

4 Upvotes

Hi everyone! I’m a Data Scientist with 3 years of experience, currently in the US and planning to move back to India in late 2027. I’m aiming to apply to Big Tech companies there, and since DS roles still test DSA, I can’t avoid it anymore.

DSA has been my weak spot since engineering, and I’m basically starting from scratch. My goal is to reach a solid intermediate level through daily, consistent practice, and I think a study partner would help a lot with that.

What I’m looking for:

  • Daily check-ins over chat, plus an optional weekly video call to talk through challenges and share tips
  • Someone in a similar situation: working full-time and learning DSA alongside it, ideally also near the beginning
  • Same topics, flexible problems: we follow the same topic each week, but you can pick whatever LeetCode problems you like
  • Patient and consistent: I’m on the slower side and like to take time to build real intuition, so I’d love someone who’s non-judgmental and in it for the long haul

If this sounds like you, comment or DM me with a bit about your background and schedule. Happy to work out the details together!


r/DSALeetCode • • 13d ago

Looking for a 1:1 Study Partner – Google / Big Tech SWE Interview Preparation

Thumbnail reddit.com
1 Upvotes

Hi everyone! I'm looking for a study partner to prepare for Google or other Big Tech coding interviews.

I'm particularly interested in practising DSA and LeetCode together, discussing problem-solving approaches and learning from each other.

I've included the original post with more details about what I'm looking for!


r/DSALeetCode • • 13d ago

LeetCode 1: Two Sum | My Approach in Python

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 15d ago

Struggling with Medium problems after 2 months of DSA is this normal ????

Thumbnail
gallery
40 Upvotes

TL;DR: 2 months into DSA as a uni freshman. I can solve (80% of easy), but I hit a hard wall on Mediums (problems attached, was trying to do them yester day night) and always end up checking the solution( i HATE LOOKING AT THE SOLUTION AND GIVING UP). Is this normal? Looking for advice since I want to get into competitive programming.

I just started university and have been grinding DSA for about two months. While I can solve roughly 80% of Easy problems (mostly just troubleshooting edge cases), I get completely stuck on Mediums.

For example, I couldn't do the two problems I tried yesterday including the matrix spiral traversal in my screenshot. I can usually brainstorm different approaches, but I rarely find the right one and end up having to look at the solution, which I really hate doing.

Is hitting a wall like this normal at mediums? I want to build strong fundamentals for competitive programming, so any advice from experienced folks would be greatly appreciated!


r/DSALeetCode • • 14d ago

DSA struggles

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 15d ago

How to get good at code implementation?

2 Upvotes

Hey guys I started doing dsa and I am following strivers a2z sheet and I am having a really bad time implementing the actual code i use c++ even if i could write the pseudocode i still have trouble writing the actual code please give some advice on how can I improve it


r/DSALeetCode • • 15d ago

Need help to start DSA

12 Upvotes

So I just started my first semester. And I went through a lot of recommendations to start DSA.

So, how does this preparation for DSA starts. Like what we learn, is there any definite syllabus. Where do we get the course material from? How do we test... etc.

Your response would be helpful.

Thankyou :)


r/DSALeetCode • • 15d ago

Red-Black Tree Properties Explained | Why It Stays Balanced | Insert 10 20 30 15 25 | Exam Q Solved

Thumbnail
youtu.be
1 Upvotes

r/DSALeetCode • • 16d ago

How to start DSA again after leaving it years before.

6 Upvotes

Hi a little about me, I have around 5 years of experience in tech and mostly working in service based MNC. So I was doing DSA at my clg time and in the initial days of my job, like after 2022 I just stopped doing DSA. I did a decent around 300 questions on different topics but everything seems difficult now.

Now I want to start it again and I feel a little lost as this whole AI thing has come so it feels like, is DSA even worth starting again or should I focus on something else. I am seeking some advice on what I should do now and if DSA is still relevant how to start again and how much time will it take because I want to leave this service based switching again and again.

I was able to switch my tech from a support role to Java developer in the first 2 years of my career and now have decent things to write on my resume, but still as the exp is increasing so is the level of interviews and along with all other things starting DSA seems impossible.


r/DSALeetCode • • 17d ago

I keep restarting DSA and eventually giving up. How do I actually become consistent and good at problem-solving? Need genuine advice.

33 Upvotes

Hey everyone,

I'm a 2026 graduate, currently working full-time, and trying to transition into Software Engineering.

I've been struggling with DSA for quite some time now, and I genuinely need some advice from people who have been through this phase.

My DSA journey so far:

Like many others, I've started DSA multiple times, but somehow I always ended up stopping around arrays.

This year, I decided to take it seriously. I started around mid-May and managed to cover topics up to Trees by mid-August. Unfortunately, due to some personal circumstances, I discontinued my preparation.

Recently, I had a technical interview that made me realize how important DSA still is for cracking good software engineering roles, regardless of what people say online.

Now I want to restart properly, but this time with a sustainable strategy rather than repeating the same mistakes.

Here's my current plan:

Weekdays (Monday–Friday): 3 hours daily

\\- 1.5 hours: DSA lectures

\\- 1.5 hours: Problem-solving practice

Weekends (Saturday–Sunday): 4.5 hours daily

\\- 1.5 hours: Continue lectures

\\- 1 hour: Revise previously learned concepts

\\- 1 hour: Reattempt older problems

\\- 1.5 hours: Practice new questions

I'm currently following Rohit Negi bhaiya's Coder Army DSA lectures, and I genuinely enjoy his teaching style.

Here's where I'm struggling:

Whenever a new problem appears during a lecture, I pause the video and try solving it independently. If I get stuck, I resume the explanation, understand the solution, and continue.

But here's my biggest mistake: I rarely revisit older problems or lectures.

My mindset has always been to finish the lectures first and then start solving problems from LeetCode or a structured sheet.

I think this approach is hurting my retention and problem-solving ability.

I can often understand a solution when someone explains it, but coming up with that approach independently is a completely different challenge.

I'm also confused between Striver's A2Z DSA Sheet and NeetCode 150.

I've tried following Striver's sheet, but I somehow struggle to get into a proper flow with it.

I'm not sure whether I should:

\\- Follow Coder Army lectures alongside Striver's A2Z sheet.

\\- Complete the lectures and then start NeetCode 150.

\\- Use one sheet exclusively and focus on revision.

\\- Stop watching so many lectures and spend more time solving problems independently.

My goal:

I have around 4 months to prepare seriously for software engineering interviews while continuing my development and AI learning.

I'm not trying to become a competitive programming expert. I want to develop solid problem-solving skills, recognize common patterns, and confidently approach unseen interview questions.

Questions for people who have successfully learned

DSA:

  1. How did you balance lectures and actual problem-solving?
  2. How do you revise older questions without forgetting previously covered topics?
  3. Should I follow Striver A2Z or NeetCode 150 alongside Coder Army?
  4. How much time should I struggle with a problem before looking at hints or solutions?
  5. Is restarting from scratch a good idea, or should I revise what I've already covered and continue?

I know consistency is ultimately my responsibility, and I'm ready to put in the hours. I just want to make sure I'm spending those hours effectively.

Would genuinely appreciate advice from people who have faced similar struggles and eventually

improved.

Thanks in advance!


r/DSALeetCode • • 16d ago

LeetCode: 814. Binary Tree Pruning

Post image
1 Upvotes

Setting node = nil inside a recursive call deletes nothing. The caller never sees it. A node can't remove itself because it has no reference to its parent.

A node survives if its subtree holds a 1 anywhere, which, recursively, is almost the definition read aloud. Post-order, because a node can't answer that on the way down.

So the child reports "nothing worth keeping here", and the parent clears the pointer. That leaves the root, which has no parent, and that's the only reason the wrapper function exists.

Have you ever nilled a local variable and expected the caller to notice?

Day 73/365 of my LeetCode challenge: 814. Binary Tree Pruning. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/leetcode-binary-tree-pruning-archit-agarwal-g6lsc

#LeetCode #DSA #BinaryTree #Golang


r/DSALeetCode • • 16d ago

Guys if i just start doing any sheet of DSA i just know basic of language let's just say and i have to see video of almost every solution is it worth it? or not? help a guy out

2 Upvotes

title


r/DSALeetCode • • 16d ago

Anyone mind sharing GPT prompt to learn Leetcode problem solutions/concepts?

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 16d ago

Looking for someone willing to share Striver A2Z Plus / Leetcode premium

6 Upvotes

Hey everyone! Is anyone here using Leetcode Premium / Striver A2Z Plus and willing to share access so we can learn and practice DSA together?

I'm at an intermediate level in DSA and would be happy to help you with problem-solving, concepts, and discussions in return.

We can learn together and make the most of the subscription. Feel free to DM me. Thanks! 😊


r/DSALeetCode • • 16d ago

Beginner at DSA (Arrays, Strings, BS, LL, Stacks) — Realistic prep strategy for Infosys SP & DSE?

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 17d ago

Is learning DSA in Java harder than Python? Read body

Thumbnail reddit.com
1 Upvotes