<?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 Abhiroop Singh on Medium]]></title>
        <description><![CDATA[Stories by Abhiroop Singh on Medium]]></description>
        <link>https://medium.com/@abhiroop1969?source=rss-3127a9abb07------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MtGd6wWx7QMkD___vxhClw.jpeg</url>
            <title>Stories by Abhiroop Singh on Medium</title>
            <link>https://medium.com/@abhiroop1969?source=rss-3127a9abb07------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 01:41:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhiroop1969/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[Myntra Software Engineer-Intern Interview Experience]]></title>
            <link>https://medium.com/@abhiroop1969/myntra-sde-intern-interview-experience-on-campus-ac1c4583f3b9?source=rss-3127a9abb07------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac1c4583f3b9</guid>
            <category><![CDATA[myntra]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[interview-experience]]></category>
            <category><![CDATA[data-structure-algorithm]]></category>
            <category><![CDATA[sde-intern]]></category>
            <dc:creator><![CDATA[Abhiroop Singh]]></dc:creator>
            <pubDate>Sat, 18 Nov 2023 18:24:58 GMT</pubDate>
            <atom:updated>2023-11-18T18:37:25.155Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*kHKnQGzsheYZTOloJE4img.jpeg" /></figure><p>Hello Everyone,</p><p>Abhiroop here.</p><p>Today, I wanted to share my interview experience for Myntra SDE Intern position with all of you. I will try to make sure that you gain something useful out of it. Also this is my first post at Medium so please feel free to give suggestions or appreciate if it is of any help to you.</p><p><strong>Details of Offer:</strong></p><p><strong>Mode: On-Campus</strong></p><p><strong>Position: SDE Intern</strong></p><p><strong>Duration: 6months</strong></p><p>This was an on-campus opportunity which comprised of 1 coding round followed by 2 technical rounds.</p><p><strong>Coding Round:</strong></p><blockquote>Initially, there was a coding test on the Mettl platform that spanned for 1.5 hours. The test consisted of three coding questions of varying difficulty levels (easy to medium) and 10–15 multiple-choice questions related to code output and identifying errors in lines of code.</blockquote><blockquote>For a more in-depth description of the coding questions. <a href="https://docs.google.com/document/d/1hRPJRNZpeZf5HGD8gU2PY8z-Fn0qIB5WaIaOBGcBAoQ/edit?usp=sharing">Click Here</a></blockquote><p>After the coding round, 15 students were shortlisted for a face-to-face interview. The interviews were promptly scheduled for the next day, immediately after the coding test.</p><h3><strong>Interview Process</strong></h3><ul><li>Technical Round 1</li><li>Technical Round 2</li></ul><h3><strong>Technical Round 1</strong></h3><p>The first round was scheduled with Frontend Lead with over 7 years of experience. The discussion commenced with brief introduction from his end followed by mine.</p><p>This wasn’t a machine coding round, rather I was asked to explain my approach and, if necessary, writing out the code during the discussion.</p><p>The discussion began with question about which data structures, I am proficient in. To which I responded arrays, graphs and trees.</p><p>He began by asking me to explain binary search, its time complexity, and the reasoning behind using the formula l + (r — l) / 2. Subsequently, he presented a follow-up question related to a modified version of binary search.</p><p><strong>1st Question: </strong><a href="https://leetcode.com/problems/search-in-rotated-sorted-array/description/"><strong>Search In Rotated Sorted Array</strong></a></p><p>It was a fairly easy question for me, as I had encountered it previously. I proceeded to explain the approach and provided the entire code to him.</p><p><strong>2nd Question: </strong><a href="https://www.geeksforgeeks.org/bipartite-graph/"><strong>Check If Graph Is Bipartite</strong></a></p><p>This time I was only needed to explain the approach using a sample graph. I did not needed to write the code, as the interviewer was satisfied with my explanation.</p><p><strong>3rd Question: </strong><a href="https://leetcode.com/problems/validate-binary-search-tree/description/"><strong>Check If A Tree Is BST or BT</strong></a></p><p>I initially explained the boolean approach, where the return value is left &amp; right. However, he requested an alternative approach. After a few minutes, I came up with the <a href="https://www.youtube.com/watch?v=f-sj7I5oXEI">{minimum, maximum} approach (by Striver)</a> where we basically check if the node lies in specified range or not.</p><p>The round concluded after 45 minutes. Towards the end, I inquired about his role at Myntra.</p><h3>Technical Round 2</h3><p>15 minutes after the end of first round, I was called for the second technical round. This round was conducted by Tech Lead of Backend Team at Myntra with around 7 years of experience.</p><p>The second round commenced with a review of questions asked in first round. He asked about my previous internship experience. Details about specific product that I worked on and the tech stack involved.</p><p>Further, he went through my resume and asked about some of my projects. He focused on what solution does this offer(<a href="https://github.com/Abhiroop-Singh/Smart-Odisha-Hackathon">referring to a project named Swachhta</a>). Additionally, he asked if I have any projects that are hosted? Interviewer asked, <em>“Suppose a website is hosted. Then how would you handle a sudden increase in traffic on your website?”. </em>This discussion on project lasted till 25–30 minutes.</p><p>He communicated that this round will be of around 50 minutes. In this round he will present a question and I need to come up with a solution. He mentioned that he would provide hints if needed during the process.</p><blockquote>He explained the problem statement which is as follows:</blockquote><blockquote>There’s a function called bool knows(int a, int b) that returns a boolean value, indicating whether person &#39;a&#39; knows person &#39;b&#39;. The integers range from 1 to N. The task is to identify the prime minister, defined as a person who is known by everyone else (from 1 to N) but does not know anyone else.</blockquote><blockquote>The conditions are as follows:</blockquote><blockquote>bool knows(any number, prime minister) = true</blockquote><blockquote>bool knows(prime minister, any number) = false</blockquote><blockquote>It’s important to note that the specific boolean values returned by the knows function are uncertain and can be random, but the two conditions mentioned above must be satisfied.</blockquote><blockquote>For example, if we have an array arr = [1,2,3,4,5] and designate 4 as the prime minister, the boolean function knows(4,1), knows(4,2), knows(4,3), and knows(4,5) would all return false because the prime minister knows no one. On the other hand, knows(1,4), knows(2,4), knows(3,4), and knows(5,4) would all return true since everyone else knows the prime minister.</blockquote><p>After he explained the question, I cleared up some of my doubts and then understood the question completely. I asked about the constraints but I missed to ask if it is necessary that the prime minister will exist , what if it does not exist. (When i started to code he pointed out this mistake).</p><p><strong>First Approach:</strong></p><p>I explained brute force approach where we would check for every possible pair and count for number of true and false. However, this approach would have a time complexity of O(N²).</p><p><strong>Second Approach:</strong></p><p>In second approach, I decided to form a directed graph and compute the indegree and outdegree of each node during graph formation. Then look for leaf nodes where indegree[node] = n-1 and outdegree[node] = 0 as those node will be potential prime minister. Despite this the time complexity remains O(N²) due the formation of directed graph.</p><p><strong>After this interviewer asked, “Can you attempt to further optimize the solution and consider a greedy approach?”</strong></p><p><strong>Final Solution:</strong></p><p>As he emphasized a “greedy” approach, meant that time complexity can be reduced to O(N) i.e. we need to eliminate pairs and need not check all pairs.</p><ul><li>This means if A knows B, then A can’t be a prime minister. Remove A and B might be the prime minister.</li><li>Also, if A doesn’t know B, then B can’t be a prime minister. Remove B and A might be the prime minister.</li></ul><p>Finally, I came up with a greedy solution with time complexity of O(N) and space complexity of O(1).</p><blockquote>Interviewer was satisfied with the solution but he gave me a test case to dry run. While doing the dry run I understood that there could be a scenario where there’s no prime minister. Interviewer mentioned that I should have clarified this possibility in the beginning ,he suggested to return -1 if it does not exist.</blockquote><p>In the final 10 minutes, he asked an interesting question: “How would you <strong>reduce the rate-limit </strong>of<strong> </strong>the bool knows(int A, int B) function since it gets called simultaneously for checking relation between A and B.”</p><p>This was my first encounter with such question, so I kept thinking for some data structure to use. When 5 minutes were left, interviewer asked “Can you see in your code if there are some overlapping?”.</p><p>I realized it is dynamic programming and answered that we can use matrix dp[A][B], to store boolean values. This way we can check the dp matrix first before directly calling bool knows(int a,int b)function.</p><p>The interview concluded, and I wasn’t entirely sure about how well it went because there were moments where I faced challenges, and the interviewer provided several hints to guide me through.</p><p>Next Day, results were announced, and I received confirmation for my selection.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac1c4583f3b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>