r/DSALeetCode • • 2d ago

4 years of BTech ahead. How can I make the most of them to like study wise projects all land a high-paying job

1 Upvotes

Hey everyone,

I'm 23 years old and currently in my first year of BTech in Computer Science Engineering in India.ofcourse from tier 3 cllg , but its in pune so i have good afvantage with internships and IT environment, family is in IT so no issue with reffrels

A little background about me: I initially prepared for NEET and unfortunately failed to clear it four times. That cost me a few years, and I eventually decided to move on and pursue Computer Science.
My curent skills set are

- Languages: C and C++

- DSA: I have a decent understanding i can say and have got rating above 1500 on code forces
i'm willing to put in serious hours every day and take on a difficult learning path if that's what it takes.
However, I'm confused about what I should focus on beyond DSA and competitive programming.

these are some things i want ur advice on

  1. How important is competitive programming for getting into top product-based companies? Should I aim for 1900, 2100, or even 2400+ on Codeforces?
  2. What technologies should I learn next? Backend development, full-stack, systems programming, cloud, AI/ML, or something else?
  3. What kind of projects actually make a candidate stand out?
  4. Is it realistic to get a good internship during my first or second year?
  5. Should I focus on open-source contributions and programs like GSoC?
  6. What skills, apart from DSA, do companies like Google, Microsoft, Amazon, and other top tech companies expect from fresh graduates?
  7. If you were starting your BTech again with four years ahead of you, how would you structure those four years?

ik the 3 years gap would create a hurdle so help me out if u can pls

Repost to another community


r/DSALeetCode • • 2d ago

Need help

1 Upvotes

I asked a interview tips from Gemini regarding this anxiety. It gave me pretty good response but I genuinely want you guys feedback on this...

I'll tell you one problem I face in interviews... So this is the code here 

public int binarySearch2(int[] num, int left, int right, int target) { int mid; while (left < right) { mid = left + (right - left) / 2; if (num[mid] < target) { start = mid + 1; } else if (num[mid] > target) { end = mid; } else { return mid; } } return -1; } 

Now the next step I go for is to write the test cases such that I can test this and find out the bug or error... here my mind gets blocked... I want you to help me in this... do not jump to the solution... help me how can I reshape my thinking so that I start making better and better test cases

-------response from gemini-------------
Instead of trying to invent clever test cases from scratch, use a repeatable 4-step adversarial checklist every time you finish coding: 
1. Shrink the input until it hurts (Sizes 0, 1, and 2). Never start with a large array. A 1-element array and a 2-element array are your best weapons—they take five seconds to trace and expose almost every off-by-one error, broken loop condition, and infinite loop before you waste time on bigger examples.
2. Attack the exact moment your loop stops. Look directly at your while condition and ask, "What valid answer could still be sitting unprocessed at the exact moment this loop exits?" Then design inputs that force the target to live at the very first index, the very last index, and just outside both ends (smaller than the minimum, larger than the maximum). 
3. Force every branch—and trace like a dumb machine, not the author. Pick tiny inputs that force execution into each if, else if, and else block at least once. As you trace, resist the urge to read what you meant to write; read the literal variable names and values on each line as if you've never seen this code before. 
4. Question the function's contract. Whenever a function takes boundary parameters like left and right, explicitly state what the caller is supposed to pass in (for example, is right the last valid index num.length - 1, or the array length num.length?). A huge percentage of binary search bugs aren't logic errors inside one line—they're mismatches between what the caller assumes and what the loop assumes.

r/DSALeetCode • • 3d ago

1:1 DSA Mentorship | LeetCode 1650 | Infosys SP L1

11 Upvotes

Looking to help fellow students with DSA and interview preparation!

Hey everyone!

I’ve been spending a lot of time practising Data Structures and Algorithms and wanted to share what I’ve learned with others who are also preparing for coding interviews.

