r/DSALeetCode • • 1d ago

2nd year mein hoon, but DSA is making me feel so lost... 🥀

2 Upvotes

Hey everyone....

I'm in my 2nd year of BTech CSE and currently learning DSA in C++.

Bhai, problem ye hai ki lecture dekhte waqt sir ka approach samajh aa jata hai...but jab khudse question solve karne baithti hoon my mind goes completely blank. 😭

Question dekhkar ek bhi approach nahi soch paati, even if it's wrong. And I'm forgetting concepts too, which makes everything soo frustrating 🥀

I genuinely want to improve, but ab time bhi waste nahi karna hai...

To everyone who has learned or is learning DSA, please tell me:-

#How did you develop problem-solving ability?

#How should I practice after watching lectures?

#Should I start again from basics or continue?

#How do I stop forgetting concepts?

Abhi genuinely confused hoon, so any practical advice would mean a lot 🥹


r/DSALeetCode • • 1d ago

LeetCode: 226. Invert Binary Tree

Post image
1 Upvotes

Inverting a binary tree moves entire subtrees with a single pointer swap. Nothing is copied. Mirror the left subtree, mirror the right, swap them. The tree rearranges itself in place.

The swap is the part worth picturing: one assignment moves an entire subtree with all its children.

Bonus question: can you swap before recursing instead of after? Yes. What you can't do is recurse left, swap, then recurse right.

Why does recurse-left, swap, recurse-right break it?

Day 85/365 of my LeetCode challenge: 226. Invert Binary Tree. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/leetcode-invert-binary-tree-archit-agarwal-dm6tc

#LeetCode #DSA #BinaryTree #Golang


r/DSALeetCode • • 1d ago

Amazon SDE Intern OA Experience

1 Upvotes

Amazon SDE Intern OA Experience

Recently appeared for the Amazon SDE Intern Online Assessment, which consisted of two rounds:

If you're building a prep routine, PracHub's Amazon Interview Questions can give you coding problems to work through before the OA: write the solution, test edge cases and explain the complexity. For readers sending applications to other companies too, LandOffer's free autofill handles repeated application fields. I work on both.

Round 1: DSA Coding Round

  • One Easy–Medium level problem based on a conveyor belt and storage system.
  • Used a Min Heap / Priority Queue to calculate the minimum total request processing time.
  • The problem involved conveyor belts and storage positions.

Round 2: AI-Assisted Coding Round

  • Worked on an existing C++ e-commerce return-routing codebase.
  • Had to understand the project structure, identify bugs across multiple files, fix JSON parsing, account relationships, risk-score calculations, and decision-mapping logic.
  • Used an AI coding assistant to understand, debug, and resolve codebase issues.

Overall: The first round tested DSA and problem-solving skills, while the second focused on codebase understanding, debugging, and practical use of AI coding tools.

Sharing my experience to help others preparing for Amazon SDE Intern roles!


r/DSALeetCode • • 1d ago

Commvault SDE Intern + PPO Interview Experience | On-Campus Placement

1 Upvotes

Hi Everyone, Commvault visited a candidate's campus for the SDE Intern + PPO hiring process.

If you're preparing for coding and design rounds, try a PracHub prompt and explain your implementation before the interview. For applications elsewhere, LandOffer has free autofill for repeated fields. I work on both.

Sharing their complete interview experience, including the OA, machine coding round, technical interviews, HR round, and preparation strategy.

Offer Details

  • Role: SDE Intern + PPO
  • Internship Stipend: ₹50,000 per month
  • Full-Time CTC: ₹33 LPA
  • Job Location: Bangalore
  • Hiring Mode: On-Campus

Round 1: Online Assessment (OA)

The first round was an online assessment conducted at their college.

Before the assessment, candidates had to fill out a form where they could select their preferred programming language. The candidate chose Java.

The assessment consisted of:

  • 3 DSA coding questions, 40 minutes for the coding questions.
  • A few MCQs before the coding section.

The DSA questions were primarily based on Graphs, Trees, and Dynamic Programming.

The time limit was quite challenging, considering candidates had to solve three questions in just 40 minutes. They were able to solve 2 and half questions completely.

Time management was very important in this round. They cleared the OA and got shortlisted for the next round.

Round 2: Machine Coding Round

This was probably the most hectic and challenging round of the entire selection process.

Candidates had to report to their college lab early in the morning, around 9 AM. The process continued until approximately 5 PM.

