<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anonymous Writer on Medium]]></title>
        <description><![CDATA[Stories by Anonymous Writer on Medium]]></description>
        <link>https://medium.com/@anonymouswriter007?source=rss-e35ab03b4cd8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Anonymous Writer on Medium</title>
            <link>https://medium.com/@anonymouswriter007?source=rss-e35ab03b4cd8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:24:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anonymouswriter007/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Amazon SDE-1 Interview Experience]]></title>
            <link>https://medium.com/@anonymouswriter007/amazon-sde-1-interview-experience-18ea5722336c?source=rss-e35ab03b4cd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/18ea5722336c</guid>
            <dc:creator><![CDATA[Anonymous Writer]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 18:29:29 GMT</pubDate>
            <atom:updated>2025-07-03T19:21:29.048Z</atom:updated>
            <content:encoded><![CDATA[<p>This was a pool hiring opportunity for four colleges in Pune i.e. COEP, AIT, PICT, and VIT — specifically for the Amazon Pune office. The entire process moved at lightning speed; from the initial notification to the final offer, everything was wrapped up in just 20 days, leaving hardly any time to prepare.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQL-PZnCIzd3IxEQQTkvag.jpeg" /></figure><h3><strong>Online Assesment</strong></h3><p>The online assessment consisted of <strong>two coding questions</strong>. I began with the <strong>first question</strong>, but couldn’t crack it within the given time. With the clock ticking, I switched to the <strong>second question</strong>, which was of <strong>moderate difficulty</strong>, and solved it within <strong>10 minutes</strong>. I then returned to the first question. Although I couldn’t devise an optimized solution, I implemented a <strong>brute-force approach</strong> that successfully passed <strong>most of the test cases</strong>.</p><p>The questions were <strong>randomly assigned</strong> and varied across candidates, but in general, the <strong>difficulty level ranged from medium to tough</strong>.</p><h3><strong>Technical Interview 1</strong></h3><p>The interview started with the interviewer introducing himself, followed by my brief self-introduction. He then handed me a printed question and asked me to read it aloud.</p><p><strong>The question was: </strong><em>Given a city in the form of a grid, where each cell represents the amount of rainfall received in millimeters, and two coordinates (row1, col1) and (row2, col2), compute the total rainfall in the subrectangle defined by these two points. You have to solve this for q queries.</em></p><p>He first asked me to explain the problem in my own words and then describe how I planned to approach it.</p><p>I started analyzing the question using pen and paper, thinking through different test cases and talking through my logic. I began with a brute-force approach, explaining how I would implement it and what its worst-case time complexity would be. Then I shifted to optimization. The fact that we had to process multiple queries gave me the intuition that each query should ideally be answered in constant time, since the grid remains unchanged across all queries.</p><p>Thanks to previous practice with DP and prefix sum problems, I realized this could be solved using a 2D prefix sum matrix. I explained that we could precompute a matrix where each cell stores the sum of the rectangle from the top-left (0,0) to that cell. This would allow any subrectangle sum to be computed in O(1) time. I explained the logic I would use and the boundary conditions I’ll face during implementation.</p><p>Even though I hadn’t encountered this exact problem before, I was able to solve it under pressure, something I credit to my experience with competitive programming on platforms like Codeforces.</p><p>The interviewer was satisfied and moved on to a project discussion. He randomly picked one of my projects and asked me to explain what I built, what I learned, and the technologies I used. Since it was a MERN stack project, he also asked a few technical questions about React, around state management.</p><p>He then asked if I had any questions for him, which I did and he answered them patiently. After that, he told me I could leave.</p><p>We had to check with HR for the result. Within five minutes, I was informed that I would be moving on to the next round.</p><h3>Technical Interview 2</h3><p>This round started with a brief introduction. The interviewer asked about my contribution during my previous internship. I explained the work my team was doing and highlighted the specific parts I had worked on.</p><p>He then moved on to a leadership principle-based question: <em>“Can you tell me about a time during your internship when you encountered a difficulty and how you resolved it?”</em></p><p>I answered using the STAR method, but the interviewer was specifically looking for a <strong>technical challenge</strong> that I had faced and overcome. My response wasn’t bad, but it didn’t fully hit the mark either. While it was somewhat satisfactory, there was definitely room for improvement.</p><p>After that, we transitioned to the DSA portion of the interview. He gave me a question involving services like user-service, auth-service, email-service, and notification-service. Each service had dependencies on others that had to be completed first before they could be executed. The task was to determine a valid <strong>execution order</strong> based on these dependencies.</p><p>As soon as I heard the problem, I recognized it as a classic <strong>Topological Sort</strong> problem. I began explaining my approach, but the interviewer wasn’t interested in just the code, he wanted to dig deep into the reasoning. He asked several probing questions:</p><ol><li><em>Why are you modeling this as a graph?</em></li><li><em>How will you construct the graph?</em></li><li><em>Why use an indegree array?</em></li><li><em>How exactly is the indegree array being used?</em></li></ol><p>Since I had practiced topological sort multiple times before, I felt confident. I explained that this setup clearly fits a <strong>Directed Acyclic Graph (DAG)</strong> and that topological sorting is the standard method for determining the order of tasks in such cases.</p><p>I asked the question to clarify an edge case, as I felt it was important and essential to address during the interview. <em>“Can the graph contain cycles?”</em></p><p>The example didn’t have one, but theoretically, it could — and that would mean no valid execution order exists. I also asked how I should return the result in such a case.</p><p>He replied: <em>“What do you think? Can we create a custom return type?”</em></p><p>Taking the hint, I proposed designing a custom return structure containing:</p><ul><li>A boolean flag indicating whether a valid order exists.</li><li>A vector or list representing the execution order (if valid).</li></ul><p>He liked the idea, so I proceeded to implement the solution. I carefully explained each step — building the graph, maintaining the indegree array, performing the topological sort, detecting cycles, and generating the final output.</p><p>Just when I thought we were done, he added a twist:</p><p><em>“Now imagine this system runs in a multi-threaded environment, and each service takes 1 second to execute. Based on your execution order, what will be the total execution time?”</em></p><p>The interview time was already running out, and I had to think fast. I reasoned that this now becomes a <strong>longest path problem in a DAG</strong>, where the path length determines the total time in seconds.</p><p>For each service, I calculated the maximum time taken by all its parent dependencies and added one second for the current node. I shared this logic with him, and he seemed satisfied with the explanation.</p><p>Since we had already gone past the scheduled time, he told me I could leave. At that point, I wasn’t sure if I had done enough to clear the round. I followed up with HR, who asked me to wait for about 15 minutes. Later, he informed us that some candidates from Round 2 had been selected, and others had not. Those who moved forward would have their <strong>final virtual interview scheduled soon</strong>.</p><p>A few days later, I received an email with details for <strong>Round 3</strong>, giving me around 3–4 days to prepare. But the very next day, I got a follow-up mail and a call saying that my interview had been <strong>preponed to that very evening</strong>. I wasn’t at all prepared.</p><p>I had heard from others that Amazon often asks <strong>System Design</strong> questions in the final round — a topic I hadn’t focused on. With very little time, I quickly brushed up on the basics using whatever resources I could find.</p><h3>Technical Interview 3</h3><p>The final round began with a brief introduction, followed by two Amazon <strong>Leadership Principle</strong>-based questions:</p><ol><li><em>Tell me about a situation when you were criticized by your mentor, friend, or manager. How did you handle it?</em></li><li><em>Tell me about a time you convinced someone to support your approach.</em></li></ol><p>I responded using the <strong>STAR method</strong>, tying both answers to experiences relevant to the SDE role I was interviewing for. However, the interviewer took a deep dive into every single detail I mentioned — probing each sentence, asking “why,” “how,” and “what happened next” — to the deepest possible level and checking my technical abilities.</p><p>These two questions alone consumed around <strong>30 minutes</strong> of the <strong>1-hour interview</strong>. By this point, I was mentally drained. My answers weren’t as strong as I’d hoped, but I managed to hold my ground and move forward.</p><p>The next part of the interview involved what seemed like a <strong>simple problem</strong>:</p><p><em>“Implement two functionalities for a music playlist — randomSort() and getNextSong()”</em></p><p>Surprisingly, this turned out to be the most difficult question of the entire interview — <strong>not because of algorithmic complexity</strong>, but because of the open-ended nature of the problem. I had to assume and define <strong>everything</strong> myself: The input and output, Data types, Data structures, Algorithms, Edge cases and much more.</p><p>Whenever I asked the interviewer for clarification, his response was always: <em>“What do you think?”</em> or <em>“How would you handle this?”</em></p><p>If I started heading in the wrong direction, he would give subtle hints to steer me back. Once I proposed a solution, he would challenge it with questions like:</p><ol><li><em>Why this data structure?</em></li><li><em>What are the alternatives?</em></li><li><em>What trade-offs are involved?</em></li></ol><p>For example, I chose to use a <strong>vector</strong> instead of a linked list because I needed efficient random access for the randomSort() functionality — it’s much easier to swap elements by index in a vector than in a linked list.<br> He then asked: <em>What issues might you face using a vector?</em><br> I explained that while a linked list would return null at the end, a vector might give a garbage value if I try to access beyond its size, so I’d need to keep track of the playlist size and manage boundaries properly.</p><p>He also asked: <em>What would you return when the playlist ends?</em><br>I explained that I’d throw an exception or handle it using a custom error type.</p><p>This round was filled with “whys” and “why nots,” aimed at testing my in-depth understanding of every decision I made.</p><p>Eventually, I implemented the code from scratch using an <strong>OOP-based approach</strong>, defining custom data types where needed. Since I had already accounted for edge cases and design decisions, the coding part went smoothly.</p><p>By the end of this round, I was <strong>completely exhausted</strong>. At that point, I wasn’t even thinking about the result — my only goal was to survive the round. And somehow, I did.</p><h3><strong>Result</strong></h3><p>Two days later, I received an email: <strong>Congratulations — Amazon Offer Details Enclosed! </strong>Honestly, I hadn’t expected it especially after how exhausting the final round had been.</p><h3><strong>Tips &amp; Takeaways</strong></h3><ol><li><strong>Amazon’s Leadership Principles are just as important as DSA.</strong> Don’t ignore them, they can easily make or break your interview, especially for freshers. <strong>Ownership</strong> and <strong>Learn and Be Curious</strong> are two Leadership Principles that often stand out.</li><li><strong>Clearly explain your approach and thought process.</strong>Interviewers care more about <em>how</em> you think than just getting the right answer. They’re looking for depth of understanding and how you approach a problem something that takes time and consistent practice to develop.</li><li><strong>Write clean, structured, and optimized code</strong>. Always ask for edge cases and clarify all requirements before jumping into implementation. While practicing on platforms like LeetCode, don’t just focus on solving the problem, explore multiple approaches, understand different patterns, and strive to learn the most optimal solutions.</li><li><strong>Accept that luck plays a role.</strong> Even with solid preparation, the outcome may not always go your way.</li><li><strong>Focus only on the interview.</strong> Don’t overthink the result while you’re in it. Stay present and give your best with the knowledge and confidence you have.</li></ol><p><strong>Prepare for the worst and never hope for the best.</strong> Just show up, stay calm, and perform.</p><p><strong><em>I hope this experience helps you in your preparation journey. Wishing you all the best!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18ea5722336c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>