<?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 Prerna Gupta on Medium]]></title>
        <description><![CDATA[Stories by Prerna Gupta on Medium]]></description>
        <link>https://medium.com/@prernablr92?source=rss-9de8ea34c113------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EW4RrI3ZC-CYXDXC</url>
            <title>Stories by Prerna Gupta on Medium</title>
            <link>https://medium.com/@prernablr92?source=rss-9de8ea34c113------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:01:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prernablr92/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[Journey to Google : Part 2]]></title>
            <link>https://prernablr92.medium.com/journey-to-google-part-2-6c9e1b6b812?source=rss-9de8ea34c113------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c9e1b6b812</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[faang-interview]]></category>
            <category><![CDATA[data-structure-algorithm]]></category>
            <category><![CDATA[interview-experience]]></category>
            <dc:creator><![CDATA[Prerna Gupta]]></dc:creator>
            <pubDate>Wed, 18 Aug 2021 14:41:16 GMT</pubDate>
            <atom:updated>2021-08-18T14:44:51.098Z</atom:updated>
            <content:encoded><![CDATA[<h3>Journey to Google : Part 2</h3><p>As I promised in my previous post <a href="https://prernablr92.medium.com/journey-to-google-part-1-761314f13707">Journey to Google : Part 1 </a>I will share my interview experience with few of the FAANG companies.<br>Among the FAANG companies, I gave an interview with Google, Facebook, Amazon. Out of these, I had cracked Google and Amazon but failed in the Facebook interview process.</p><h3><strong>Google</strong></h3><p>I will start with my dream company 😀.</p><p>The interview process started with a exploratory call from one of the google recruiters, in which he explained to me what they expected in interviews, how much my preparation should be, and also where most of the candidates fail. It was an informative and explanatory call, they provided me with a lot of resources. One good thing about them was, they dint gave me any false expectation that it would be an easy process but along with that, they gave me confidence that if I prepared well it would not be a hard nut of crack. Overall after talking to them you feel motivated.</p><p>The interview process started with screening rounds and after that 5 rounds of interviews, out of which 4 were technical and 1 was Googleyness round.</p><ul><li><strong>Screening Round</strong></li></ul><p>In this, you have 45 minutes. Depending on the interviewer you will get one or two questions. I was asked two questions.<br>The questions were similar in concepts to these questions :</p><p><a href="https://leetcode.com/problems/merge-intervals/">Merge intervals</a></p><p><a href="https://leetcode.com/problems/diameter-of-binary-tree/">Diameter of binary tree</a></p><p>I was able to solve both questions.<br>Few important points that I had realized after giving screening round was that :</p><ul><li>They pay much attention to how quickly you can write bug-free code.</li><li>They ask you in detail about the complexity of your solution and the different complexities that you can come up with.</li><li>Always ask clarifying questions from them. I am sure if they are good you will get some bonus points.</li></ul><p>The next day I got a call from my recruiter that I had cleared the screening round and they are ready to move forward. It took almost 5 months for preparation.</p><ul><li><strong>Round -1</strong></li></ul><p>The interviewer had asked a question that was similar to <a href="https://leetcode.com/problems/task-scheduler/">Task scheduler</a>. After solving the question, the interviewer had modified the same question (related to multi-core CPU)and asked me how will I modify my solution to satisfy new requirements.</p><ul><li><strong>Round-2</strong></li></ul><p>The question asked was somewhat similar to <a href="https://leetcode.com/problems/russian-doll-envelopes/">Russian doll envelope</a> but a little harder than this. After solving the initial question he had modified the question (he went into multi-dimensional boxes). The focus was more on my coding styles e.g. he asked me about lambdas’ function and why I have used them, what is the pros and cons of it. So, I will advise you to know in-depth about the in-built functions you are using in your code.</p><ul><li><strong>Round 3</strong></li></ul><p>It was related to the encoding decoding of a string with some kind of pattern encoding. He asked me how to optimize the encoding process in terms of space and time complexity. This type of question I had seen for the first time. Also, it was more of a discussion question rather than coding.</p><ul><li><strong>Round 4</strong></li></ul><p>He started by asking about some of my challenging projects. Then similar to the “top K elements” question was asked, and different approaches to solve it based on memory constraints. It was a very detailed round, which checked on my conceptual knowledge of data structure.</p><ul><li><strong>Googlyness round</strong></li></ul><p>Usually, Google will ask you situation-based questions like :</p><blockquote>If you have a project to develop and you need to collaborate with another team, how will you convince another team to give time to you from their bandwidth?</blockquote><blockquote>How will you develop a project in minimal time, and how will you filter out the requirements based on their importance, and decide which will go in your first version release?</blockquote><p>After two weeks I got a call from my recruiter that my candidature is going to the Hiring Committee of Google and after two weeks they gave me a green signal that I am selected in google.</p><p>After this, I went through team matching rounds, where based on your past work experience best teams are selected which also takes into account how much that team manager is interested in your previous work. If in this team matching round you and that team manager find each other suitable then team selection is completed, otherwise, this process continues until you find a suitable team as per your requirements.</p><p>Finally, after I got selected in a team, google extended me an offer letter. At that moment I was on cloud nine. All the hard work of almost 6 months paid off and seeing my loved one happiness was the best feeling in the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*8tb65yltHw3oRkd8.gif" /></figure><h3><strong>Facebook</strong></h3><p>I gave an interview for the Facebook London office.<br>Same as Google, Facebook recruiters were also very friendly and gave me sufficient preparation materials.<br>In the Facebook interview, I had to give both system design and data structure rounds other than a behavioral round.</p><p>Similar to Google initially they had screening round :</p><ul><li><strong>Screening round :</strong></li></ul><p>It was the same pattern as in Google, they gave 45 min and 2 questions were asked. The question was somewhat in a similar concept to these questions :</p><p><a href="https://www.geeksforgeeks.org/remove-invalid-parentheses/">Remove invalid parentheses</a></p><p><a href="https://leetcode.com/problems/generate-parentheses/">Generate parentheses</a></p><p>After around one week recruiter called me up and told me that I cleared my screening round and after this, I will have 3 data structure rounds, 1 system design round, and 1 behavioral round.</p><p>After 1 week I got a call that I have cleared screening rounds. After this, I took around ~2 months for preparation, before going for the next set of rounds.</p><ul><li><strong>Round-1</strong></li></ul><p>It was a data structure-based round. He had focused on various approaches to the question, along with the complexity. The question was not this much easy but the basic concept was similar to this.</p><p>D<a href="https://leetcode.com/problems/generate-parentheses/">uplicate elements of array</a></p><ul><li><strong>Round-2</strong></li></ul><p>The question was a graph-based question where I was given a start and end target and had to find a minimum cost based on certain constraints. I went with the BFS solution for this. Then he went into the further discussion that what if we have a large number of vertices, how will you reduce memory footprint (I answered bidirectional BFS). He discussed the pros and cons of each approach that I had shared with him.</p><ul><li><strong>Round -3</strong></li></ul><p>It was a purely Dynamic programming-based question that required the use of a binary lifting approach. This was the toughest round among all data structure rounds.</p><ul><li><strong>Round-4</strong></li></ul><p>It was a system design round. He had asked me to design an auction system. He went into depth on distributed systems like how to avoid replication lags, how to tackle inconsistent data, what to do in case of race conditions.<br>In some of the questions related to these topics I got confused and was not confident in my solution, which I think costed me.</p><ul><li><strong>Behavioral Round</strong></li></ul><p>All questions were popular behavioral questions and nothing surprising came up in this round.</p><p>After 2 weeks I got a call from a recruiter, that I did not clear Facebook. I had aced in data structure rounds but the system design round was not up to the mark. 😒</p><h3>Amazon</h3><p>Amazon interview process started with hacker rank round, which had two questions and 1 hr was given for it.<br>After this hacker round got cleared. I had two technical rounds, 1 system round and 1 behavioral round, and 1 managerial round.</p><ul><li><strong>Technical Round 1</strong></li></ul><p>It was based on Trie data structure. It was a hard level question and around 1 hour was given for the same.<br>The question was asked directly from leetcode.</p><ul><li><strong>Technical round 2</strong></li></ul><p>They had asked <a href="https://leetcode.com/problems/edit-distance/">Edit distance</a> question of dynamic programming and focused mainly on concepts of dynamic programming.</p><ul><li><strong>System design round</strong></li></ul><p>The interviewer had asked to design a system similar to BookMyShow and emphasized mainly database designing.</p><ul><li><strong>Behavioral round</strong></li></ul><p>All the questions were based on the leadership principle of Amazon.</p><ul><li><strong>Managerial round</strong></li></ul><p>He asked me related to designing the Twitter-based system and then dwelled in-depth related to my challenging projects and discussed in detail the challenges that I had faced.</p><p>After 1 week I got a call from the Amazon recruiter that I have cleared amazon rounds and they are ready to extend the offer.</p><p>Few <strong>takeaways</strong> after giving FAANG interviews are :</p><ul><li>Google and Facebook focus a lot on <strong>bug-free optimized quick code</strong> and they have strict time constraints. Amazon is a little lenient in this context, they can extend the time, and somewhat buggy code also works fine with you if your approach is correct.</li><li>I have noticed that none of the questions of Google were directly from anywhere. You can ace their interview with a lot of practice. Comparatively facebook and amazon questions are directly from leetcode, geeksforgeeks, or other well-known coding sites.</li><li>For each of these companies, you need to be clear about what you are writing, you should know different approaches to solving the question. Don’t mug up any concept because sometimes they go in-depth and you may get in trouble.</li><li>Just a suggestion always keep few competing offer in hand when you are negotiation with any of these companies, that will help you a lot😉</li></ul><p>In the end, I would also like to tell you that luck plays an important role in these interviews. Interviews don’t decide your technical ability or your knowledge. Just have confidence in yourself and your preparation and never get distressed. There are a lot of companies in this ocean, just believe in yourself and stay focused.</p><p>So, I hope I was able to help you with these tips and my interview experience. Good luck with your preparation journey and enjoy each and every day of it.Stay tuned 😊</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SXWKC4tCGP6sC-r3.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c9e1b6b812" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey to Google : Part 1]]></title>
            <link>https://prernablr92.medium.com/journey-to-google-part-1-761314f13707?source=rss-9de8ea34c113------2</link>
            <guid isPermaLink="false">https://medium.com/p/761314f13707</guid>
            <category><![CDATA[faang-interview]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[interview-tips]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Prerna Gupta]]></dc:creator>
            <pubDate>Tue, 11 May 2021 08:16:40 GMT</pubDate>
            <atom:updated>2021-08-18T14:42:14.396Z</atom:updated>
            <content:encoded><![CDATA[<h3>Journey to Google : Part 1</h3><p>My journey to FAANG companies.. the journey of rejection and selection.</p><p>I was working as a software engineer with almost 5 years of experience. At that point, I thought of taking on new challenges which led me to prepare for FAANG companies. Also, it was my dream to be in Google.</p><p>I knew the road ahead of preparation and cracking the FAANG interviews along with my office work would be difficult.</p><p>After looking into the interview pattern of FAANG companies, I realized that I need rigorous preparation of both data structure and system design since both are equally important. It took almost 6 months of preparation (~3–4 hrs/day).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/0*9iVTZcxqn-xDGlOx.gif" /></figure><p>After that, I was able to crack Google, Amazon, Microsoft and got rejected by Facebook.</p><p>In this post, I will share my preparation strategies and also the interview experience of these companies. Hopefully, it may help you and you find it useful in your journey to FAANG.</p><p>After that, I was able to crack Google, Amazon, Microsoft and got a rejection from Facebook.</p><p>In this post, I will share my preparation strategies, and also the interview experience of these companies. Hopefully, it may help you in your journey to FAANG.</p><p>Also, I will shortly start a series where I will focus on approaches for solving different categories of data structure questions. This I have created after solving ~600 questions on leetcode.</p><p>Before starting, I would like to tell you that cracking these company interviews is challenging, and many times during your preparation journey you may feel frustrated. But, Please remember the main key to cracking FAANG is <strong>dedication</strong> and <strong>a positive attitude</strong>. Keep with you something that can motivate you every day. Me working for google was my father’s dream more than mine, So I kept my family photo in front of me. Whenever I came to the stage of giving up looking at them instantly motivated me.</p><p>Also, always remember :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*ACuY36J0pf5RLNNq" /></figure><h3><strong>Data structure problems preparation :</strong></h3><p>For practicing data structure questions I used leetcode. Along with that, I had scheduled many mock interviews on pramp. Giving mock interviews helps build confidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*aghdoj4ILJf79jrG.jpg" /></figure><p>Few tips while preparing for data structure questions are :</p><ul><li>Make it a <strong>habit that you should do at least 1 question every day</strong>, and gradually increase this count. Most of us go out of touch with data structure questions, practicing daily will build the much-required habit to crack the FAANG interviews.</li><li>List down the<strong> main topics of data structures,</strong> and important algorithms and concepts that you need to work upon. Some concepts which I had gone through before starting data structures questions were :</li></ul><blockquote>Arrays — Kadane algorithm, Binary search (custom binary search)</blockquote><blockquote>String — KMP algorithm, Robin Karp</blockquote><blockquote>Trees — Inorder, preorder, postorder traversal (both with recursion and without recursion), Binary lifting.</blockquote><blockquote>Graph — Union find, Dijikstra, Prims , Kruskal, Floyd warshall, BFS , DFS, Topological Sort.</blockquote><blockquote>Priority Queue, Segment tree, Quick select algorithm</blockquote><ul><li>Before starting your practice make it a custom to <strong>never use the autocomplete feature of your IDE</strong>. Also, try to <strong>avoid debugger</strong>. Start making notes of the important built-in functions that you are using and revise them daily. Resolve compilation errors before submitting an answer.</li><li>After you go through the major concepts, go topic-wise, and practice at least 2–3 questions of each concept so that you can identify the concept of question from the first look.</li><li>The next step is to start with the most difficult, and most frequently asked questions. I had realized that Google asks graph questions where candidates fail the most. So, I had started with the Graph topic first, then went to trees, arrays, strings, Dynamic programming, linklist, bit manipulation. You can decide topic order based on your strength and weakness. Do at least ~20–30 questions on each topic.</li><li>Practice by <strong>selecting random questions</strong>, Avoid seeing tags of the question. During interviews we get random questions, Sometimes the approach doesn’t get clicked in the first place. e.g. <a href="https://leetcode.com/problems/couples-holding-hands/discuss/?currentPage=1&amp;orderBy=most_relevant&amp;query=union%20">Couple holding hands</a> question, there are multiple approaches to solve it, But most of the time we fail to realize that a graph-based approach can be used to solve it.</li><li>While practicing <strong>make a list of the question that you need to revise again </strong>(where you have seen the solution, or where you think that it is an important question), and revise it periodically. I had bookmarked questions with various tags like “To do questions”, “Revise questions”, “Reduce complexity”.</li><li>Also<strong> never see the solution of a question directly</strong> at least try to come up with a solution even if it is not optimized. Try for at least 1 day on that question seriously. Even then if you are not able to come up with a solution, first see the tags to which it refers to, later some hints, and at last, if you are not able to solve refer to the solution. Also analyze why you were not able to come up with a solution, where you were wrong.</li><li>Always<strong> find a pattern in question</strong>. Once you start practicing you will realize that questions can be subdivided into some patterns. Once you start finding these patterns, the road will get much easier. As mentioned earlier, I will share these patterns in my upcoming blogs.</li><li>There is the “Discuss” section on leetcode, where one can see different solutions posted, Always look into them for each problem you solved, It gives insight on how to solve each question in multiple ways that will broaden your thinking.</li><li>Once you have confidence that you can solve questions, Start <strong>keeping track of your time limit</strong>. Try to solve the questions in ~20 min, if you are targetting for FAANG.</li></ul><h3><strong>System design preparation</strong></h3><p>For system design, there is no specific resource from where you can gather knowledge as it’s very vast, and depends on your work experience.</p><p>I would suggest reading about the following important concepts :</p><ul><li>Load Balancers</li><li>Sharding</li><li>Caching / Memcache</li><li>Grids</li><li>Distribution of Data</li><li>Speed / space / time trade-offs</li><li>Pagination</li><li>API’s</li><li>Client / Server relationships</li><li>Partitioning</li><li>Throughput</li><li>Stream processing</li><li>Shared nothing architecture</li><li>CAP theorem</li><li>Base Model</li><li>Client and server architecture</li><li>NoSQL</li><li>Key-value pair databases</li><li>Document databases</li><li>Wide column databases</li></ul><p>I had found <a href="https://www.oreilly.com/library/view/designing-data-intensive-applications/9781491903063/"><strong>Designing data intensive applications</strong></a><strong> </strong>book<strong> </strong>very useful for knowing all the pitfalls and issues we face while designing a distributed system.</p><p>Along with this<strong> </strong>go through the engineering blogs to get deep insight into how real systems are designed.Some of the engineering blogs and videos that I had referred are :</p><blockquote><a href="https://instagram-engineering.com/">Instagram Enginnering</a></blockquote><blockquote><a href="https://eng.uber.com/">Uber engineering</a></blockquote><blockquote><a href="https://blog.twitter.com/engineering/en_us.html">Twitter engineering</a></blockquote><blockquote><a href="https://www.youtube.com/channel/UCkQX1tChV7Z7l1LFF4L9j_g">Infoq youtube channel</a></blockquote><blockquote><a href="https://www.youtube.com/channel/UCn1XnDWhsLS5URXTi5wtFTA">Tech Dummies</a></blockquote><p>Also, you should <strong>practice system design mock interviews</strong> with your friends or any senior teammate or from any other resources like <a href="https://www.pramp.com/#/">pramp</a>, where they can point out mistakes you are making.</p><p>Keep in mind that the system design question does not have a right or wrong answer. Interviewers analyze your approach and thinking, they judge you on points like how do you come up with a solution, how confident you are with your solution, how you trade-offs because no design can be perfect.</p><p>Plus always remember to be open-minded in these discussions. Don’t be rigid in your solution, because there can be many ways to design a system.</p><p>In the next part <a href="https://prernablr92.medium.com/journey-to-google-part-2-6c9e1b6b812">Journey to Google : Part 2</a>, I have shared my interview experience with a few of the FAANG companies and my take from these interviews.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=761314f13707" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>