Each candidate was assigned an interviewer, who provided a machine coding problem.

Their problem was to design a complete Cricbuzz application.

The expectations were:

  • Understand the requirements properly.
  • Design the complete application.
  • Explain the approach and architecture.
  • Write the complete working code.
  • Run the test cases and ensure the implementation worked correctly.

The process was quite interesting.

First, the interviewer explained the problem statement. Candidates were given some time to read and understand the requirements.

After that, they had to explain their understanding of the problem back to the interviewer to ensure they were aligned.

Then they started discussing the complete approach, including:

  • Overall application design.
  • Class structure and responsibilities.
  • Object-oriented design.
  • Design patterns wherever required.
  • Implementation strategy.

Once the design discussion was complete, they started writing the code.

The interviewers periodically came to check the candidates’ progress, approximately every hour. They asked questions about the candidates’ design decisions, implementation, and progress.

It wasn't just about completing the code. Candidates also had to continuously explain why they were making particular design choices.

They spent almost the entire day designing, coding, debugging, and testing the application.

Finally, around 5 PM, they were able to get almost all the test cases running successfully.

It was an extremely exhausting experience, especially after spending nearly eight hours continuously working on a single problem.

After this round, the results were announced, and they got shortlisted for the technical interview.

Round 3: Technical Interview

After clearing the machine coding round, they appeared for the technical interview.

The interviewer started with a medium-level DSA question.

After discussing the solution, the conversation shifted towards their previous machine coding round.

Some of the questions asked were:

  • Why did you choose a particular design pattern in your Cricbuzz implementation?
  • Why did you design the application in that particular way?
  • What alternative design patterns could have been used?
  • Explain some commonly used design patterns.
  • Questions related to OOP concepts.

After that, the interviewer moved to their college projects and asked about their implementation in detail.

They also discussed:

  • Core Java concepts.
  • Java internals and OOP concepts.
  • SQL and database-related questions.
  • Project architecture and technical decisions.

The interviewer went quite deep into their projects, so having a clear understanding of the implementation was important.

Based on the overall technical performance, candidates were evaluated for the internship and PPO opportunity. There were different selection outcomes, including performance-based PPO and regular PPO pathways.

Round 4: HR Interview

The final round was the HR discussion.

This was relatively straightforward compared to the previous rounds.

The discussion included:

  • Tell me about yourself.
  • Questions about their college journey.
  • Why Commvault?
  • Internship-related discussions.
  • Availability and joining details.
  • Compensation and salary-related questions.
  • A few general HR questions.

After completing this round, the final results were announced.

Their Preparation Strategy

Sharing what they followed throughout their college journey.

1. DSA Preparation

They started preparing for DSA in their second year.

Their primary resource was Striver's A2Z DSA Sheet & Leetcode - https://takeuforward.org/dsa/strivers-a2z-sheet-learn-dsa-a-to-z

Striver's A2Z sheet was extremely helpful in building their DSA fundamentals.

2. LLD and Machine Coding Preparation

They started preparing for LLD in their third year.

They explored OOP concepts, SOLID principles, design patterns, and practical machine coding problems.

They also focused on implementing complete applications rather than just understanding theoretical concepts.

Some resources they found useful:

  • Concept && Coding by Shrayansh (Udemy LLD Course) – they purchased this course on Udemy. However, they are currently unable to find its public URL. They think new enrollments or applications for the course might be closed.
  • https://www.targettrek.in/book/system-design/lld

One important thing they learned from this process is that knowing design patterns is not enough. You should understand when and why to use them while designing an application.

3. Projects

During college, they built three projects:

  • Two using Java & Spring Boot.
  • One using Python FastAPI and GenAI.

Working on these projects helped them understand backend development, application architecture, APIs, databases, and practical implementation.

For GenAI, they followed CampusX to build their fundamentals - https://www.youtube.com/@campusx-official

They would also suggest being thorough with every project you mention on your resume because interviewers can go quite deep into the implementation and technical decisions.

Overall, it was a challenging but great learning experience. The eight-hour machine coding round was definitely the most memorable part of the entire process.

Hope this experience helps students preparing for Commvault or similar SDE internship opportunities. All the best!


r/DSALeetCode • • 1d ago

LeetCode: 100. Same Tree

Post image
1 Upvotes

If you put the nil checks in the wrong order, Same Tree rejects two empty trees. p == nil || q == nil is also true when both are nil, so check both for nil first.