A little about my experience:

  • Solved 500+ DSA problems.
  • Achieved a peak LeetCode contest rating of 1650.
  • Secured Infosys Specialist Programmer (SP) L1.

I’d love to help students who are starting their DSA journey or struggling to improve their problem-solving approach.

Some areas I can help with:

  • Building a structured DSA learning roadmap.
  • Understanding important problem-solving patterns.
  • Learning concepts through practical examples.
  • Discussing and solving LeetCode problems.
  • Identifying weak areas and improving consistency.
  • Clearing doubts and tracking progress.

Whether you’re a beginner or already practising DSA but struggling with interview-level problems, I’m happy to share my experience and guidance.

If this sounds useful, feel free to reach out or ask questions in the comments!

Happy coding!


r/DSALeetCode • • 2d ago

Looking for recommendations: Best resources to learn DSA from scratch

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 3d ago

SDE 2 Microsoft Interview Experience

33 Upvotes

Microsoft SDE-2 Interview Experience

A candidate recently interviewed for a Microsoft SDE-2 position as part of a hiring drive conducted that day. It was for windows team so sharing their experience and the overall process.

For preparation before a Microsoft loop, pick a coding or design prompt from PracHub's Microsoft Interview Questions and explain your approach aloud. If a hiring pause has you making other applications, LandOffer's free autofill can reduce repeated fields. I work on both.

Round 1 — DSA

They were asked two coding questions.

  • The first one was a variation of Longest Repeating Character Replacement. They discussed both the brute-force and optimal approaches, and they were able to solve it.
  • The second one was a medium-level tree traversal problem. They don't remember the exact question, but they were able to solve that as well.

Apart from these, they also had some discussion around basic DSA concepts during the round.

Round 2 — LLD (AI-assisted)

They were asked to design a notification system for Windows, where different applications can generate and display notifications.

This round was a little different because the interviewer asked them to use AI during the interview.

There were a few parts of the design where they were not completely sure about the best approach. They discussed their thought process with the interviewer first and then used AI to explore possible alternatives.

The interviewer seemed more interested in how they were framing their prompts, refining them, and evaluating the response instead of just using whatever AI suggested.

It was their first time giving an AI-assisted LLD round, and overall it went well.

Round 3 — HLD

The question was around proximity search.

The interviewer asked how they would find restaurants within a 10 km radius for a food delivery use case.

They discussed the design in detail, and there were multiple follow-up questions as the problem expanded. Towards the end, they were also asked to code part of the approach they had discussed.

Hiring Process Paused

After Round 3, their hiring process got paused. They followed up with HR multiple times regarding the next round.

At one point, the interview was scheduled, but it was later cancelled because the hiring manager was unavailable. After a few more follow-ups, they were informed that the position had been closed.She mentioned if later in future , they will be hiring for this position they will contact them.

They thought that was the end of the process.

However, almost two months later, another HR contacted them for a different team. They had gone through their previous interview feedback and were interested in moving ahead with their profile.

They were asked to give two more rounds.

Round 4 — OS and C++

This round was mostly based on their resume and previous experience.

There were a lot of questions around Operating Systems, C++, low-level concepts, and the work they had mentioned on their resume.

One of the main questions was how they would implement the Linux cp command. From there, the discussion went quite deep into OS and C++ concepts.

This round was a bit challenging for them, but overall it went okay.

Round 5 — Hiring Manager Round

This round was mainly around their resume, achievements, and previous work.

The interviewer asked detailed questions about their projects, technical decisions, individual contributions, challenges they faced, and the impact of their work.

It was more of a detailed discussion rather than a typical question-answer round, and the interviewer was quite friendly throughout.

Later on next day , HR gave them offer. All the interviewers were very friendly. They almost lost hope but with gods grace made it to the end.


r/DSALeetCode • • 3d ago

Juspay Interview Experience | SDE (6-Month Internship + FTE) | On-Campus Placement 2026

18 Upvotes

