<?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 Siddharth Singha Roy on Medium]]></title>
        <description><![CDATA[Stories by Siddharth Singha Roy on Medium]]></description>
        <link>https://medium.com/@sid200026?source=rss-7f8d3cb1b417------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K60vHY6vBZcq_LktOqtQfQ.png</url>
            <title>Stories by Siddharth Singha Roy on Medium</title>
            <link>https://medium.com/@sid200026?source=rss-7f8d3cb1b417------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:32:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sid200026/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[On-Campus Placement Experience and Preparation Strategy | Part III]]></title>
            <link>https://sid200026.medium.com/on-campus-placement-experience-and-preparation-strategy-part-iii-a06696283247?source=rss-7f8d3cb1b417------2</link>
            <guid isPermaLink="false">https://medium.com/p/a06696283247</guid>
            <category><![CDATA[natwest]]></category>
            <category><![CDATA[de-shaw]]></category>
            <category><![CDATA[jp-morgan]]></category>
            <category><![CDATA[udaan]]></category>
            <category><![CDATA[interview-experience]]></category>
            <dc:creator><![CDATA[Siddharth Singha Roy]]></dc:creator>
            <pubDate>Thu, 26 Aug 2021 04:57:00 GMT</pubDate>
            <atom:updated>2021-08-26T06:42:57.898Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone, I’m Siddharth. I would love to share with you my preparation strategy, my interview experience, and how I received offers from <strong><em>Microsoft, PayPal, Morgan Stanley, Udaan, De Shaw, JP Morgan, </em></strong><em>and</em><strong><em> NatWest Group. </em></strong>Who knows it may help someone out there.</p><p>This article mainly focuses on my interview experience at <strong>De Shaw, Udaan</strong>, <strong>JP Morgan, </strong>and <strong>NatWest Group</strong>.</p><h3>De Shaw</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*QJHrp0H0UqWOqVqTODOQrg.png" /></figure><p><strong>Round 1: Online Assessment ( 95 minutes )</strong></p><p>The test will have 26 MCQ and 2 coding questions and a total duration of 95 minutes. The test was conducted on Hackerrank. The marking scheme for MCQs was +3 for correct answer and -1 for incorrect. The role for which De Shaw was hiring was Quality and Testing Engineer ( QTE ).</p><p><em>Aptitude Section (14 MCQs, 28 minutes )</em></p><ol><li>Quantitative Section : . Examples: Probability, Permutation &amp; Combination, Profit &amp; Loss, speed-distance-time, etc.</li><li>Logical reasoning and data interpretation. There will be 2 passages with a couple of questions based on each.</li></ol><p><em>Technical Section (12 MCQs, 17 minutes)</em></p><ol><li>Academic subjects based. Examples: Data structure and algorithms, SQL, etc.</li><li>Guess the output of given pseudo code/algorithms.</li><li>Debugging: A pseudo-code and expected output would be given. Candidates will have to find and fix the bugs to achieve the given output.</li></ol><p><em>Coding Section (2 questions, 50 minutes)</em></p><ol><li>The first question will be given 20 minutes to solve while the second one will be given 30 minutes. The questions were similar to <a href="https://www.geeksforgeeks.org/longest-subsegment-1s-formed-changing-k-0s/">https://www.geeksforgeeks.org/longest-subsegment-1s-formed-changing-k-0s/</a> and <a href="https://leetcode.com/problems/critical-connections-in-a-network/">https://leetcode.com/problems/critical-connections-in-a-network/</a>.</li></ol><p>Out of 1509 students, 22 were shortlisted for the second round.</p><p><strong>Round 2: Technical Interview 1 ( 1 hour )</strong></p><p>This round was conducted on the Hackerrank platform. The interview began with the usual questions like introduce yourself and resume-based questions and then we went to the coding questions.</p><p>Given an array of numbers, find whether a Pythagorean Triplet exists or not within the array. A triplet is called Pythagorean if it satisfies a² + b² = c² whether a,b,c are elements at different indices. I started from the brute force solution, O(n³) time, and O(1) space, and then optimized it using a hashmap to O(n²) time and O(n) space. After that, the interviewer gave a hint using a two-pointer approach which can be used to solve the problem in O(n²) time and O(1) space after sorting the array.</p><p>After this, I was asked questions regarding Operating Systems and DBMS based on synchronization, concurrency, and deadlocks. Lastly, I was asked to find the size of an object instance without using the sizeof operator ( Similar to <a href="https://www.geeksforgeeks.org/implement-your-own-sizeof/">https://www.geeksforgeeks.org/implement-your-own-sizeof/</a> ).</p><p><strong>Round 3: Technical Interview 2 ( 1 hour )</strong></p><p>This round mostly focuses on system design, testing a system, and basic testing questions. The interview started with some questions related to my projects and internships and how did I benchmark and what type of unit tests I wrote.</p><p>After that, I was asked what kind of testing will I do in a stock market application which receives gigabytes of data every minute from the stock exchanges. It was a very open-ended question and the interviewer was adding more requirements to the system as we went on. Then we had a question related to SQL Query based on INNER JOIN and GROUP BY. Lastly, I had some questions regarding OS and DBMS mostly on ACID properties, synchronization, deadlock detection, and prevention in a real-world scenario.</p><p>Only 2 students were selected for the QTE role ( Internship + FTE ).</p><h3><strong>Udaan</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVWM4N9ZFTsLmtAx_8tcuA.jpeg" /></figure><p><strong>Round 1: Online Assessment ( 90 minutes )</strong></p><p>The first round was conducted on HackerEarth. It consisted of just one coding question.</p><p>We have to make a calendar application with the following functionalities</p><ol><li>Register a user</li><li>Create an event with a set of users on a given day + slot</li><li>Show the list of events for a user on a given day</li><li>Suggest the earliest possible time slot of a set of users on a given day</li></ol><p>48 out of 4163 students were shortlisted for the next round.</p><p><strong>Round 2: API round ( 60 minutes )</strong></p><p>In this round, we had to design an API service for a fitness class booking platform. The features required were</p><ol><li>Book a slot in the list of classes available. If the size limit is not reached, booking is done. If the size limit is reached, put the user on the waiting list.</li><li>Cancel a class within 30 mins before the class starts and allocate it to the<br>the first person on the waiting list if not empty.</li></ol><p>8 students were shortlisted for the second round.</p><p><strong>Round 3: Techincal Interview 1 ( 45 minutes )</strong></p><p>This round mainly focused on product design. The question was open-ended and the interview was like a discussion session. The question revolved around initial customer retention in a food delivery application. My approach was mostly based around the initial recommendations of restaurants, customized messages and cutleries initially, discounts/coupons, etc.</p><p><strong>Round 4: Techincal Interview 2 ( 45 minutes )</strong></p><p>This round focused on my resume. He asked me questions related to my internships and projects. You’d need to be well-versed with your internships and projects to do well in this round.</p><p>Only 3students were selected ( Internship + FTE ).</p><h3>JP Morgan Chase &amp; Co.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nwU8hEWF5vryGA4_FXSsTQ.jpeg" /></figure><p>JP Morgan instead of taking the traditional interview approach hires through the Code For Good Hackathon. The initial selection process is through a coding round and 1 video interview round.</p><p><strong>Coding Round ( 60 minutes )</strong></p><p>2 simple questions were asked. Could be done easily within 5–10 minutes if a candidate has prepared for DSA. One of the questions was <a href="https://leetcode.com/problems/meeting-rooms/">https://leetcode.com/problems/meeting-rooms/</a>. Since the questions were very easy, most of the students completed both the problems. Thus time to finish was also taken into consideration.</p><p><strong>Video Interview Round ( 2+2 minutes )</strong></p><p>You’ll have to record your answer to 2 pre-recorded questions. You’ll be given 1 minute to prepare your answer, 2 minutes to answer the question and you have a maximum of 2 attempts per question.</p><p><strong>Code For Good Hackathon ( 3 days )</strong></p><p>You’ll be paired up with 4–6 individuals and 2 mentors per team based on your skillset. Problem statements are mostly simple and the judges are mostly looking for innovative solutions. A winner is decided for each problem statement. My team came in third, however, everyone from my team was given a full-time offer.</p><h3>NatWest Group ( RBS )</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YFz5DHS4BUbvd2X_gUxgzw.jpeg" /></figure><p>I did my summer internship ( 6 weeks ) at RBS and received a PPO offer.</p><p><strong>Coding Round</strong></p><p>This round was conducted on Mettl. Consisted of 40–50 MCQs based on aptitude, CS fundamentals, English, and debugging. There were 2 coding questions based on DSA. The questions were simple and even brute-forced solutions worked. There were 1–2 questions based on class-based design wherein you’d have to complete a class based on the given requirements.</p><p><strong>Technical Interview ( 20 minutes )</strong></p><p>This round just lasted for 20 minutes. The interview started with some CS-based questions based on OS, DBMS, and some SQL-based questions. After that, some behavioral questions were asked like workplace conflict, how to handle criticism, leadership principles, etc.</p><p>Thanks for reading. To read about my interview process part 1, <a href="https://sid200026.medium.com/on-campus-placement-experience-and-preparation-strategy-part-ii-b9c51e3576dc">click here</a>. If you want to read about my preparation strategy, <a href="https://sid200026.medium.com/on-campus-placement-experience-and-preparation-strategy-part-1-99463041ced1">click here</a>. You can also join my <a href="https://discord.com/invite/weh748MnZM">Discord Server</a> for guidance and mentorship.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a06696283247" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On-Campus Placement Experience and Preparation Strategy | Part II]]></title>
            <link>https://sid200026.medium.com/on-campus-placement-experience-and-preparation-strategy-part-ii-b9c51e3576dc?source=rss-7f8d3cb1b417------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9c51e3576dc</guid>
            <category><![CDATA[morgan-stanley]]></category>
            <category><![CDATA[microsoft-interview]]></category>
            <category><![CDATA[paypal]]></category>
            <category><![CDATA[interview-experience]]></category>
            <dc:creator><![CDATA[Siddharth Singha Roy]]></dc:creator>
            <pubDate>Thu, 26 Aug 2021 04:55:38 GMT</pubDate>
            <atom:updated>2021-08-26T06:43:02.157Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone, I’m Siddharth. I would love to share with you my preparation strategy, my interview experience, and how I received offers from <strong><em>Microsoft, PayPal, Morgan Stanley, Udaan, De Shaw, JP Morgan, </em></strong><em>and</em><strong><em> NatWest Group. </em></strong>Who knows it may help someone out there.</p><p>This article mainly focuses on my interview experience at <strong>Microsoft</strong>, <strong>PayPal</strong>, and <strong>Morgan Stanley</strong>.</p><h3><strong>Microsoft</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*T52fuqha1I5n8ttXEhf-bQ.jpeg" /></figure><p><strong>Round 1: Online Assessment ( 2 hours )</strong></p><p>This round was conducted on Codility. On Codility, you can only submit your code once ie. your code will run only on the provided sample test cases. You will not be provided with the results of the hidden test cases. So you would need to test your solution for any possible runtime errors, edge cases before finally submitting it. This round consisted of 3 coding questions:</p><ol><li><a href="https://www.geeksforgeeks.org/smallest-number-greater-than-y-with-sum-of-digits-equal-to-x/">https://www.geeksforgeeks.org/smallest-number-greater-than-y-with-sum-of-digits-equal-to-x</a>/. The first question was similar but not exactly this. Due to the small input constraints, it was easy to brute force the solution.</li><li>Given an array of inputs, divide the array into a minimum number of subarrays such that the size of each subarray is less than or equal to the minimum value in the subarray. It can be done in O(NlogN) time by using a greedy approach.</li><li>The third question was a 2-D board problem wherein we need to determine whether an assassin can reach from the start position to the bottom right position. Some paths would be blocked by a guard’s vision.</li></ol><p>Out of 827 students, 48 students were shortlisted ( Cutoff was all 3 questions correct ).</p><p><strong>Round 2: Technical Interview 1 ( 1 hour )</strong></p><p>The meeting was conducted on Microsoft Teams ( obvious ) and live coding on Codility. At the beginning of this round, the interview asked me a brief introduction about myself, what technologies and domains I know and then we dove directly into the coding question. I was also asked to share my screen.</p><p>I had just one coding question in the first round. The question was similar to<a href="https://leetcode.com/problems/3sum/"> 3sum</a> but using a doubly-linked list. I initially gave an O(N³) time, O(1) space solution, and then optimized it to O(N²) time and O(N) space using a hashmap. After that, the interviewer specified that the given list was sorted. I was then able to come up with an O(N²) time and O(1) space solution using Two Pointers. He was satisfied with my approach and asked me to code it up ( You can simply assume the Doubly Linked Class is implemented ). I quickly implemented the solution handling most of the edge cases. Then a performed a dry run using the sample test case. He seemed to be satisfied with my code. However, I noticed I did not handle the edge case where the sum of three numbers exceeds 2³¹-1 or -2³¹. I provided two solutions to handle this case by either adding numbers if they do not exceed the maximum or minimum Integer values or type-cast the values to a larger datatype ie. long.</p><p>After this, he asked me questions regarding Operating Systems based on the following topics:-</p><ol><li>Paging</li><li>Virtual Memory</li><li>Fragmentation</li></ol><p>He then asked me questions about Git, how it is implemented, and some common Git-based questions. In the end, he asked me if I had any questions for him and then our interview ended.</p><p><strong>Round 3: Technical Interview 2 ( 1 hour )</strong></p><p>The interview was conducted with a Principal Engineering Manager at Microsoft. It started with a brief introduction followed by some project-based questions from my resume.</p><p>After that, he asked me to explain my work during my internship at NatWest Group ( RBS ). The discussion regarding my internship work went on for about 40 minutes. After that, he asked me if I had any questions for him and then the interview ended.</p><p>I just had 2 rounds of interviews. Some people had 3–4 rounds as well. Finally, 11 people were selected for internship + FTE.</p><h3>PayPal</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y2QNjtjxfL0Ws1V1lvqiMA.jpeg" /></figure><p><strong>Round 1: Online Assessment ( 2 hours )</strong></p><p>This round was conducted on HackerEarth. It consisted of 2 coding questions</p><ol><li>Given a n*m chessboard and any number of bishops, queens, and rooks on the board, find the total number of valid chess moves possible. Can easily be solved by simulating the movements for each chess piece</li><li>Given a string with lowercase letters and “?” where each “?” can be replaced by any lowercase character, find the total number of strings such that the first and last characters are the same and no adjacent characters are the same. I wasted a lot of time figuring out a mathematical solution. In the end, I brute-forced the solution and optimized it using memorization, and passed 5/13 test cases.</li></ol><p>Out of 427 students, 31 students were shortlisted ( Cutoff was one question full and another question partial ).</p><p><strong>Round 2: Technical Interview 1( 1 hour )</strong></p><p>This round was conducted on Microsoft Teams and CollabEdit was used for live coding. The interview started with a brief introduction, my internship work at NatWest Group ( RBS ) and then we went to the coding question.</p><p>Given a Lisp expression, converted it into an infix expression. An example of Lisp expression is</p><p>(- 3 (- 4 5)) → 3 -(4 -5) or 3 -4 +5</p><p>I solved the problem using recursion in O(N) time and O(N) space. There are certain edge cases that we need to consider for example multiplication should take precedence over addition and subtraction, subtraction can flip signs ( see the above example ). My code covered all of these edge cases and he seemed satisfied with it. After I had finished writing my code, he then gave me the alternate solution for this problem. He simply asked me to remove all the parenthesis from the given expression. Then the problem boils down to converting a prefix expression to an infix expression. But he was satisfied with my approach and explanation. Lastly, we had a general discussion about my projects and the interview ended with some questions from my side.</p><p><strong>Round 3: Technical Interview 1( 1 hour )</strong></p><p>The interview began with a general introduction and then an in-depth discussion on one of my projects <a href="https://github.com/Sid200026/WebGen">WebGen</a>. The questions regarding my project pertained to the architecture used, drawbacks, challenges, etc. After that, he asked me a series of coding questions</p><ol><li><a href="https://www.geeksforgeeks.org/search-in-row-wise-and-column-wise-sorted-matrix/">https://www.geeksforgeeks.org/search-in-row-wise-and-column-wise-sorted-matrix/</a></li><li><a href="https://www.geeksforgeeks.org/in-a-linked-list-given-only-a-pointer-to-a-node-to-be-deleted-in-a-singly-linked-list-how-do-you-delete-it/#:~:text=A%20simple%20solution%20is%20to,and%20delete%20the%20next%20node">https://www.geeksforgeeks.org/in-a-linked-list-given-only-a-pointer-to-a-node-to-be-deleted-in-a-singly-linked-list-how-do-you-delete-it/</a></li><li>Given an array of values, find the number of ways in which you can reach a target ( You can repeat the elements ). I gave an iterative solution and then he actually asked me to compile my solution on my local computer.</li><li><a href="https://www.geeksforgeeks.org/check-leaves-level/">https://www.geeksforgeeks.org/check-leaves-level/</a>. I gave him both a DFS and BFS based approach. He asked me which one would be more practical. I preferred BFS and coded that solution.</li></ol><p>The round ended with some questions from DBMS and OS and some questions from my side</p><p><strong>Round 4: Hiring Manager Round ( 30 minutes )</strong></p><p>The round started with a brief introduction, life at PayPal, and some ice-breaker-type questions. After that, he gave me an open-ended abstract question and asked me to develop some logic ( No need to write any code ). Given a grid containing balloons in some positions, we have to find the maximum number of balloons that can be burst by firing one arrow at any angle from any side. Initially, I spent 5 minutes asking about the requirements, clarifying the questions, and then gave a solution by calculating the maximum number of balloons found on a straight line. He wasn’t fully satisfied and asked me to optimize the logic. I tried to explain some optimizations we can make but it was mostly about how we can reduce runtime rather than time complexity. He asked me to think about how to solve this puzzle later and then the interview ended with me asking some questions about his work, role, challenges, etc.</p><p>Finally, 8 people were selected for internship + FTE, and 4 people were selected for internship only ( Conversion to FTE based on performance ).</p><h3>Morgan Stanley</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*k8MPw2w_BMNL61Gt1wTVXA.jpeg" /></figure><p>This round was conducted on AMCAT. It consisted of 3sections</p><ol><li>Debugging: This section had 7 questions with a time limit of 20 minutes. Each question requires you to make some changes in the code provided based on the given question. The changes are mostly minor for example flipping the comparator, changing initial values, etc. Shouldn’t take more than 5 minutes if have prepared for interviews.</li><li>Aptitude: This section had 16 questions to be solved in 20 minutes. Most of the questions were simple and takes approximately 10–30 seconds to solve. Questions were mostly from speed distance, direction based, number theory, etc.</li><li>Coding: This section is comprised of 3 coding questions to be solved in 90 minutes ( don’t remember the exact duration ). The first question was based on updating a subarray with a certain value and finding the maximum frequency of any value in the array. Can be solved using brute force. The second question was a variant of merge intervals and the third question was to find the minimum changes required in both strings to make them equal.</li></ol><p>Out of 389 students, 48 students were shortlisted for the second round.</p><p><strong>Round 2: Technical Interview 1( 1 hour )</strong></p><p>This round was conducted on Zoom and your local environment was used for live coding ( you need to share your screen ). The interview started with a brief introduction, some resume-based questions like describe your work during the internship, explain one of the projects, etc. Then we had a series of coding questions, SQL queries, system designs:-</p><ol><li><a href="https://www.geeksforgeeks.org/find-the-maximum-sum-path-in-a-binary-tree/">https://www.geeksforgeeks.org/find-the-maximum-sum-path-in-a-binary-tree/</a></li><li>Minimum number of platforms required to allocate all trains based on arrival and departure time</li><li>SQL Query based on INNER JOIN and GROUP BY</li><li>Design a parking lot system. The parking lot consists of 3 levels ( more can be added ). There is 3 type of vehicles motorcycle, car, bus. A motorcycle requires one parking spot of small type or medium type or large type. A car requires one parking spot of medium type or large type. A bus requires 5 parking spots on a large type. Design an efficient system to handle this case ( No preference for vehicles while allocating spots).</li><li>Implement HashSet ( Just approach )</li><li>Questions from OOPs, DBMS, and OS</li></ol><p><strong>Round 3: Technical Interview 2 ( 1 hour )</strong></p><p>This round focused mainly on System Design using OOPs. The problem was to design a ticketing application like BookMyShow which allows users to select movies in a specific movie theatre and time. The theatre can also set prices for each movie being shown at different times and also have a seating hierarchy with different prices ( Like Platinum, Gold, Diamond, etc.). The user should first select the city and then the movie. After that, it should display a list of theatre halls with the start time for each movie screening. Each movie screening may be priced differently according to the theatre. I don’t remember the other specific details about this question.</p><p><strong>Round 4: HR Interview ( 1 hour )</strong></p><p>A typical HR round with the following type of questions</p><ol><li>Introduce yourself</li><li>Sell me your startup or pitch your startup to an investor</li><li>How do you handle workplace conflict</li><li>Future of ed-tech sector in India</li></ol><p>Most of the questions require instant thinking and also some of them can be answered using the STAR method.</p><p>8 students were selected for internship + FTE while 3 students were selected for internship only.</p><p>Thanks for reading. To read about my interview process part 2, <a href="https://sid200026.medium.com/on-campus-placement-experience-and-preparation-strategy-part-iii-a06696283247">click here</a>. If you want to read about my preparation strategy, <a href="https://sid200026.medium.com/on-campus-placement-experience-and-preparation-strategy-part-1-99463041ced1">click here</a>. You can also join my <a href="https://discord.com/invite/weh748MnZM">Discord Server</a> for guidance and mentorship.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9c51e3576dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On-Campus Placement Experience and Preparation Strategy | Part I]]></title>
            <link>https://sid200026.medium.com/on-campus-placement-experience-and-preparation-strategy-part-1-99463041ced1?source=rss-7f8d3cb1b417------2</link>
            <guid isPermaLink="false">https://medium.com/p/99463041ced1</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[preparation-strategies]]></category>
            <dc:creator><![CDATA[Siddharth Singha Roy]]></dc:creator>
            <pubDate>Thu, 26 Aug 2021 04:52:35 GMT</pubDate>
            <atom:updated>2021-08-26T06:49:28.298Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone, I’m Siddharth. I would love to share with you my preparation strategy, my interview experience, and how I received offers from <strong><em>Microsoft, PayPal, Morgan Stanley, Udaan, De Shaw, JP Morgan, </em></strong><em>and</em><strong><em> NatWest Group. </em></strong>Who knows it may help someone out there.</p><p>This article mainly focuses on my preparation strategy</p><h3><strong>Preparation Strategy</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*DENauUixUf2DS-VfgKCXlA.png" /><figcaption>Keep Calm and Grind LeetCode</figcaption></figure><p>I began my preparation for my final-year placements in February 2021 ( 2–3 months preparation is just fine ). Before my preparation, I had little experience in Data Structure and Algorithms, Competitive Programming, since I was mostly into development. Fast forward 6 months, I have solved <strong>950 problems</strong> on <a href="https://leetcode.com/sid200026/">LeetCode</a> ( <strong><em>234 Easy, 578 Medium, 138 Hard</em></strong> ) and have a rating of 1871 on <a href="https://www.codechef.com/users/s_i_d_2_6">CodeChef</a> ( 4 stars ).</p><p>While 950 problems seem a lot, it’s easily doable with constant practice. Moreover, I barely used to spend 1–2 hours and just solve 2–4 problems per day on LeetCode. Your goal should be to learn and expand your current skills instead of running behind a number of problems. When I started LeetCode, I never would have imagined that I would solve 900+ problems however with small consistent efforts each and every day I achieved it. Furthermore, you don’t have to solve 950 problems. A range of 100–300 is good as long as you learn and solve a variety of problems out of your comfort zone.</p><p>I once used to struggle with LeetCode easy questions. I would spend a lot of my time staring at the Discussion tab even for simple questions like Two-Sum, Three-Sum. I had to watch multiple youtube videos to actually understand the concept behind it. Lastly, you don’t need to be engrossed in preparation all day long. I would spend most of my day with academics, football, gaming, and movies. However every night I used to consistently spend some time on placement preparation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*7lsmtcOPSL9vtHUuqz_aGQ.png" /><figcaption>LeetCode Graph</figcaption></figure><p>Most of the interviews and online assessments revolve around the following data structures, algorithms, and approaches:-</p><blockquote><strong>Data Structures</strong></blockquote><ol><li><em>Array</em></li><li><em>String</em></li><li><em>Stack</em></li><li><em>Queue</em></li><li><em>Dequeue</em></li><li><em>Linked List ( Single and Double )</em></li><li><em>Heaps</em></li><li><em>HashMap and HashSet</em></li><li><em>Tries</em></li><li><em>Trees</em></li><li><em>Graphs</em></li><li><em>Union Find</em></li></ol><p>You should be able to implement the above data structures from scratch and also know how to use the implementations provided in your programming language. For example, if you’re using Cpp, you should know how to use the STL implementations of the above. Although from scratch implementation is not asked that often, however, if asked and you do not know how to implement it, then that’s a huge red flag.</p><blockquote><strong>Algorithms</strong></blockquote><ol><li><strong><em>Sorting</em></strong><em>: Merge Sort, Quick Sort, Radix Sort, Counting Sort</em></li><li><strong><em>Searching</em></strong><em>: Linear Search, Binary Search</em></li><li><strong><em>Graph Traversal</em></strong><em>: DFS, BFS</em></li><li><strong><em>Tree Traversal</em></strong><em>: Preorder, Postorder, and Inorder ( Also learn Morris Traversal )</em></li><li><em>Dijkstra, Prim’s and Kruskal</em></li><li><em>Kosaraju and Tarjan’s algorithm for strongly connected components</em></li><li><em>Sieve of Eratosthenes</em></li><li><em>Floyd’s cycle detection algorithm</em></li></ol><blockquote><strong>Approaches</strong></blockquote><ol><li><em>Two Pointer</em></li><li><em>Sliding Window</em></li><li><em>Running Sum or Prefix Sum</em></li><li><em>Bit Manipulation</em></li><li><em>Recursion ( Also learn how to prune a recursion tree )</em></li><li><em>Backtracking</em></li><li><em>Memoization</em></li><li><em>Dynamic Programming</em></li><li><em>Cycle detection in graphs ( both directed and undirected )</em></li><li><em>Greedy</em></li><li><em>Number Theory</em></li><li><em>Ad-hoc</em></li></ol><blockquote><strong>How I prepared the above topics</strong></blockquote><p>Firstly I would try to implement the above data structures <strong>from scratch</strong> so that I have a basic understanding of how the data structure works. Then I would try to perform the basic operations using the inbuilt libraries for example STL. Once I felt comfortable with the inbuilt libraries, I’d try to solve problems based on that data structure on LeetCode ( mostly easy ). After solving it, I’d go through the discussion forum to see how other people implemented the same solution. Just so you know, I remember spending an entire day understanding the optimal approach for the Longest Increasing Subsequence problem.</p><p>I cannot stress enough how important it is to <strong>go through the discussion forum</strong> after you have solved a problem. Not only do you learn new approaches but also you can also new inbuilt methods, shorthands, etc. Lastly, you should always aim to solve questions that are out of your comfort zone ie. if you find the easy level questions simple, then you should start doing medium level questions. <em>It is better to spend 60 mins solving a medium question than solving 10 easy questions in 60 mins</em>.</p><p>Also <strong>actively participate in LeetCode Weekly and Biweekly challenges</strong>. It not only allows you to compete with other job seekers but also prepares you for your online assessments. Moreover, you can simulate online assessments by creating rooms in <a href="https://binarysearch.com/">BinarySearch</a> and solving problems there ( I personally tried to solve 4 medium or 4 hard questions in the given timespan ). You should aim to solve an <strong>Easy question in 5–10 mins, a Medium question in 5–20 minutes, and a Hard question in 20–30 minutes </strong>( some questions are actually mislabeled and take a lot of time to solve ). However, at the start, you would mostly take a lot of time to solve even an easy question. Everyone goes through that phase. So keep practicing and you’ll be able to see your improvement.</p><p>Another thing I would recommend you to do is <strong>not look at the constraints</strong> for the given question ie. the range of values since it becomes very easy to guess the estimated time complexity for the given problem. In an interview, you would rarely be provided with a range of input. Thus it is actually a good practice to try to get a brute force solution and then to try to optimize it as much as you can. You can try out this <a href="https://chrome.google.com/webstore/detail/constraints-blocker-leetc/poadlijigkkehhbfnmdabgecngbmoaho">extension</a>.</p><p><strong>Don’t use print statements to debug your code</strong>. In an interview, you would have to dry run your code to actually debug it instead of simply printing it to the console. Make it a habit to write code with <strong>proper variable and function names</strong>. Lastly <strong>do not spam Run Code.</strong> Use it only when you are sure the code you wrote works ie. you have performed a dry run using the sample input.</p><p>Some important LeetCode links:-</p><ol><li><a href="https://leetcode.com/discuss/general-discussion/786126/python-powerful-ultimate-binary-search-template-solved-many-problems">https://leetcode.com/discuss/general-discussion/786126/python-powerful-ultimate-binary-search-template-solved-many-problems</a></li><li><a href="https://leetcode.com/discuss/general-discussion/460599/blind-75-leetcode-questions">https://leetcode.com/discuss/general-discussion/460599/blind-75-leetcode-questions</a></li><li><a href="https://leetcode.com/discuss/general-discussion/665604/important-and-useful-links-from-all-over-the-leetcode">https://leetcode.com/discuss/general-discussion/665604/important-and-useful-links-from-all-over-the-leetcode</a></li></ol><blockquote><strong>DSA Preparation in Short</strong></blockquote><ol><li>Know how to implement data structures from scratch and the corresponding inbuilt in your programming language</li><li>Go through the discussion forum after solving a question</li><li>Actively participate in Weekly and BiWeekly challenges on LeetCode</li><li>Aim to solve an Easy question in 5–10 mins, a Medium question in 5–20 minutes, and a Hard question in 20–30 minutes ( Won’t be possible when you start solving but will come through practice )</li><li>Do not look at the range of input or constraints for a problem</li><li>Don’t use print statements to debug your code</li><li>Proper variable and function names</li><li>Do not spam Run Code</li></ol><blockquote><strong>Core CS Concepts</strong></blockquote><p>Questions based on Core CS Concepts comprise 5-10 mins of your interview and are a chance to impress the interviewer. These 5–10 minutes is the difference between “Hire” and “Strong Hire”. However, unlike DSA and Algorithms, this round doesn’t require a lot of time to ace. The only thing required is an organized and smart study. Most of the time the questions are from <strong>Operating Systems, Objected Oriented Programming, or Database Management Systems</strong>. Questions from Networks are uncommon but not impossible. I mostly referred to the following links during my preparation</p><p><strong>OS</strong></p><ol><li><a href="https://www.geeksforgeeks.org/most-asked-computer-science-subjects-interview-questions-in-amazon-microsoft-flipkart/?ref=rp">https://www.geeksforgeeks.org/most-asked-computer-science-subjects-interview-questions-in-amazon-microsoft-flipkart/?ref=rp</a></li><li><a href="https://www.geeksforgeeks.org/commonly-asked-operating-systems-interview-questions-set-1/">https://www.geeksforgeeks.org/commonly-asked-operating-systems-interview-questions-set-1/</a></li></ol><p><strong>OOPs</strong></p><ol><li><a href="https://drive.google.com/file/d/1fO2OkxVCQ7P0jHb6ghOj8ARxZx1ePjd2/view?usp=sharing">https://drive.google.com/file/d/1fO2OkxVCQ7P0jHb6ghOj8ARxZx1ePjd2/view?usp=sharing</a></li></ol><p><strong>DBMS</strong></p><ol><li><a href="https://drive.google.com/file/d/1swfUha07N42pPP3YHvVRJXy5BsYVuUcy/view?usp=sharing">https://drive.google.com/file/d/1swfUha07N42pPP3YHvVRJXy5BsYVuUcy/view?usp=sharing</a></li></ol><blockquote><strong>System Design</strong></blockquote><p>System Design is not usually asked of freshers during an interview. However, if asked, it can take the candidate by surprise. Thus having some grip over this may help you ace such rounds. Thus you need to be comfortable with one of the three design paradigms:-</p><ol><li>ER Diagrams and Class Diagrams</li><li>LLD via Database Design</li><li>LLD via OOPs Concept</li></ol><p>I mostly referred to the following links during my preparation process:-</p><ol><li><a href="https://leetcode.com/discuss/interview-question/object-oriented-design">https://leetcode.com/discuss/interview-question/object-oriented-design</a></li><li><a href="https://github.com/prasadgujar/low-level-design-primer">https://github.com/prasadgujar/low-level-design-primer</a></li></ol><h3>Motivation</h3><p>3–4 months are enough to prepare to complete your placement preparation process. You just need to be consistent. That’s it. Consistency and hard work, that’s your mantra to success.</p><p>Secondly, the luck factor doesn’t play a major role during your interviews. The harder you work, the more frequently you’ll see “luck” during your interviews.</p><blockquote>I’m a great believer in luck, and I find the harder I work, the more I have of it. <em>~ Thomas Jefferson, former President of the United States</em></blockquote><p>Thanks for reading. To read about my interview process <a href="https://sid200026.medium.com/on-campus-placement-experience-and-preparation-strategy-part-ii-b9c51e3576dc">click here</a>. You can also join my <a href="https://discord.com/invite/weh748MnZM">Discord Server</a> for guidance and mentorship.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99463041ced1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>