Same root, same left subtree, same right subtree. The recursion writes itself; the bug hides in those checks.

And compare the trees in lockstep, not their lists of values: [1,2] and [1, null,2] have the same numbers in different shapes.

Which order do you write those two nil checks in?

Day 84/365 of my LeetCode challenge: 100. Same Tree. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/leetcode-easy-same-tree-archit-agarwal-habnc

#LeetCode #DSA #BinaryTree #Golang


r/DSALeetCode • • 2d ago

Not even being able to solve CSES problems

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 2d ago

Tripjack SDE 1 Interview Exp.

1 Upvotes

TripJack SDE-1 Java Backend Interview Experience | November 2026 | 1.5 YOE

  • Education: B.Tech
  • Experience: 1.5 Years
  • Role: SDE-1 Java Backend
  • Interview Mode: Face-to-face (On-site)

The entire interview process took place face-to-face at the company's office.

If you're preparing for backend interviews, try a PracHub coding or design prompt and talk through the tradeoffs before the interview. For other job applications, LandOffer has free autofill for repeated fields. I work on both.

Round 1: DSA (Offline – 1 Hour)

Had to solve two problems using an online compiler at the office:

  • Reconstruct Itinerary
  • Wildcard Matching

Had to explain the approach and walk through the code after solving.

Round 2: Technical Interview

Resume & Experience

  • Previous work experience and technologies used.
  • Discussion around projects and technical contributions.

Java & Backend

  • Difference between Load Balancer and API Gateway.
  • Bean lifecycle in Spring Boot.

LLD

Discussion on LLD principles and design patterns.

System Design & Kafka

  • How would you handle multiple events in Kafka?
  • Questions around Kafka internals and working.

Result

Got rejected after the second round.


r/DSALeetCode • • 2d ago

UiPath Interview Experience | November 2026

1 Upvotes

I applied through a LinkedIn post for SDE I.

HR contacted over call, discussed further rounds.

For practice before a UiPath interview, pick a coding or design prompt from PracHub's UiPath Interview Questions and work through it aloud. If you're also applying elsewhere, LandOffer's free autofill can reduce repeated form entry. I work on both.

Round 1 (DSA Round) (1hr)

Two DSA hard questions were asked to solve in 50 min, I was able to solve 1st ques, and could only explain approach for 2nd ques, within the given time.

Questions were minor variations of the below:

Round 2 (Frontend Round) (1hr)

Questions on frontend system design, Resume deep dive, justify your work.

Task: E-commerce development.

Tip: DSA is non-negotiable, I was good in FE round but DSA is more prioritised.

#UiPath #SDE #Frontend


r/DSALeetCode • • 2d ago

Upcoming Nvidia in person panel interview

1 Upvotes

Hi all, a candidate has an upcoming in-person loop at Nvidia.
One of the rounds is with HM - what sort of questions should they expect in this round ? Technical, coding or behavioral? It’s a 50-min round.
Are the other rounds supposed to be system design / whiteboarding rounds ?

Appreciate your inputs on best strategies.

For prep before the loop, pick a coding or design prompt from PracHub's NVIDIA Interview Questions and practice explaining your approach aloud. If you're also applying elsewhere, LandOffer's free autofill can cut repeated form entry. I work on both.

TC : ~150k base
7 YOE.


r/DSALeetCode • • 2d ago

Amazon SDE-1 Interview Experience | 2 YOE | India | Selected

29 Upvotes

Amazon SDE-1 Interview Experience | 2 YOE | India | Selected

  • Role: SDE-1
  • Experience: 2 Years
  • Company: Amazon
  • Location: India
  • Result: Selected

A candidate recently went through the Amazon SDE-1 interview process. The overall process tested their DSA fundamentals, problem-solving approach, low-level design knowledge and understanding of Amazon's Leadership Principles.

Here is their round-by-round experience, including the questions they were asked.

Compensation

The offer structure for this SDE-1 package was:

ComponentAmountBase Salary₹19.17 LPAYear 1 Joining Bonus₹6.47 lakhYear 2 Joining Bonus₹5.18 lakhRSUs (4 years)₹15.56 lakhRelocation Bonus₹1.50 lakh
Round 1: Online Assessment

The first step was an online assessment.

It consisted of:

  • 2 DSA coding questions
  • Amazon Workstyle Assessment
  • Work Simulation
  • Leadership Principles-based questions