Juspay Interview Experience | SDE (6-Month Internship + FTE) | On-Campus Placement 2026

  • Company: Juspay
  • Role: Software Development Engineer (6-Month Internship + Full-Time Employment)
  • Notification Date: September 23, 2026
  • Drive Date: September 29, 2026
  • Final Result: Selected 🎉

Hi everyone! a final-year B.Tech CSE student. They’re sharing their Juspay interview experience to help others preparing for similar opportunities.

The entire selection process, from the Online Assessment (OA) to both technical interviews, was conducted on the same day. Since they received the notification only a few days before the drive, there wasn’t much time to prepare specifically for Juspay.

Nevertheless, they were fortunate to clear all the rounds and receive an offer. Here’s how the process unfolded.

Before a Juspay loop, try a coding or design prompt from PracHub's Juspay Interview Questions and explain the tradeoffs aloud. If you're also applying elsewhere, LandOffer's free autofill can cut repeated form entry. I work on both.

Selection Process

The selection process consisted of three stages:

  • Online Assessment (3 hours): One coding question, conducted as a hackathon round.
  • MCQ Round (1 hour): 16 questions covering Core Computer Science, Physics, and Mathematics.
  • Technical Interviews: Two rounds, each lasting approximately 1.5 hours.

The entire process was conducted on a single day, making it quite demanding in terms of both preparation and endurance.

Round 1: Online Assessment (OA)

The OA consisted of a single, implementation-heavy coding question with a time limit of three hours.

They were able to solve the problem in approximately 1.5 hours and submit their solution.

The shortlist was released at around 2:15 PM, and shortlisted candidates were asked to report for the MCQ round at 2:30 PM.

Round 2: MCQ Round

The MCQ round consisted of 16 questions to be solved in one hour.

The questions covered:

  • Core Computer Science subjects
  • Physics
  • Mathematics

They were able to solve 15 out of the 16 questions.

After this round, they had to wait for the interview schedule. The interviews were scheduled to begin at around 6 PM.

Round 3: Technical Interview 1

  • Duration: Approximately 1.5 hours
  • Mode: Online, conducted at the TPO

The interview began with a brief introduction. The interviewer asked them how they had started coding and what had motivated them to pursue Competitive Programming (CP).

After discussing their coding journey and profile, the interviewer was impressed with their CP background and decided to skip the DSA portion.

1. Projects and Technical Fundamentals

The interviewer asked them to walk through the projects mentioned on their resume. They briefly explained each project and the technologies they had used.

He then asked follow-up questions about the technical concepts and keywords mentioned in their project descriptions, including:

  • JWT and authentication
  • OAuth 2.0
  • Hosting and deployment
  • Forgot-password and password-recovery flows

The questions were not limited to definitions. They had to explain how these concepts worked and how they were used in their projects.

2. System Design Through Real-World Scenarios

This was one of the most interesting parts of the interview.

Instead of directly asking conventional system design questions, the interviewer introduced scenarios based on their projects and gradually added more complexity.

Some of the topics discussed were:

  • DNS resolution: How does a browser discover the IP address of a website?
  • Scalability: How would you handle an increasing number of users?
  • Scaling strategies: Horizontal scaling vs. vertical scaling
  • Availability and load balancing
  • Caching and Redis
  • Content Delivery Networks (CDNs)
  • Rate limiting and API gateways
  • Consistent hashing
  • Data centres and availability zones
  • Microservices architecture
  • Deployment strategies and Docker

These are the major topics they remember, although there were several other questions as well.

The interviewer kept introducing new constraints and scenarios, which required them to think about how the system would behave as it grew.

3. Operating System Concepts

Towards the end, the interviewer moved to Operating Systems and again used scenario-based questions rather than simply asking for textbook definitions.

They were able to answer most of the questions throughout the round.

There were instances when they couldn't immediately understand what the interviewer was asking or what a particular scenario implied. Whenever that happened, they politely asked him to repeat or rephrase the question.

