<?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 Ishan on Medium]]></title>
        <description><![CDATA[Stories by Ishan on Medium]]></description>
        <link>https://medium.com/@ish.ranga11?source=rss-171075138a09------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*UNUvareNg5qTLg1G00p5og.jpeg</url>
            <title>Stories by Ishan on Medium</title>
            <link>https://medium.com/@ish.ranga11?source=rss-171075138a09------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:16:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ish.ranga11/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[Last-minute Cheat Sheet for Coding Interviews]]></title>
            <link>https://medium.com/@ish.ranga11/coding-preparation-endgame-e7d866958e6b?source=rss-171075138a09------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7d866958e6b</guid>
            <dc:creator><![CDATA[Ishan]]></dc:creator>
            <pubDate>Sun, 01 Aug 2021 16:04:09 GMT</pubDate>
            <atom:updated>2021-11-26T15:37:07.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Fzfdu2hqQmo9usIZD9nSEg.jpeg" /></figure><p>Hello all,</p><p>I am Ishan, a 5th year Undergraduate Student from the Department of <strong>Computer Science and Engineering</strong> enrolled in the Integrated Dual Degree course at <strong>IIT Kharagpur</strong>. This article is regarding mock interviews which act like garnish on top of your coding preparation journey. I got an internship offer from <strong>Google</strong> and <strong>Uber </strong>for the Summer of 2020 and accepted the offer from <strong>Google</strong>. Later I got the <strong>PPO </strong>from <strong>Google </strong>to join in as a full-time employee in 2021.</p><p>Well, assuming that we are done with our preparation for the coding interviews now, (you may refer to my previous article <a href="https://medium.com/@ish.ranga11/the-8-month-plan-to-get-an-internship-in-your-dream-company-8195e419726a">The 8-month plan to get an internship in your dream company</a>), it’s time to hit the final tics before the endgame. With the coding interviews knocking on the door, I will try to keep this article short and insightful. I would suggest you take a glimpse of the following topics in these last few days:</p><ul><li><strong>Coding Revision:</strong> Mostly, if you have practiced a lot of coding, then solutions will come intuitively, but what about some questions with unique answers. These answers could even be exclusive to just save on the space or involve some mathematical formulas. So for these, go through interviewbit topics once and check if you remember those. If you don’t, then don’t panic as it is better to not remember now than in the interview itself. Mark them, keep a note, add them to bookmarks or create excel sheets with links to these special questions. To save time you can hurry through the questions with most points or questions from major companies.</li><li><strong>Data structures overview:</strong> Yes, you do remember that you can solve a problem using Set ( in C++ ) but what is the data structure employed there? Yes, the interviewer might ask this to understand whether you know how the data structures actually work. Don’t worry about the code that implements balancing in a binary search tree, but rather just know how it works ( no one will ask you to implement it, hopefully ). Look at this <a href="https://www.interviewcake.com/data-structures-reference">cheat sheet</a> for quick revision.</li><li><strong>Pointers:</strong> What was the last time you implemented a linked list? Or a trie? Or trees with Node* child? It is common not to remember how to execute these, or maybe you forgot, or worst-case scenario, you are afraid of them. But relax, take a chill pill! Assign a day or two just to unleash the mysteries behind these seemingly complicated topics! To your surprise, they are actually easy if you don’t procrastinate. This works and you will have that confidence back. Anyways, we all have that one friend-cum-teacher for such pressure moments.</li><li><strong>CV:</strong> It is excellent mentioning all the courses and the projects, where you invested all your hard work, in your CV. BUT, can you reflect on their importance and all your efforts there, in front of the interviewer? Some things in CV might be many months older, and you might not remember them correctly at first, so just brush up all the bullets on your CV and be prepared for any questions regarding them.</li><li><strong>Communication:</strong> Surprisingly, this is one of the most unmentioned topics despite being of utmost importance. You don’t want to leave a wrong impression on the interviewer where you thought it was your confidence, but the interviewer took it as arrogance. Yes, it happens. Also, what if the interviewer doesn’t get what you explained. A hundred more things can go wrong in communication during an interview. So to avoid any risk, take some mock interviews and get an outsider’s perspective about your communication skills to build a strategy that works best for you.</li><li><strong>Mock interviews:</strong> This is the final piece of the puzzle. You will face a lot of pressure in the real interview, and it might result in you forgetting things, doubting your approach, bad communication, and panic. So for this, you can simulate that experience with mock interviews. These will also help you to examine your communication skills. And this way, you might encounter some fantastic ideas to improve your strategy for the interview. To keep note of your progress keep all the mock interview questions, solutions, and feedback in a single doc which you can refer to later for critical points.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*T-TpQLQClsvMjgs5ifZ_jA.jpeg" /></figure><p>But is it the end? No! We need to showcase our knowledge effortlessly in front of the interviewer and let them witness our understanding of the core concepts. This may seem to be a cakewalk for now but it tags along some of its own challenges. By carefully identifying these challenges, we can leave a great impression, not just in terms of knowledge but also in the communication we set forth. For this, I would like to suggest you to follow a definite strategy while solving a question during the interview. I will try to provide you a headstart in building your own strategy by sharing some glimpses of the strategy I follow in such interviews along with my understanding of their implications. As an exercise, try to analyze these steps with you slipping into the interviewer’s shoes and modify or add steps, whatever looks best to you. This is a very intuitive method of incepting an interviewer’s perspective in your mind. Hence, many coding platforms encourage peer-to-peer mock interviews. You can address what habits impress or distress an observer (i.e. an interviewer) in general. Finally, my step by step strategy for coding interviews unfolds as follows:</p><ul><li><strong>Validating question:</strong> Describe the question again in your own words to make sure that you are on the same page as the interviewer, and you got the question right. You don’t want to spend 10–20 minutes on the wrong question.</li><li><strong>Ask for an example:</strong> Another step to be sure that you understood the question correctly is to ask for an example for the question. Is it bad to trouble the interviewer for a test case? Definitely not! In fact, I feel it is a plus to show the interviewer that you make sure to not waste time in a different direction. Also, this example will help you later in the interview.</li><li><strong>Validating inputs:</strong> Before jumping to solving the problem, think about the edge cases for the question, and ask what input can you expect. At times expecting integer output might feel straightforward, but still, ask if it is okay to expect the output to be within the bounds of an integer. Ask whether the input array can be empty or not, and so on. This manifests your ability to avoid errors and handle exceptions.</li><li><strong>Start with brute force:</strong> You might get the optimal solution at once, but they came to see your thought process. Start with a general basic solution to show how you improve that. This will show them your thought process from scratch, highlighting how you keep on improving upon your solutions. In case you could not spot the most optimal solution instantly, this strategy of building upon the brute force solution hands you both time and direction for hitting the optimal solution.</li><li><strong>Keep on optimizing:</strong> From your previous non-optimal solution, now start to move towards a solution with a better time and space complexity ( yes, even space complexity matters! ). Don’t panic if you feel you are stuck, write some more examples, and try to see some connection between them. If you are still stuck then you will get some hints from the interviewer and try to use those to set yourself in the right direction. This is not a bad thing. It’s okay to have some assistance when you are a little lost.</li><li><strong>Give voice to your thoughts:</strong> The interviewer cannot read your mind and understand what trouble you are facing or what fantastic solution you are constructing. So, be transparent and tell them what you are thinking. It could be stupid too, but won’t it be impressive that you finally got an excellent solution at the end while you were stuck at something stupid at the start? This will also help the interviewer to give you some hints if you are going in the wrong direction.</li><li><strong>Hints are not bad:</strong> The interviewer gave you a hint, so you failed? Not true at all. You are not expected to be perfect and have the most optimized answer for every question directly. So, take it constructively and try to use it to get the job done. In real-world problems too, the solutions don’t come on the first try but what matters is how building on some small hints or inspiration you reached the final expected solution. Your interviewer anyways knows how much to disclose. He/she won’t hand you the solution directly, so, if after all the hints supplied, you scratched the right solution, it’s because of you!</li><li><strong>Explain in layman terms:</strong> You said that you will use a set as you code in C++, but the interviewer might not know it. This could be due to the interviewer not being familiar with C++. Although what stays constant are the underlying data structures with a fixed name. Different languages might have different implementations, so try also to mention the fundamental data structure behind the inbuilt structures you are using ( if needed ) or what benefits a given data structure incorporates in your preferred language. After you have pitched a clear algorithm for your solution, the interviewer will give you a go signal for your solution and ask you to code the solution.</li><li><strong>Coding:</strong> You cleared the part to get to the solution, and now finally, you have to code. The job is almost done! The interviewer will read the code, and they must understand what you are doing, and so the best coding practices should be followed. Start with writing a skeleton of the function for the question first and ask if it’s okay. This will help the interviewer visualize the starting problem statement in terms of the code. Keep the code clean with spaces and indentation making it simpler to read and understand the code. Have variable names that directly imply their use as tracking the meaning of x,y,n,m,r, and c mid-way might create confusion. Try to have a meaningful nomenclature. With such simple tricks, you significantly reduce the time taken by the interviewer to understand your code properly.</li><li><strong>Dry run on an example:</strong> Mention to the interviewer that you will dry run on some example, so to check it works correctly. This helps you explain to the interviewer how your code works. And also you can find some edge cases you missed or spot some mistakes you made in the code.</li><li>As a cherry on top mention the final time and space complexities below the code. ( it looks good )</li></ul><p>After all this, patiently wait to get an offer from the company!</p><p>I hope I covered all the major points and that you all find it somewhat helpful. Do mention if I missed something, and I will add it in the same post. Wishing you all the very best for the interview season!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bpwzqh0HIuEpcwTjOnXP0A.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7d866958e6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 8-month plan to get an internship in your dream company]]></title>
            <link>https://medium.com/@ish.ranga11/the-8-month-plan-to-get-an-internship-in-your-dream-company-8195e419726a?source=rss-171075138a09------2</link>
            <guid isPermaLink="false">https://medium.com/p/8195e419726a</guid>
            <category><![CDATA[competitive-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[internships]]></category>
            <dc:creator><![CDATA[Ishan]]></dc:creator>
            <pubDate>Wed, 18 Dec 2019 09:20:00 GMT</pubDate>
            <atom:updated>2019-12-18T09:20:00.413Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y9FXc6fdh1zSUjm7" /><figcaption>Photo by <a href="https://unsplash.com/@codestorm?utm_source=medium&amp;utm_medium=referral">Safar Safarov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hello all,</p><p>I am Ishan, a 4th year Undergraduate Student from the Department of <strong>Computer Science and Engineering</strong> enrolled in the Integrated Dual Degree course at <strong>IIT Kharagpur</strong>. This article is regarding the preparation of coding for the internship based on my journey. I got an internship offer from <strong>Google</strong> and <strong>Uber </strong>for the Summer of 2020 through the CDC internship drive ( of IIT Kharagpur ) and accepted the offer from <strong>Google</strong>.</p><p>I will begin by saying that it isn’t too late and probably the best time to start preparing even if it is from scratch. I too started in December’18 from scratch for college internship interviews in August’19, starting from C++ only, so I will cover most of the stuff from the start.</p><p>Let’s get started!</p><ul><li><strong>Getting started with C++</strong>: Well mainly you can always start with any tutorial or online course and practice on <a href="https://www.hackerrank.com/"><em>Hackerrank</em></a><em> </em>while looking at <a href="https://www.geeksforgeeks.org/c-plus-plus/"><em>geeksforgeeks</em></a><em> </em>side by side. The way I did it was by starting with ladders in <a href="https://a2oj.com/ladders"><em>A2OJ</em></a><em> </em>( &lt;1300 rating one ). There you will find very easy questions thus you get to learn small mistakes and some implementation of STL in C++. You can easily do something like 10–15 questions in a day here and also as the questions are easy enough it keeps you motivated. My complete December went by in getting familiar with C++ and believe me, it was worth it.</li><li><strong>Getting familiar with the basics </strong>— There are many simple logics, algorithms, data structures, implementations, etc. The major problem here is that you will be tempted to cover all too soon but you should try to take things a little slow initially and allow the new things to come in your way naturally. So basically while you are practicing questions then you will come across many new topics. There you should carefully understand the topic and then implement it, this approach will help you in the long run rather than just gobbling up all the algorithms at once which you will forget later.</li><li><strong>Getting familiar with advanced topics </strong>— The major algorithms can be found on <a href="https://cp-algorithms.com/"><em>cp-algorithms</em></a> and many more will come in your way as and when you are solving questions. Learn about the core of the algorithm or data structure used, try to think widely in a diverse way i.e. solving the same problem some other way if possible. Also, the best way to learn the algorithm is to implement it on a test case of your choice on a paper and then track what the algorithm is doing. Eventually, what matters is how well you understand the algorithm and hence how easily you can modify these algorithms according to the needs of the problem statement.</li></ul><p>Now you can do many problems but it still might not matter as maybe you were focused on doing more questions or just remembering the name of the algorithms rather than understanding them in depth. Also, how do you know if the way you did the question was the best? So here, I used to implement this strategy ( on Codeforces ):</p><ul><li><strong>Tags:</strong> These provide you some insight or give a direction to your thoughts on solving the problem. This also tells you about the various approaches to the same question which eventually widens your view.</li><li><strong>Tutorial:</strong> This is the exact idea of what was supposed to be done. If your idea was the same then kudos you are doing great!</li><li><strong>Fastest solutions:</strong> This can be checked in all submissions sorted by execution time. Here you can see what practices those elite coders used and what all small implementations or ideas made their code run faster.</li></ul><p>In my opinion, try to follow these steps. Even if you solved the problem, it might still give you a better idea.</p><p>One of the most important things which I will personally recommend is <strong>participating in contests</strong>. As you are excited and are provided with a limited amount of time, so you try to learn new algorithms and data structures faster too. This also improves your typing speed and thinking out of the box under stress. For contests, you can use <a href="https://clist.by/"><em>clist.by</em></a> to keep track of all the contests and can participate in contests hosted by <a href="https://codeforces.com/"><em>Codeforces</em></a>, <a href="https://www.codechef.com/"><em>Codechef</em></a>, <a href="https://www.topcoder.com/"><em>Topcoder</em></a>, and anyone else you like.</p><p>Some of the useful references:</p><ul><li><a href="https://codeforces.com/blog/entry/23054">A list for pretty much everything</a></li><li><a href="https://discuss.codechef.com/t/data-structures-and-algorithms/6599">Data Structures and Algorithms list</a></li><li><a href="https://codeforces.com/blog/entry/15729">Data structures blog</a></li></ul><p>So all of this is for Interviews and still, I haven’t mentioned <a href="https://www.interviewbit.com/courses/programming/"><strong><em>Interviewbit</em></strong></a>. It is mainly known for practicing for interviews. Personally, I advise to take it up in the summer vacations or basically 2–3 months before the interviews as there are topics starting from basics and implementations that you don’t use normally but only for questions asked in interviews. Now as these are not the normal questions you will end up forgetting them and revising again later. So instead I would suggest to practice normally and take up Interviewbit at the end and practice those topics more which you fear or you are weak in. If you were dedicated then it will take you max 50 days to complete all the questions which will leave you with good enough time to practice your weak topics. Another good list for that time is <a href="https://www.hackerearth.com/practice/codemonk/"><strong><em>Codemonk v2.0 by Hackerearth</em></strong></a>.</p><p>The major things to keep in mind are:</p><ul><li><strong>Focus on quality, not quantity.</strong> Rather than doing many questions in a day focus on doing a few but with absolute clarity. Similarly giving just 3–4 hours of focused attention is better than 8–10 hours of diverted attention.</li><li><strong>Keep the negativity aside.</strong> There will be days you might do just a single question in a contest or maybe some of your friends did a lot better, just don’t let that slow you down as what finally matters is you being better every day. This takes time but you will see the change in a few months only.</li><li><strong>Be consistent and determined. </strong>The only reason why you can still beat those coders practicing for 2–3 years will be because they have slowed down and not doing much now.</li></ul><p>One of the biggest advice is to have at least one good circle of determined people or maybe even just one friend. Here you must feel free to share your thought process or ask others their thought process in solving any problem. Encourage each other to be consistent and do more. Have exciting discussions about algorithms or contests. Below is a strategy my group opted to keep each other motivated by keeping track of progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BTUVxuv6ICD4DurIoSma0w.jpeg" /><figcaption>Keeping track of progress with two of my friends</figcaption></figure><p>Finally, I would like to propose an idea for all of you. Add your coder friends or any coder around you in Codeforces or any other platform. While in contests, keep track of how many questions they did and how much time they took. This will motivate you a lot and give you an idea about how much more you need to improve. It will also help you in getting faster monitoring of how much more time you took in solving the same problem. For Codechef, you can apply the institute filter.</p><p>Don’t be demotivated at any time initially as what you are aiming for is the result after a few months of hard work and believe me, it will all be worth it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8195e419726a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>