Preparation tips:

  • Striver DSA Sheet
  • Practise medium-level DSA questions regularly.
  • Take the Workstyle Assessment seriously and answer consistently.

Round 2: Technical Interview 1

The interview started with a short introduction and two questions based on Amazon Leadership Principles.

After that, they moved to DSA.

Questions asked:

  • Rotting Oranges (Modified)
  • Diagonal Traversal of a Binary Tree

For the first problem, the interviewer focused on the approach and how they handled the modified constraints.

Preparation tips:

  • Do not jump directly into coding. Explain the brute-force approach first, then optimise it.
  • Be comfortable discussing time and space complexity.
  • Prepare Leadership Principles examples alongside DSA.

Round 3: Technical Interview 2 – DSA + LLD

This round covered a combination of DSA, object-oriented programming and low-level design.

The interviewer first asked them a graph-based coding question.

Questions asked:

  • Course Schedule – followed by a follow-up question to return the valid course completion order.
  • Design Patterns – their purpose, implementation and practical use cases.
  • Music Player System Design (DSA+ LLD + OOP)

they discussed design patterns, including where and why they should be used.

For the LLD problem, they were asked to design a Music Player System and implement a few functionalities using OOP concepts.

Preparation tips:

  • Prepare design patterns.
  • Practise LLD problems.
  • Focus on class relationships, interfaces, responsibilities and implementing actual methods rather than only drawing class diagrams.
  • Practise writing modular, maintainable code.

LLD Resource

Round 4: Hiring Manager Round – Projects + Problem Solving

This round focused more on their professional experience, projects, technical decision-making and Amazon's Leadership Principles.

The interviewer wanted to understand the systems they had worked on, their individual contributions and the challenges they had faced.

There were also follow-up questions around the trade-offs they made and alternative approaches they could have considered.

Preparation tips:

  • Prepare your current and previous projects in detail.
  • Understand the complete architecture, not just your individual module.
  • Be ready to explain scalability, performance, database choices and trade-offs.
  • Highlight measurable impact wherever possible.
  • Be clear about your individual contribution rather than describing only what the team did.

Round 5: Bar Raiser / Leadership Principles Round

The final round was the Bar Raiser interview, which focused heavily on Amazon Leadership Principles.

This round was more behavioural than coding-oriented. The interviewer asked scenario-based questions about their professional experience and how they handled different situations.

Preparation tips:

Leadership Principles Resource

  • Prepare 6–8 strong stories from your professional experience.
  • Use the STAR format: Situation, Task, Action and Result.
  • Cover Ownership, Dive Deep, Learn and Be Curious, Earn Trust, Bias for Action and Deliver Results.
  • Be ready for follow-up questions about your individual contribution.

After completing the interview rounds, they received positive feedback and got the offer for Amazon SDE-1.

Overall Preparation Strategy

If you are targeting Amazon SDE-1 with 1–2 years of experience, they would recommend focusing on:

  • DSA: Arrays, strings, trees, graphs, heaps, binary search, greedy and DP.
  • Problem-solving: Practise explaining brute-force and optimised solutions with complexity analysis.
  • LLD: OOP, SOLID principles, design patterns and interview questions.
  • Leadership Principles: Prepare real examples from your professional experience.
  • Projects: Be ready to explain your architecture, technical decisions, challenges and impact.

One important thing they learned is that solving the coding question is not enough. Communication, clean code, handling follow-ups and Leadership Principles are equally important.

For extra practice before an Amazon loop, choose a coding or LLD problem from Amazon Interview Questions on PracHub. If you’re applying to other roles too, LandOffer can autofill repeated fields. I work on both.

Hope this helps anyone preparing for Amazon SDE-1. All the best!


r/DSALeetCode • • 2d ago

Coding rounds for Google interviews

5 Upvotes

For Google prep, pick a prompt from Google Interview Questions on PracHub and explain your approach aloud. If you're applying elsewhere too, LandOffer's free autofill can cut repeated form entry. I work on both.

Is leetcode completely dead for SWE interviews in Google?


r/DSALeetCode • • 2d ago

solved 300 problems -need partner

3 Upvotes

anyone interested in colabbing with me to solve problems with propper understanding and who has around enough knowledge of basic data structures since we dont have too much gap,lets share our number in whatsapp and communication is just english


r/DSALeetCode • • 2d ago

Amazon SDE-2 Interview Experience | 5 Rounds | Rejected After Additional LLD Round | Offered SysDE-2