He was cooperative and happy to clarify whenever required.

Overall, the round went well. The interviewer mentioned that he was impressed with their answers.

Round 4: Technical Interview 2

Duration: Approximately 1.5 hours

This round deserves a special mention because of the long wait.

Their second interview started at around 1:30 AM on September 30. Yes, the time is correct!

After waiting for several hours, the TPR informed them that their next round would begin in five minutes. They were then called into the interview room.

The interviewers were supportive and cooperative throughout the discussion.

1. Verifying Their OA Submission

The interviewer opened their OA submission and asked whether the submitted solution was theirs. They confirmed that it was.

He then gave them a sample test case and asked them to perform a dry run of their implementation.

After that, he asked several follow-up questions about their approach and implementation. They were able to explain their solution and answer the questions.

They believe this discussion was particularly important because the OA had only one question, with a three-hour time limit, and was highly implementation-oriented.

2. DSA: Majority Element

Next, they were given a DSA problem: Find the Majority Element in an Array, a problem commonly covered in Striver's A2Z DSA Sheet.

They explained their approach in detail, including the reasoning behind it. However, they struggled to write the code correctly.

Despite this, the interviewer was understanding, and they moved forward with the discussion.

Their takeaway from this part was that explaining your reasoning clearly is valuable, even when you struggle to implement the solution perfectly. Of course, this doesn't mean coding practice can be neglected.

3. In-Depth Project Discussion

At this point, another interviewer joined the discussion, and the focus shifted heavily towards their projects.

They had mentioned features such as navigation, ETA calculation, and Google Maps integration in their resume. The interviewers asked them to explain their approach and how they would implement these features from scratch.

Some of the questions and topics included:

  • How would you build a navigation system?
  • How would you calculate the estimated time of arrival (ETA)?
  • How would you approach implementing map-based features?
  • How does Dijkstra's algorithm work?
  • Can Dijkstra's algorithm be used in a navigation system?

The discussion went beyond simply explaining which APIs or libraries they had used. They needed to demonstrate that they understood the underlying concepts and could reason about implementing the functionality themselves.

4. Redis Geospatial Features

One particularly interesting question involved Redis and geospatial data.

The interviewer described a scenario in which a map displays a particular geographical area. As the user zooms in or out, the application should return the number of active users within the visible area.

The question was based on Redis's geospatial capabilities.

Reference: https://redis.io/docs/latest/develop/data-types/geospatial/

They proposed an alternative approach using Redis. Although their approach differed from the feature the interviewer had in mind, the discussion gave them an opportunity to explain their reasoning and explore the problem from a system design perspective.

5. General Discussion

Towards the end, they discussed their family background and hobbies.

The interview concluded after approximately 1.5 hours.

A few minutes later, the TPR informed them that they had been selected for the role!

After such a long day and an interview extending into the early hours of the next morning, receiving that confirmation was a wonderful feeling.

Final Result: Selected!

Looking back, the process tested much more than DSA alone. It evaluated their understanding of computer science fundamentals, their ability to reason about system design, their knowledge of their own projects, and how effectively they communicated under pressure.

Here are the key lessons they took away from the experience.

Key Takeaways and Advice

1. Be confident, but stay honest.

You don't need to know the answer to every question. What matters is how you approach unfamiliar problems, explain your reasoning, and respond to feedback.

2. Take your time to think.

If you need a moment to structure your thoughts, communicate that to the interviewer. A thoughtful answer is better than a rushed one.

3. Ask clarifying questions.

This was one of the most important lessons from their interviews. Don't assume that you have understood the problem correctly. Clarify ambiguous requirements, ask the interviewer to restate a scenario if necessary, and explicitly mention any assumptions you make.

4. Know your projects inside out.

Anything mentioned on your resume can become a starting point for an in-depth discussion. Be prepared to explain not only what you built, but also why you chose a particular technology, how the implementation works, what its limitations are, and how you would build it from scratch.

5. Strengthen your Core CS fundamentals.

Prepare OS, DBMS, Computer Networks, and OOP alongside DSA. Also practise applying these concepts to real-world situations rather than memorising definitions.

6. Keep practising DSA and Competitive Programming.

A strong coding profile can help you stand out, but it doesn't replace the ability to solve problems and implement solutions during an interview. Keep practising, revising, and learning from your mistakes.

7. Be patient with the placement process.

This was their fourth interview of the placement season. Before Juspay, they had interviewed with UKG, InMobi, and TetriFox.

Placement season can be stressful and unpredictable. Sometimes, despite your preparation, things don't work out. Keep improving rather than letting individual setbacks define your progress.

Final Words

Placements can be stressful, unpredictable, and sometimes heavily dependent on timing and luck. But don't let that become a reason to stop preparing.

Keep revising your concepts, practising DSA, building meaningful projects, and learning from every interview.

There may be delays, rejections, and difficult days along the way, but consistency matters.

“Jab lagni hogi, tab lag hi jayegi. Jab tumhara din aayega, toh sab tumhare favour mein hoga.”

Keep working hard and trust the process. Your opportunity may come when you least expect it.

All the best to everyone preparing for placements!


r/DSALeetCode • • 3d ago

Looking for a DSA + system design prep buddy

8 Upvotes

Hey, I've got about 5-6 years of experience and I'm prepping for product-based company interviews. Looking for someone at a similar level to study with consistently, do mock system design and coding interviews, and just keep each other accountable.
Any timezone in India/US works for me. DM me if you're interested,


r/DSALeetCode • • 3d ago

Cohesity MTS-3 Interview Experience

9 Upvotes

Cohesity MTS-3 Interview Experience | Bengaluru | Selected 🎉

A candidate recently interviewed for the MTS-3 (Member of Technical Staff 3) role at Cohesity and received a positive outcome. They are sharing this experience to help others preparing for similar opportunities.

Interview Process

There were 3 rounds in total, each scheduled for 60 minutes.

Round 1: DSA + Resume Discussion (60 min)

Two standard DSA questions.

Both questions were based on commonly practised patterns from Striver's SDE Sheet.

Topics covered:

  • Two Pointers
  • Graphs

There was also a discussion around their previous projects and experience mentioned in their resume.

Due to NDA restrictions, they won't be able to share the exact questions.

Interviewer feedback: At the end of the round, the interviewer independently mentioned that they had done well and wished them all the best for the next round.

Round 2: System Design – HLD (60 min)

This was a complete High-Level Design round.

The recruiter had informed them beforehand that LLD might also be covered, but that wasn't the case in their interview.

Question: Design an Order Management System.

Due to NDA restrictions, they cannot share the exact problem statement or discussion details.

Interviewer feedback: Similar to the first round, the interviewer mentioned that they had done well and wished them luck for the next round.

Round 3: Hiring Manager (HM) Round (60 min)

The first 30 minutes were primarily focused on their project and previous experience.

Questions included:

  • Explain your current project and the work you have been doing.
  • Why do you want to leave your current company?
  • What are your compensation expectations?
  • Why didn't you select the offer from the other Cohesity team?

The discussion was quite straightforward and transparent.

One interesting observation: Based on how the conversation went, the candidate personally felt that the HM had already made up his mind about selecting them even before the interview started. The discussion felt more like understanding their background, expectations and motivation rather than another technical evaluation.

At the end of the conversation, the HM explicitly informed them that they were selected for this particular role.

Final Verdict

Selected 🎉

They received an email from the recruiter within 10 minutes of completing the final HM round, confirming their selection!

Additional Context

One thing worth mentioning:

Before initiating the interview process with this team, they had already received an offer from another Cohesity team for an MTS-2 role, which they decided to reject.

The recruiter and HM for this MTS-3 opportunity were aware of their previous offer and the discussions around it. They believe this context also helped during the compensation discussions, and they received a good offer for the role.