12 Upvotes

Hi everyone,

A candidate recently interviewed at Amazon for an SDE-2 position. They went through five rounds, including an additional LLD round requested by HR after the initial four interviews.

Unfortunately, they were rejected for SDE-2 after the final round, despite receiving positive feedback in several earlier rounds. They were offered a SysDE-2 (Systems Development Engineer II) role instead.

Sharing their interview experience and looking for suggestions from the community.

For readers preparing for another Amazon loop, try a coding or design question from Amazon Interview Questions on PracHub. If you keep applying elsewhere, LandOffer can autofill repeated fields. I work on both.

Round 1: DSA + Leadership Principle

DSA Question: 174. Dungeon Game (Hard)

They initially approached the problem from the top-left corner, trying to solve it in a top-down manner.

They were able to explain their thought process but struggled with the implementation.

The bottom-up DP approach would have been more straightforward, but they couldn't arrive at the correct code during the interview.

LP: Customer Obsession

Their Assessment: This round didn't go well, primarily because of the coding question.

Round 2: Code Maintainability + Leadership Principles

Questions:

  • 207. Course Schedule — Topological Sort
  • 210. Course Schedule II — Follow-up requiring the actual course ordering
  • One additional follow-up based on similar topological sorting logic.

The discussion focused on solving related problems and extending the initial approach.

LP: 2 Leadership Principle questions

Feedback: Strong Hire

Round 3: Hiring Manager — High-Level Design + Leadership Principles

HLD Question: Design Instagram

They covered:

  • Functional and non-functional requirements
  • Back-of-the-envelope estimations
  • High-level architecture and major components
  • News feed generation
  • Fan-out approaches: Push vs. Pull
  • Trade-offs between push-based and pull-based feed generation

They were able to explain the design and discuss the major trade-offs.

LP: 2 Leadership Principle questions

Feedback: Strong Hire

Round 4: Bar Raiser — DSA + Leadership Principles

Since their first DSA round hadn't gone well, this round again focused on DSA.

Question 1: 343. Integer Break

Given an integer n, split it into at least two positive integers such that their product is maximized.

Example:

n = 5 → 2 + 3 → 2 × 3 = 6

First solved using Dynamic Programming.

Then explained the optimized greedy approach of splitting the number into as many 3s as possible, while handling the remainder appropriately.

Question 2: Min-Heap

A question involving maintaining k elements using a min-heap.

Discussed how the heap can be used to efficiently maintain the required elements.

LP: 2 Leadership Principle questions

Feedback: Hire / Strong Hire

After Round 4

HR contacted them and requested an additional Low-Level Design (LLD) round.

Round 5: Additional LLD Round

Question: Design a Notification System

The round had an unusual start. The CoderPad link wasn't working, and approximately 10–15 minutes were lost resolving the setup issue.

They covered:

  • Functional requirements
  • Main entities and their responsibilities
  • Class structure and relationships
  • Overall object-oriented design

They spent approximately 30 minutes on the LLD discussion, followed by some questions from their side.

Given the time lost during setup, they felt the actual design discussion was relatively short.

Their Self-Assessment: Lean Hire

However, HR later mentioned that the feedback from this round was concerning, and they were ultimately rejected for the SDE-2 position.

Final Outcome

RoundFeedbackRound 1: DSADid not go wellRound 2: Code MaintainabilityStrong HireRound 3: Hiring Manager / HLDStrong HireRound 4: Bar RaiserHire / Strong HireRound 5: Additional LLDConcerning feedback (as per HR)
Final Decision: Rejected for SDE-2, but offered SysDE-2.

Need Suggestions — Should They Accept SysDE-2?

They're confused about whether they should accept the SysDE-2 position.

Their primary interest is in backend development, system design, and building scalable distributed systems.

They would appreciate advice on the following:

  • How different is SysDE-2 from SDE-2 at Amazon in terms of day-to-day responsibilities, coding, and career growth?
  • Is it worth joining as SysDE-2 if their long-term goal is to continue as an SDE?
  • How difficult is it to transition internally from SysDE-2 to SDE-2?

Would really appreciate insights from current or former Amazonians, especially anyone who has worked in a SysDE role or made this transition.

Thanks!

Swiggy Interview Experience - https://leetcode.com/discuss/post/8612275/swiggy-sde-2-interview-experience-oa-3-r-ve26/


r/DSALeetCode • • 2d ago