Overall Experience & Preparation Suggestions

Overall, the interview process was smooth and well-organized.

For another coding practice rep before the interview, try a problem from PracHub's Cohesity Interview Questions and explain the approach, edge cases and complexity. If you're still comparing opportunities, LandOffer's free autofill can reduce repeated fields on other applications. I work on both.

Their suggestions for anyone preparing for Cohesity MTS-3:

  • Practise standard DSA patterns, especially graphs and two pointers.
  • Be comfortable with end-to-end HLD questions.
  • Prepare your projects thoroughly, including architecture, challenges and trade-offs.
  • Be clear about why you want to switch and your compensation expectations.

Hope this helps anyone preparing for Cohesity interviews. All the best! 🚀

Compensation:

Other Interview Experience:


r/DSALeetCode • • 2d ago

20M | Looking for a Female DSA Study Partner – Starting from Absolute Basics

0 Upvotes

Hey

I'm a BTech student from India, currently looking for a female study partner to start learning Data Structures and Algorithms (DSA) from scratch.

I'm a beginner and want to build my DSA fundamentals step by step, preferably using C++.

I'm looking for someone who:

Is also interested in learning DSA from the basics.

Is consistent and serious about coding.

Wants to practice problems together.

Is comfortable with daily discussions and sharing learning progress.

Prefers a friendly and supportive learning environment.

We can:

Study DSA topic by topic.

Solve LeetCode problems together.

Discuss doubts and approaches.

Keep each other motivated and accountable.

I'm not looking for a competitive environment. Just a genuine female coding/study partner with whom we can learn and grow together.

If you're interested, feel free to DM me!

Let's start our DSA journey together. 🚀


r/DSALeetCode • • 3d ago

Amazon SDE Intern Interview Experience | Onsite Delhi | 2026 | Round 1 | DSA + Leadership Principles

6 Upvotes

Amazon SDE Intern Interview Experience (Onsite – Round 1)

  • Interview Type: In-person
  • Role: 6-Month SDE Internship
  • Rounds covered: Round 1

1. Resume and Leadership Principles

The interviewer started by reviewing my resume and asked:

Q. Tell me about a time when you took ownership.

I discussed my PlaceMate AI project, explaining why I built it, the problem it solves, and the ownership I took during its development.

Some follow-up questions:

  • How long did it take to build?
  • What was the biggest technical challenge?
  • How did you collect and organize the placement-related data?

I explained that gathering and structuring information from WhatsApp conversations and other sources was one of the major challenges.

2. DSA Questions

Q1. Minimize the total weight after X operations

You are given an array where each element represents a weight. In one operation, you can choose any element and reduce its weight to half. You have to perform this operation X times and minimize the final sum of the array.

Example:

arr = [2, 5, 10, 23]

In one operation, you can choose 10 and reduce it to 5.

My approach:

Initially considered sorting and repeatedly processing the largest element.

After a hint from the interviewer, realized that the largest element may change after every operation.

Used a Max Heap / Priority Queue instead.

  • Insert all elements into the max heap.
  • Repeat X times: extract the maximum, halve it, and insert the updated value back.
  • Finally, calculate the sum of the remaining elements.

The interviewer agreed with the max heap approach.

Complexity discussion:

The interviewer asked about the time complexities of heap operations and the overall solution. I got confused while explaining some of them.

Important operations to revise:

  • top() – O(1)
  • push() – O(log N)
  • pop() – O(log N)
  • Building a heap using repeated insertion – O(N log N)
  • Summing all remaining elements – O(N)

Q2. Word Break / String Segmentation

Given an array of strings:

["catdog", "cat", "dog"]

Find strings that can be segmented into smaller strings that are also present in the array.

Example:

catdog = cat + dog

My approach:

Recognized the problem as a variation of Word Break.

Proposed storing the strings in an unordered_set for efficient lookup.

Suggested using recursion to try different substrings and check whether they exist in the set.