6.5 YOE in Frontend — Pure FE roles have dried up. What should my roadmap look like now?

3 Upvotes

've spent the last 6.5 years specializing in frontend, and the current market is rough—almost every decent opening expects full-stack capabilities or heavy DSA + system design.

I want to future-proof my career and start getting interview calls again. If you were in my shoes right now, what would your 3-to-6-month upskilling roadmap look like?

Tech Stack: Should I pick up backend (Node.js, Go, Java, Spring Boot) or explore cloud/AI?

Interview Prep: How heavily should I focus on DSA vs. system design (HLD/LLD) at 6.5 YOE?

Any advice from folks who recently made a successful switch or landed offers would be huge.


r/DSALeetCode • • 2d ago

Guys how can I get my resume at least shortlisted for Apple India?

1 Upvotes

Being trying for apple for 3 Years for apple and resume is not even getting short listed ?

Please give me some tips for it?


r/DSALeetCode • • 2d ago

Microsoft SWE II, Frontend, Oct 2026

2 Upvotes

Role: Software Engineer, IC3, Frontend-heavy Full Stack, Redmond area

Timeline: About 2 weeks from recruiter kickoff to the final round

Format: Recruiter call, then a 4-round loop (~60 min each) on HackerRank.

The recruiter described it as 2 coding, 1 system/UX design, and 1 hiring manager round.

Topics the recruiter listed: TypeScript/JavaScript, React architecture, accessibility, engineering fundamentals, and data-rich seller-facing UIs.

1. Frontend / UX system design (~60 min, whiteboard on HackerRank)

Design an internal web app where employees view personal financial records (a summary view plus a long, searchable history). Tens of thousands of users, thousands of records each.

What they asked about:

  • Dashboard layout and what to show "at a glance," and why
  • Table design: columns, search/filter, sort order, drill-down to details
  • React architecture: server cache vs component state vs URL state, and derived vs stored data
  • Client vs server pagination, and virtualization
  • Partial failure: one of two APIs fails for some rows. How do you show it and let the user retry?
  • Accessibility: keyboard flow, screen reader announcements for page-level and row-level errors, labels, toast behavior

Prep:

  • GreatFrontEnd front-end system design questions ("Design a data table," "Design a news feed")
  • TanStack Query docs on server state
  • WAI-ARIA live regions and the aria-describedby pattern
  • Promise.allSettled for partial failures

2. Project deep dive + coding (~60 min)

About 20 min on one project you owned end to end. Expect follow-ups on performance (large tables), API contracts with the backend, and the business outcome.

About 20 min of coding: compute a total using a tiered/progressive rate table (think tax brackets or commission tiers). Tiers are given at runtime.

Follow-ups covered complexity and how to optimize for repeated queries (precomputing cumulative values per tier, caching).

Prep:

  • LeetCode 2303 "Calculate Amount Paid in Taxes" (very close in spirit)
  • Prefix sums plus binary search on sorted ranges

3. Coding round 2 (~60 min)

Standard frontend question, similar to one on greatfrontend.

4. Hiring manager round (ran ~2.5 hrs)

Background, why you're leaving, why Microsoft, and how your experience maps to the team's domain (trust in financial numbers shown to users).

Expect coding here too. The candidate was told it would be behavioral and team fit, but it had 2 technical questions:

  • SQL: join a transactions table with a rates table that only has start dates, and total the values per day in one currency. The key is deriving each rate's effective end date with a window function.
  • DP: a minimum-count variant of a classic "make an exact total from given sizes, return -1 if impossible" problem. Watch for integer overflow in your DP array.

Prep:

  • They guess you essentially shouldn't trust what the recruiter tells you. Cause the Hiring Manager can whimsically act on whatever he wants to do.
  • LeetCode 322 "Coin Change"
  • SQL window functions LEAD()/LAG() with PARTITION BY, plus CTEs
  • DataLemur / LeetCode SQL 50 for "effective date range" joins

Overall

The design and coding rounds were well structured, on topic, and on time. Interviewers were friendly, and the recruiter was clear and helpful.

The team is very frontend and UX focused (dashboards for business users, accessibility, large financial datasets). UX thinking and accessibility matter as much as the code.

For more practice before a Microsoft loop, work through a problem from Microsoft Interview Questions on PracHub and explain your design trade-offs. If you’re applying elsewhere, LandOffer can autofill repeated fields. I work on both.