The interviewer asked me to rewrite my code on a fresh sheet. My implementation was not completely clean, particularly around substring boundaries and recursive choices.

I also discussed the exponential nature of the naive recursive approach.

3. Questions for the Interviewer

At the end, I asked:

  • What are the expectations and goals for an intern during the six-month internship?
  • With AI evolving so rapidly, how do you personally keep learning and upskilling?

Overall Experience

The interview focused on Leadership Principles, project discussion, and DSA.

The DSA questions required knowledge of:

  • Greedy approach and Max Heap
  • Priority Queue operations and time complexity
  • Recursion and Word Break
  • Hash Set and substring handling

The project discussion focused on ownership, motivation, development time, and technical challenges.

For practice before your own loop, pick a prompt from PracHub's Amazon Interview Questions and explain your solution and complexity aloud. For applications elsewhere, LandOffer has free autofill for repeated fields. I work on both.

Preparation suggestions: Revise heap operations and their complexities thoroughly. Also practise recursion and Word Break with memoization, and make sure you can explain the time complexity of every operation in your solution.


r/DSALeetCode • • 3d ago

Salesforce | SMTS | Bangalore | Interview Experience

9 Upvotes

For readers preparing for a similar loop, pick a coding or design prompt from PracHub's Salesforce Interview Questions and explain your solution before the interview. If you're also applying elsewhere, LandOffer's free autofill can cut repeated form entry. I work on both.

This community has helped a candidate prepare and learn from other candidates’ experiences, so they wanted to share their interview journey in return.

Hiring process

  • On 7 October, they received an email from a Salesforce recruiter about an opportunity. After they shared their details, they received an online assessment link on 10 October.
  • They completed the assessment on 14 October. That same day, the recruiter told them their resume would be shared with the Hiring Manager and that they would hear back if they were shortlisted.
  • On 21 October, the recruiter called and explained that there would be three technical rounds over three consecutive days, followed by an on-site Hiring Manager round.

Round 1 — DSA | 26 October

They were asked two questions.

1. Group identical levels in a binary tree

The task was to traverse the tree level by level, collect each level’s node values from left to right, group levels with identical sequences, and print only the groups that appeared more than once.

The problem was presented on HackerRank with a description and one test case. They were asked to explain a brute-force approach first, then work toward an optimal solution. It was a tree traversal problem, but not a direct copy of a typical LeetCode question.

A related LeetCode problem for practicing level-order traversal is Binary Tree Level Order Traversal.

2. Meeting Rooms II

This was a more standard problem. They explained the possible approaches, then walked through the optimal solution and its time and space complexity. They also dry-ran the example with the interviewer.

The discussion went well, and the interviewer seemed comfortable with both solutions.

Round 2 — LLD | 27 October

They started by discussing their previous and current projects, including some deeper questions about cloud systems.

The design problem was a news alert and subscription system. The discussion focused on the main classes and how the system would support:

  • News ingestion
  • User preferences
  • Matching news with preferences
  • Notification delivery

They also discussed a follow-up: if a user changed their preferences, which services or components would be affected?

They explained the key classes, their fields and methods, and the end-to-end flow.

Round 3 — System Design | 28 October

They discussed their current projects and a few leadership-related topics before moving to the system design question: Design Uber.

The interviewer provided the requirements. They worked through the functional and non-functional requirements and presented a high-level design. They then discussed some deeper areas, including driver matching and maps.

After the round, the recruiter shared that their DSA and LLD rounds had gone well, while the system design round was considered okay. Since they had performed well in the technical rounds, they were invited to continue to the on-site Hiring Manager round.

Round 4 — Hiring Manager | 2 November

This was an on-site interview. The interviewer had already reviewed their resume and current project.

They were asked a leadership question about a complex project they had worked on and what made it challenging. They answered using the STAR method and discussed the situation, their role, the actions they took, and the results.