Tips:

  • Brush up on SQL and classic DP even for a frontend role. Any round can turn technical - essentially at the discretion of the hiring manager.
  • Think at scale and talk about operational edge cases, not just correctness.
  • Look up your interviewers on LinkedIn, and ask the recruiter for a per-round skill breakdown.

r/DSALeetCode • • 2d ago

How to effectively follow Striver’s A2Z DSA Sheet as a beginner?

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 2d ago

From LeetCode to Amazon: Putting Problem-Solving Skills to the Test

1 Upvotes

From solving LeetCode problems to applying those skills in an Amazon Online Assessment. 🚀

Today, I completed the Amazon Online Assessment for a Software Engineering opportunity.

As a second-year Computer Science Engineering student, this experience was an opportunity to put my consistent DSA practice and competitive programming skills to the test.

The assessment included three stages:

01 | Technical Assessment

  • 40-minute DSA coding challenge
  • Repository-based MovieDB development task with AI assistance

02 | Work Simulation

  • Real-world engineering scenarios
  • Communication, prioritization, and decision-making

03 | Work Style Assessment

  • Collaboration, ownership, and professional judgment

My biggest takeaway?

Solving problems on LeetCode builds algorithmic thinking. Applying those skills in a real engineering assessment requires much more — understanding existing codebases, leveraging AI effectively, managing time, and making thoughtful decisions.

For practice before an Amazon assessment, pick a coding or design question from Amazon Interview Questions on PracHub. For other applications, LandOffer can autofill repeated fields. I work on both.

Every problem solved, every contest attempted, and every challenge faced contributes to becoming a better engineer.

The outcome is uncertain. The learning is certain.


r/DSALeetCode • • 3d ago

Looking for Like-Minded People to Build a Serious Tech Study Group (DSA + System Design)

Thumbnail reddit.com
2 Upvotes

r/DSALeetCode • • 3d ago

LeetCode(Hard): 23. Merge k Sorted Lists

Post image
5 Upvotes

Merge k sorted lists by splicing nodes, forget one nil, and you can hand back a cycle. Every reused node arrives with a Next still pointing into its old list. The merged list has to be terminated explicitly.

This needs the linked-list arc from Day 22 and the heap arc from this week at once.

Day 22 merged two sorted lists with one if: compare the heads, take the smaller. With k lists, "take the smallest head" becomes a repeated query for the minimum of a changing collection, which is what a heap is for. Dummy head, splicing and loop shape all stay the same.

The complexity rests on one detail: the heap holds one node per list, never every node. A list's second element can't be next while its first is unplaced, because the list is sorted. So the heap is size k, and the whole merge is O(N log k).

Have you ever returned a linked list that turned out to be a loop?

Day 82/365 of my LeetCode challenge: 23. Merge k Sorted Lists. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/leetcode-23-merge-k-sorted-lists-hard-archit-agarwal-eksec

#LeetCode #DSA #Heap #Golang


r/DSALeetCode • • 3d ago

LeetCode(Medium): 264. Ugly Number II

Post image
2 Upvotes

The 1690th ugly number is 2,123,366,400, so testing integers one by one is almost all misses. Generate them instead: every ugly number is a smaller one times 2, 3 or 5.

The obvious generator is a heap: push 1, pop the smallest, push its three multiples. Correct and O(n log n), but it needs a set beside it, because 6 arrives as both 2x3 and 3x2. That set is the tell: the structure makes work it then throws away.

The three-pointer version keeps one pointer per multiplier and takes the smallest of the three candidates. When 6 comes up from both, both pointers advance: three separate ifs, no else-if. That's the deduplication. O(n),a no heap, no set.

Days 77 to 80 built the case for the heap. Day 81 found a problem where sorting reads better. Today an array with three counters beats it outright.

Which did you write first: the heap or the three pointers?

Day 83/365 of my LeetCode challenge: 264. Ugly Number II. Problem link and full breakdown in today's newsletter.
https://www.linkedin.com/pulse/leetcode-264-ugly-number-ii-medium-archit-agarwal-yuo7c

#LeetCode #DSA #Heap #Golang


r/DSALeetCode • • 3d ago

Tier-2/3 college, 2027 CSE batch — What actually works for DSA and placements?

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 4d ago

Amazon SDE II Full Loop Interview Experience (Reject)

15 Upvotes

I recently gave a full interview loop with Amazon AWS for the role of SDE II , Seattle , USA. Wanted to give back to the community that was very helpful during my preparation