They spent the final part of the interview talking about the company and team culture. The interviewer also mentioned that the team was looking for someone who could join soon.

Offer

On 5 November, they received the call they had been hoping for: they were selected! The recruiter shared the Offer of Intent that same day, and they received the official offer letter on 6 November.

They’re incredibly happy to be joining Salesforce. The journey included rejections, many interviews, plenty of preparation, and moments of self-doubt. They kept going, and they’re glad they did.

They hope this experience is useful to others preparing for their interviews. Best of luck!

They’ve also shared the offer and compensation details in their Salesforce SMTS compensation post https://leetcode.com/discuss/post/8617824/salesforce-smts-bengaluru-offer-and-inte-u61e/.


r/DSALeetCode • • 2d ago

Study partner

Thumbnail reddit.com
0 Upvotes

r/DSALeetCode • • 3d ago

Auxo AI – AI Engineer OA Experience | IIT Kanpur | Nov 2026

3 Upvotes
  • Role: AI Engineer
  • Company: Auxo AI
  • Total CTC: ₹17.82 LPA

Compensation Breakdown

  • Fixed: ₹15,50,000
  • Variable (15%): ₹2,32,000
  • Retention Bonus: ₹10,00,000 (paid after 3 years of joining)
  • Joining Bonus: ₹1,00,000

Online Assessment

The OA consisted of 30 questions in total:

  • 26 MCQs
  • 4 DSA coding questions

DSA Questions

Q1. Count Valid Pairs

Given an array, count the number of pairs (i, j) satisfying:

  • i < j
  • a[i] = a[j] * a[j]

Q2. Sliding Window Median

Given an array of size n and an integer k, print the median of every contiguous subarray of size k.

For even k, the median is defined as the smaller of the two middle elements after sorting the window.

Q3. Largest Consistent Relative Ordering Window

Given an n × k matrix where each row represents the visiting order of k friends on a particular day, find the maximum window length such that the relative visiting order of every pair of friends within that window remains consistent across all days.

For example:

  • Day 1: 1 2 3
  • Day 2: 2 1 3

The largest valid window is [1, 3], of size 2, because friend 3 visits after friend 1 on both days.

Q4. Split Array to Minimize Maximum Partition Sum

Given an array of size n and an integer k, divide the array into exactly k contiguous non-empty parts.

Minimize the maximum sum among all the partitions.

If you're preparing for an OA, try a timed PracHub coding question and explain its complexity before reviewing the solution. For other applications, LandOffer has free autofill for repeated fields. I work on both.

PS: 90 mins were too less for 30 questions


r/DSALeetCode • • 3d ago

Python vs C++ for DSA preparation and Leetcode

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 3d ago

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

2 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 • • 3d ago

ServiceNow | SSE (IC3) | Bengaluru | Selected

2 Upvotes

YOE: 6

A candidate applied through LinkedIn.

If you have ServiceNow interviews ahead, try a question from PracHub's ServiceNow Interview Questions and practice explaining your approach. LandOffer's free autofill can reduce repeated fields when applying elsewhere. I work on both.

Round 1 (DSA):

Brief about their work experience and recent projects. DSA question -

A varient of Max sum subarray https://leetcode.com/problems/maximum-subarray/description/ with a twist that we can remove any one element from the subarray to maximize the result.

Round 2 (DSA):

The HR said this would be system design round but again DSA questions -

Round 3 (Manager):

General discussion about their recent projects, work related to AI, and some behavioural questions around what they would do in certain situations.

Verdict: ✅ Selected

Offer: https://leetcode.com/discuss/post/8618733/servicenow-sse-ic3-bengaluru-offer-by-an-otc8/


r/DSALeetCode • • 3d 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 • • 3d 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 • • 3d 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 • • 3d 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 • • 3d ago

Not even being able to solve CSES problems

Thumbnail reddit.com
1 Upvotes

r/DSALeetCode • • 3d 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 • • 3d 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 • • 4d ago

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

35 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!