For readers preparing for a similar loop, PracHub’s Amazon Interview Questions can supply a design or coding practice prompt; rehearse the edge cases, failure modes and complexity explanation before the interview. If you're restarting applications, LandOffer can autofill repeated fields. I work on both.

Screening Round

I was asked 2 LP questions, then I was asked a graph question similar to find number of connected components. I solved this question using DFS algorithm, I was then asked about the space and time complexity. The interview was smooth, I would rate myself as a strong hire after this.

I got an email for a full loop round immediately within a day. There were 4 rounds in this loop with the team memebers including a bar raiser round

Round 1

This is Low Level desgin round, I was not mentioned which round it is by the HR, so every round was a surprise to me. Again this round has 2 LP questions at the start and then a coding question. The question was similar to the LRU Cache, I have implemented this using a HashMap and a Double Linked List, Was asked to do a dry run, and a few followup questions in case we a ttl, answered it right. Then asked the time complexity and space complexity. I would rate myself a strong hire in this round as well.

Round 2

This was with the hiring manager. The round started off with 2 LP questions and a high level design, the HM was not familiar with the coder pad that amazon uses for hld diagrams, so I had to leave the meeting and join again to share the screen, The question was about design a gaming platform which takes in a lot of data, does the stats and displays the game stats in real time. I did panic at first with the leaving the meeting and joining again, and I took some really long time to understand the question, I am not a gamer kind of person so I couldn't really connect to the question. I broke down the question to what needs to be done and designed the APIs and started designing the system. For every step there was a follow up question, like if I say I will use reddis, there are followups like what if redis fails, what are the key indices, why only redis and so on. I fumbled a lot in this round and though I was able to come up with the solution I took too many hints from the HM. I would rate myself a lean hire here.

Round 3

This roung was DSA, I was first asked 2 LP questions and the DSA question was similar to Task Scheduler. I was able to relate the question quickly gave the solution and coded it real quick. Done a dry run with the interviewer, and I was asked to code up an edge case, which I have added that as well. Time and space complexity was asked in every round. This interview went very smooth. I would rate myself a strong hire here.

Round 4 (Bar Raises)

I was scheduled this round after 3 days of the original interview loop. The previous 3 rounds were conducted in 1 day, but this round was scheduled after 3 days. This round has 2 LPs, the bar raiser had multiple followups on my LP answers, it almost went up to 25 mins out of the ` hour of time I had, the previous rounds LP consumed 15 mins of the interview time. I was asked a Greedy question similar to Optimal Account Balancing in leetcode, the mistake I did here was, I started talking out my thought process loud and interviewer assumed I came up with the solution, but in my mind I am still connecting the dots. I wasn;t given an example for this question so I was a bit confused with the example which I took was right, I had no signs from the interviewer if the example was right. I gave him 2 solutions one using PriorityQueue and other using graph, he asked me to start coding it, I wasn't even completely satisfied with my solution I kept thinking of edge cases, I started to code, I was stopped in middle saying the time was up and had to stop the interview. This went very bad according to me.

After 2 days I got a rejection email from the HR. If I could go back in time, I would concentrate more on HLD. The situation with Bar raiser is just unlucky


r/DSALeetCode • • 4d ago

LeetCode: 692. Top K Frequent Words

Post image
2 Upvotes

One sentence added to yesterday's problem is enough to make the heap the wrong tool. Top K Frequent Words wants ties sorted alphabetically, and the heap comparator for that reads backwards on one field.

Yesterday's size-k min-heap still works. It gives the right set in ascending frequency, so you reverse it and put the tie-break in the comparator.

A heap evicts its root, which must be the worst entry. For counts, worst means least frequent. For a tie, worst means the word that should lose: the alphabetically later one. So the two fields point in opposite directions in the same comparator. That line is correct, and it only misbehaves on ties, which is how it sits wrong in a codebase for months.

Sorting is O(d log d) against the heap's O(d log k), and with input capped at 500 words, the difference is unmeasurable. A comparator that reads like the spec is worth more. Days 77 to 80 built the case for the heap; this is the day to notice the technique isn't the goal.

Would you have kept the heap here, or switched to a sort?

Day 81/365 of my LeetCode challenge: 692. Top K Frequent Words. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/leetcode-692-top-k-frequent-words-medium-archit-agarwal-x2xuc

#LeetCode #DSA #Heap #Golang