<?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 Satvik Ramaprasad on Medium]]></title>
        <description><![CDATA[Stories by Satvik Ramaprasad on Medium]]></description>
        <link>https://medium.com/@satviksr?source=rss-b115ae9f49e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*pOAoauVEpnfxgaM34jtISg.jpeg</url>
            <title>Stories by Satvik Ramaprasad on Medium</title>
            <link>https://medium.com/@satviksr?source=rss-b115ae9f49e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 10:24:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@satviksr/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[How to crack the coding interview?]]></title>
            <link>https://satviksr.medium.com/how-to-crack-the-coding-interview-04bc24e30e34?source=rss-b115ae9f49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/04bc24e30e34</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[faang]]></category>
            <dc:creator><![CDATA[Satvik Ramaprasad]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 10:07:17 GMT</pubDate>
            <atom:updated>2024-01-27T10:07:17.376Z</atom:updated>
            <content:encoded><![CDATA[<p>I have given quite a few interviews at companies like Google, Microsoft, De Shaw, Databricks, etc. I have also taken over 100 interviews. Having been on both sides of the interview process, I wanted to share some insights into the process and how can one optimize for success.</p><blockquote><em>Disclaimer: this article is intended for people experienced at leetcode style problem solving and are able to solve the problems itself effortlessly. If you would like tips on that, consider reading my other article — </em><a href="https://satviksr.medium.com/how-and-why-i-did-over-1000-leetcode-problems-b236a3f887c9"><em>How and why I did over 1000 leetcode problems</em></a><em>.</em></blockquote><p><strong>tldr;</strong> If I have to summarize everything into one line, then I would say interviewing is simply a game of time management</p><p>A typical interview is 45 minutes, if you save 5 minutes, that is 10% more time in the interview. This extra 10% is probably what you needed to make some code improvements to move the rating from no-hire to hire. So there is no time to waste.</p><p>We only change companies so many times in our career, I highly advise you to prepare over several months and give it your best shot.</p><h3><strong>Interview rubrics</strong></h3><p>This section is to understand the interview process from an interviewer’s perspective.</p><p>Generally, companies will have an overall rating system like Hire, Strong Hire, no Hire, etc. The hiring committee will pay significant weight to this rating for making their decision. Each company has its guidelines and policies and each interviewer will give relatively more importance to different things in the interview. However, fundamentally it comes down to a few things such as — how quickly the candidate understood the question, and were they were able to consider trade-offs and come up with an optimal solution, and most importantly, whether were they able to implement it with minimal mistakes in the given time. Let&#39;s go over this in detail now:</p><ol><li><strong>Problem-solving ability: </strong>This can be considered as the primary rubric of the interview. It essentially comes down to whether the candidate can come up with a solution to the given problem. Another way to look at this is the ability to think on your feet and adapt current solution to solve new problems.</li><li><strong>Data-structures and algorithms knowledge</strong>: As an interviewer, I give significant importance to this. If a candidate exhibits a deep understanding of certain data structures and can consider trade-offs then it&#39;s a significant plus point. On the other hand, if a candidate gives an impression that they are just throwing a data structure at the problem hoping it will stick, then it&#39;s a negative point.</li><li><strong>Communication: </strong>How clear is the candidate in their thoughts, are they able to articulate well, etc? Note that good communication doesn’t mean the candidate takes time to explain their solution but rather how concise and clear the explanation was. Other communication traits include how receptive the candidate is to hints and inputs.</li><li><strong>Coding: </strong>This is the second most important rubric, this is something the hiring committee can see for themselves. Good quality variable names, modular code, best practices, etc can go a long way here.</li></ol><p><strong>How do I know if I did well in an interview?</strong></p><p>One part is finding the optimal solution for the problem. Experienced candidates can intuitively tell if the solution is optimal or not. Discussing with friends after the interview helps here.</p><p>The second part is # of problems solved. Many candidates make the mistake of thinking oh I solved the problem, I did great. However very often that was just the warm-up, or it was one question but there was a follow-up to it.</p><p>Remember, there is always a follow-up or a bonus question. The only way to get a strong hire rating is to exceed the base expectations. I have had candidates who solve up to 3 follow-ups in an interview. If your interview ends early and you have solved 1–2 problems, then it&#39;s a clear sign you did well cause the interviewer ran out of questions.</p><p>As a general rule of thumb, if you solve more questions even with hints, that means you did well objectively, therefore, it&#39;s easier for the interviewer and the recruiter to defend your case.</p><h3>Interview Format</h3><p>A typical interview of 45 minutes can be split as follows:</p><ol><li><strong>Introduction (2 minutes): </strong>This is an ice breaker, it actually adds no value to the interview, I would strongly recommend preparing something basic for this and just speaking it out. The interviewer isn’t listening or noting down what you say, it has no bearing on the result of your interview. Wasting time here is the worst thing you could do.</li><li><strong>Actual interview (40 minutes): </strong>This is the main interview, in 40 minutes, the interviewer will need to present and explain the question. Then you will need to understand it, go through test cases, come up with a base algorithm, explain it, optimize the algorithm, explain and dry run it on the test cases, and finally write code and test it. And this is for just one problem, if there are 1–2 follow-ups, then you will need to do all this for them as well.</li><li><strong>Questions regarding the company (3 minutes): </strong>This is the chance where you can ask questions about the company. The questions can be general like how is the culture, benefits, and perks or it can be specific like what is the Bangalore team working on or what teams are in Bangalore. My favorite question is asking — What is one thing you like about this company and one thing you don’t like? I have found that people have been quite transparent when asked like this. Needless to say, this is a chance for you to get some information as to whether the company is a right fit for you and this has no bearing on the result of the interview.</li></ol><h3><strong>Interview Tips</strong></h3><p><strong>Tip 1: Guiding Principle: Optimize for time<br></strong>Everyone can achieve more with more time, however, of course, you have only 40 minutes and therefore you need to optimize wherever possible. You as the candidate hold most of the control over the pace, you decide how fast you want to explain/code/test. The remaining tips here are all ways to achieve this.</p><p><strong>Tip 2: Reading the question carefully and then go through examples thoroughly<br></strong>This is one place, where you should <strong>take </strong>your time as if this goes wrong, everything goes wrong. Very often I think I have understood the question but I actually wouldn’t have. An efficient way to make sure is to go through the examples. This not only helps in verifying your understanding but examples can often hint at the approach to solve the problem as well.</p><p><strong>Tip 3: Think out aloud <br></strong>It&#39;s very important to think aloud in the interview, the interviewer will know what&#39;s happening and be engaged. Moreover, they can hint and guide you to the right solution. Thinking out aloud is unnatural, we generally think better in silence, therefore make sure to practice this. While implementing the solution, it is not that important to think aloud though still preferred because the interviewer can see what you are writing down, so they already have a pretty good idea. However, it can still be helpful when you define some structure to explain why — like “Okay this map stores mapping from user_id to score, and this second map stores an ordered map from the score to a set of user_ids because I want to be able to do XYZ”</p><p><strong>Tip 4: Approaching the problem and exploring the solution space<br></strong>What generally works for me is that I immediately say the naive solution. But it&#39;s important to be clear this is a naive solution so that you don’t waste a lot of time on this and the interviewer doesn’t think that you think that this is optimal. I usually say something like this “Oh, my immediate naive approach would be something like run 2 nested loops, consider all sub-arrays, and compute the answer brute force, so this would be an O(N²) algorithm”. This helps me reduce nerves as I have already said some solution in the interview and the interviewer has accepted it. Now we just need to optimize. This also acts as a second sanity check that you have understood the question. After this, you can be like “Okay the second loop is doing repeated work, maybe we can use dynamic programming to maintain X state and reduce it to one loop”. Then do a quick dry run with an example, we will cover this part more in detail later. Once the interviewer is satisfied, jump to the solution.</p><p>Feel free to say hand-wavy solutions like “Oh, if we use a heap, we can achieve this in O(logN) time but I would like to go with the binary search”. This indicates that you can consider multiple approaches in parallel and able to choose the optimal one. The interviewer also wants to be fast, so they will only cross-question you if they believe you don’t know what you are talking about or if you say something incorrectly.</p><p><strong>Tip 5: Assume the interviewer knows everything<br></strong>The interviewer is experienced at this question and knows (nearly) all the possible solutions. This is obvious but it is shocking how few candidates take advantage of this.</p><ol><li>Don’t waste time explaining trivial things — When in doubt, explain briefly and ask does it makes sense to reassure yourself. But for the most part, you can assume the interviewer is following you.</li><li>When you are confused with an approach, it can be quite daunting. Often we face situations like this is either a complex graph problem or a complex DP problem but I am not sure. You might start with a graph approach but now you aren’t sure and you want to switch to DP. Here, you can ask the interviewer, do you think it makes sense to consider graphs, or should I move to something else like DP? They will usually not give a definite answer but their reaction is all you need to know what to do.</li><li>Feel free to drop minor facts and pieces of information when you feel like without much detail. Facts such as Oh this is O(N) because of the way it&#39;s implemented in Python. This shows that you are aware of this. If the interviewer wants more details they will ask.</li><li>However, if you are using some very complex approach that is not common knowledge, then it&#39;s probably better to not assume the interviewer knows this. Some examples could be things like coordinate compression, BIT, Segment tree, or complex graph algorithms. But as a warning, it is going to be very rare that this sort of complex DS is the intended solution and there should be an easier way.</li></ol><p><strong>Tip 6: The interviewer is your friend<br></strong>Believe it or not, the interviewer wants to see the best in you. Even when you say or do something wrong, they will want to give you a second chance and ask a clarifying question. What this means is that when the interviewer says something,<strong> PAY ATTENTION! </strong>It is shocking how many people dismiss the interviewer and go on. It not only irritates the interviewer but also means you missed something important. Moreover, this reflects poorly on your collaboration and cultural values.</p><p>Therefore, if you say something like oh this is O(N) and the interviewer asks a question like are you sure? if you have an answer, go ahead and explain it and ask them if it makes sense. Be ready to accept that you are wrong. Also, be ready to say I feel this intuitively but I am not sure as I didn’t consider everything.</p><p>And if the interviewer gives a hint, be sure to follow it up. Hints are only given if the interviewer believes your current approach doesn’t lead to a solution or we are running out of time. While it might be shocking many candidates don’t consider the interviewer’s inputs and hints seriously.</p><p><strong>Tip 7: Familiarize yourself with the coding environment<br></strong>Companies use different platforms for their interviews — codepair, coderpad, etc. Each tool has different nuances and it&#39;s a good idea to be familiar with them before the interview. Google for example used google docs for a very long time and that is a horrible environment to write code. However, I was able to heavily customize it by tweaking several settings and found that it was acceptable for me.</p><p><strong>Tip 8: Practice explaining algorithms in the collaborative environment<br></strong>This is something that is significantly overlooked by candidates including me during their preparation.</p><p>One trick is to use the highlight functionality in collaborative environments. This can show the interviewer what number you are looking at, how you are traversing the list etc.</p><p>The second is to work on maintaining the state well. This is very problem specific of course but practice can help. Keep it as less verbose as possible, no need to have all the details, not all variables need to be defined, just the main ones. No need to worry a lot about semantics like types, syntax, etc. Optimize for clarity and speed. Trees and graphs in particular are hard to handle.</p><pre>// Key value map<br>key_value_mp = {a: 1, b: 2}<br><br>// List<br>l2 = [a, b]<br><br>// Matrix<br>grid = [<br>A B C D<br>E F G H<br>]<br><br></pre><p><strong>Tip 9: Practice writing code fast<br></strong>This is a lot of practice and just keep in mind that we should optimize for speed. Don’t compromise on variable names or code structure. If long variable names are necessary, then use them. However, use copy-paste or autocomplete features to be fast. Another way to be fast is to use all the language features, for example</p><pre>// Slow<br>unordered_map&lt;int, int&gt; mp;<br>mp[1] = 2<br>mp[3] = 4<br>vector&lt;vector&lt;int&gt;&gt; ans;<br><br>for (pair&lt;int, int&gt; p: mp) {<br>  if (p.first &gt; 1 &amp;&amp; p.second &lt; 2) {<br>    // some logic<br>    vector&lt;int&gt; temp = {p.first, p.second};<br>    ans.push_back(temp);<br>  }<br>}<br><br>// Fast<br>unordered_map&lt;int, int&gt; mp = {{1, 2}, {3, 4}};<br>vector&lt;vector&lt;int&gt;&gt; ans;<br><br>for (auto [k, v]: mp) {<br>  if (k &gt; 1 &amp;&amp; v &lt; 2) {<br>    // some logic<br>    ans.push_back({k, v});<br>  }<br>}</pre><p>Of course, elegant solutions require less code, this is something you can achieve by reading others&#39; solutions and practicing.</p><p><strong>Tip 10: Develop fast debugging/testing skills <br></strong>Debugging involves adding log statements at appropriate places and using the information to quickly gauge the rough location of the issue and then finding the issue.</p><p>Testing is about how quickly can you write multiple test cases and execute and verify your solution. For example,</p><pre>// Typical input/output tests <br>vector&lt;vector&lt;int&gt;&gt; inputs = {<br>  {1, 2, 3},<br>  {3, 4, 6},<br>};<br><br>vector&lt;int&gt; expected_outputs = {4, 5};<br><br>for (int i = 0; i &lt; inputs.size(); i++) {<br>  int output = foo(inputs[i]);<br>  cout &lt;&lt;&quot;Test &quot; &lt;&lt; i &lt;&lt; &quot; Input: &quot;<br>  for(int a: inputs[i]) cout &lt;&lt; a &lt;&lt;&quot; &quot;;<br>  cout &lt;&lt; endl;<br>  if (output != expected_outputs[i]) {<br>    cout &lt;&lt; &quot;Expected &quot; &lt;&lt; expected_outputs[i] &lt;&lt; &quot; got &quot; &lt;&lt; output &lt;&lt; endl;<br>  }<br>}<br><br>cout &lt;&lt; &quot;Tests ended&quot; &lt;&lt; endl;<br><br>// System test<br><br>// test 0<br>{<br>  Sys sys(10, 2);<br>  sys.insert(1);<br>  sys.insert(2);<br>  cout &lt;&lt; sys.compute() &lt;&lt; endl;<br>}<br><br>// test 1<br>{<br>  Sys sys(10, 2);<br>  sys.insert(1);<br>  sys.insert(2);<br>  cout &lt;&lt; sys.compute() &lt;&lt; endl;<br>}</pre><p>In the above example, for the first type with a typical input/output type problem, it&#39;s a good idea to be able to write a basic unit test. Of course, I have written a pretty extensive one, It can simply start with one test and then evolve to this if the interviewer insists on testing several test cases.</p><p>In the second example, if it is a system problem where it is not easy to model it as an input/output problem, in that case, it is a good idea to scope it using {} and copy-paste code. This way you can reuse variable names and avoid mistakes such as mixing state.</p><p><strong>Tip 11: Write the best code possible<br></strong>Leave all the competitive style programming to codeforces. Here you should aim to write production-grade code.</p><ol><li>Good naming conventions</li><li>Use language best practices</li><li>Modular, clean code</li><li>Never have global variables or global state → use classes when required</li></ol><p>Of course, also don’t compromise on time. It is often a good idea to implement what is easy first and then improve it after completion. The end code should be clean and this is something the hiring committee takes seriously.</p><h3>Conclusion</h3><p>In conclusion, while balancing several things, time is of the essence and a precious resource in the interview. All the tips shared here are intended to be guidelines and you will need to improvise in the interview. Moreover, there is no shortcut for practice, take several mock interviews before the real one. During college, I have taken easily over 50 mock interviews from at least 10 people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04bc24e30e34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How and why I did over 1000 Leetcode problems]]></title>
            <link>https://satviksr.medium.com/how-and-why-i-did-over-1000-leetcode-problems-b236a3f887c9?source=rss-b115ae9f49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b236a3f887c9</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[leetcode]]></category>
            <dc:creator><![CDATA[Satvik Ramaprasad]]></dc:creator>
            <pubDate>Sat, 05 Jun 2021 20:23:56 GMT</pubDate>
            <atom:updated>2021-06-15T06:38:07.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*ly-10RoSyG49FIgC" /></figure><p>Last year, I solved around 1200 leetcode problems, most of InterviewBit and some GeeksForGeeks as part of interview/placement preparation. I have also interviewed with a handful of companies and I want to share some things that I have learnt from the experience.</p><blockquote>Disclaimer: This is a highly opinionated post of my experience and what worked for me. Because everyone learns differently, my methods may not work for you.</blockquote><p>If you are in a hurry, you can skip to the 3rd section.</p><h3>The Awakening</h3><p>When we were preparing for JEE, parents and teachers gave the impression that after we get into a good college we are set for life and like most people I believed that. Therefore I spent my first 3 years of college getting good grades, doing fun projects, exploring stuff etc. However, at the end of 3rd year, I had a rude awakening. I hadn’t paid much attention to placements and companies till then. I got to know that most companies don’t care much about what we did in college. Our grades, projects, knowledge doesn’t matter much to them. Largely, they want us to be able to code and have problem-solving ability. Only 3 courses — DSA, Operating Systems and Databases matter. In fact, FAANG companies mainly only asked DSA problems in their interviews and have almost complete disregard for whatever else is present in the resume.</p><p>The fact that companies seem to focus on problem-solving can be a good or bad thing depending on perspective. From a positive perspective, anyone can work hard and get better at problem-solving. Yes, you read that, it isn’t as hard as it looks.</p><p>So I got to know one more thing, something like 50% of all problems asked in an interview is directly available in leetcode. Around 30% of the problems are very similar or modifications of questions found on leetcode. Only like 20% of questions are actually new. And with enough preparation, you can solve them as well. These numbers are from my personal and peer’s experiences.</p><p>That is why I decided to buckle up and embark on my journey to solve complete leetcode.</p><h3>Why do companies focus on problem-solving?</h3><p>I think it is important to understand why companies do their interviews the way they do them. So, the fact is that the big tech companies need to hire a lot of candidates. They also interview and hire globally. Their candidates and interviewers have very varied experience and knowledge. Therefore there is a need for a standardized interview process. The best that the industry has found is testing for coding skills and problem-solving ability. They believe that if the new hires are able to solve problems, they can learn and do anything.</p><p>In my opinion, smaller and mid-sized companies should hire differently. However, most of them seem to be copying their big counterparts.</p><h3>How did I get started?</h3><p>I had a headstart, I knew C++ fairly well and I was strong with DSA concepts because my college course was very good. However, I didn’t have STL knowledge (C++ Standard Template Library) and I wasn’t familiar with interview-style questions. I recommend solving problems only after being familiar with a programming language and learning the basic DSA concepts.</p><p>I started solving with Python and then shifted to C++. If you haven’t picked a language yet, I recommend C++ or Python. I don’t recommend Java due to the verbose nature of the language. Fix a language and code only in that language.</p><p>That&#39;s it, I just started solving leetcode problems. I started solving the easy problems first. They teach STL skills and give confidence. They also teach some simple tricks which can be combined to solve medium and harder problems.</p><p>I spent like 8 hours a day on leetcode. It went slow for a few days but soon I was able to solve with an average throughput of 10 problems a day. On some good days, I even solved 30 problems. How was this possible? I followed some principles which might help you do the same.</p><h3>Principle 1: Solve every problem</h3><p>There are so many easy leetcode problems that anyone can solve. Do NOT skip over them. Solve them as fast as you can and move forward. And by solving, I mean actually writing the code and getting all test cases passed.</p><h3>Principle 2: Read Solution + Discussion</h3><p>Wrote code on your own and got all test cases passed? Congrats! However, that is not the end, it is very important to read the solution and discussions. More often than not there will be more than one approach to solve the problem. It is important to understand all the approaches.</p><p>Leetcode discussion community is very good. Sort by most voted and pick any of the top few answers. Make sure you check out their code as well. The top coders write code very elegantly. There is a lot to learn from them even if you get the solution. Also reading the explanation will give you ideas on how to explain in the interview.</p><h3><strong>Principle 3: Do not spend more than 5–10 minutes thinking</strong></h3><p>This might be a controversial opinion. According to me, you will only have a maximum of 10 minutes in an online test to think of a solution and less than 20 minutes to implement it. In an interview, you will have even less time as you will need to explain your approach, code and dry run etc. So if in the actual test you have less time, you should prepare accordingly.</p><p>What I did was this, after 5 minutes, I give up and check the solution. If I don’t understand the solution, I bookmark it as red and leave it. If I understand the solution, I bookmark it as yellow.</p><p>After a week or two, I come back and solve the yellow ones. This time I try to recollect the solution and solve it myself. If I fail, then I read the solution again and come back later. Most of the times I succeeded to recollect the solution. This is extremely effective because it will feel like I got the solution myself and I would feel confident I can solve similar questions now.</p><p>Some advantages of this principle are:</p><ol><li>You didn&#39;t spend too much time “thinking”</li><li>You understood the solution fast, it feels like progress</li><li>If you recollect and implement it later, the concept will be ingrained in the mind</li><li>Throughput — number of problems solved / day will be high</li><li>Overall morale will be good because you are not spending time stuck</li></ol><h3>Principle 4: Solve problems of the same topic together</h3><p>There are 2 approaches to solving problems. I practised both.</p><h4><strong>Mix different topics and solve them</strong></h4><p>This has the advantage of not getting bored. Moreover, an important part of problem-solving is identifying the topic.</p><h4>Solve problems of the same topic together</h4><p>This can get boring but has some advantages from the learning perspective.</p><ol><li>High throughput — e.g. if you have already solved a binary search problem, you can solve similar binary search problems fast.</li><li>Pattern recognition — e.g. you will be able to recognize the different types of DP problems.</li><li>Confidence and Morale — even if you take help for the first type of problem, you are able to solve the next type of problem quickly.</li></ol><p>Leetcode suggests similar problems after successfully solving a problem. I have found these suggestions to be very accurate and helpful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OijrOmeTxWbGXOD79NBdow.png" /><figcaption>Leetcode Similar Problems</figcaption></figure><h3>Principle 5: Practice, Practice, Practice!</h3><p>There is no shortcut, I practised a lot. I regularly solved some important problems I have already solved just to make sure they are at my fingertips.</p><h4>How many problems should I target?</h4><p>In my experience after solving 300–500 problems, you should be able to clear interviews in very good companies. If you solve 1000+ problems, you can clear any company!</p><p>Leetcode has a difficulty ratio of 1:2:1 for easy, medium and hard problems. I find the hard problems quite hard. They are rarely asked in an interview, so it is okay to skip them and just solve the popular hard questions. I solved the problems in the ratio of 2:4:1.</p><p>Don’t worry too much about what problems you solve but make sure you do solve a good number of medium problems because they are the ones that are regularly asked in an interview.</p><h4>Leetcode Contests</h4><p>After getting confidence in solving problems, I started doing leetcode contests. This is important because you will have pressure and time constraint in a coding round. So leetcode contests can help simulate that.</p><h3>Bonus Giveaway</h3><p>I wanted to give back to the community, so I made 2 things that can help prepare better.</p><h4><strong>Leetcode Preparation Sheet</strong></h4><p>This sheet can help you prepare more effectively. It sorts the question based on the popularity and quality of the question. Check the READ ME sheet to understand how to use the sheet. This was prepared by my junior <a href="https://medium.com/u/a1a7ac372df4">Saiakash Konidena</a> with my guidance.</p><p>Link: <a href="https://docs.google.com/spreadsheets/d/1KfZq_onP06UDqizkLOjraOfw2qIODDqMyd-3knUu3hA/edit#gid=196839908">Leetcode Preparation Sheet</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEJ0JAYLK2heNfNouK-dDQ.png" /><figcaption>Leetcode Preparation Google Sheet</figcaption></figure><h4>Interview Bit Chrome Extension</h4><p>InterviewBit has an excellent list of curated problems. I highly recommend solving them especially if you have less time. However, they have a very poor question and solution description. Even their user interface is subpar. Therefore I built an extension that maps interview bit questions to leetcode ones.</p><p>Link: <a href="https://chrome.google.com/webstore/detail/interviewbit/healhengajmbpahbgiokccdoemnnlaak">Chrome Webstore</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYRfJ1jxKNA6ac6VfNUi-Q.png" /><figcaption>Leetcode Links in InterviewBit site</figcaption></figure><h3>Conclusion</h3><p>That&#39;s it! This journey was a rollercoaster ride and it took over a year to complete. However, it is completely worth it. Problem-solving rounds are present even for higher positions and therefore this skill will help in the long run.</p><p>These were some of the principles that I developed while I was preparing for coding rounds. I am planning to write a blog post on how to prepare for an interview and some important tips. Stay tuned!</p><p>If you would like to do a mock interview with me, register for one at <a href="https://proxyprep.tech/">https://proxyprep.tech/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b236a3f887c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automatically publish documentation of your code using Github Actions and Doxygen]]></title>
            <link>https://satviksr.medium.com/automatically-publish-documentation-of-your-code-using-github-actions-and-doxygen-e9aaa75f6347?source=rss-b115ae9f49e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9aaa75f6347</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[doxygen]]></category>
            <dc:creator><![CDATA[Satvik Ramaprasad]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 09:06:43 GMT</pubDate>
            <atom:updated>2020-04-11T09:16:08.572Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yqa_gg2pXd5rzXld" /></figure><p>Good documentation is essential for any project. This post will help you get started in setting up your documentation within minutes. If you already have doxygen configured, jump to Setting up automatic deployment section.</p><p>I picked <a href="http://www.doxygen.nl/index.html">Doxygen</a> as it is cross platform and supports all major languages. It is pretty easy to use and works out of the box.</p><p>All code can be found in this <a href="https://github.com/satu0king/Github-Documentation-With-Doxygen">repository</a>.</p><h3>1. Installation of Doxygen</h3><p>The following commands can be used to install Doxygen. More details can be found <a href="http://www.doxygen.nl/manual/install.html">here</a>.</p><p><em>Installation on MacOS</em></p><pre>brew install <strong>doxygen</strong></pre><p><em>Installation on Ubuntu</em></p><pre>sudo apt-get <strong>install</strong> -y <strong>doxygen</strong></pre><h3>2. Setting up Doxygen Configuration</h3><p>Create the default configuration file using the following command</p><pre>doxygen -g</pre><h3>3. Configure Doxyfile</h3><ul><li>Set RECURSIVE to YES</li><li>Set EXCLUDE and EXCLUDE_PATTERNS to exclude directories you don’t want documented. Typically library code and plugins come here.</li><li>Set PROJECT_NAME to the name of your project</li></ul><p>Thats it for now!</p><h3>4. Document your Code</h3><p>Document your code according the Doxygen guidelines. To get started, checkout the examples in the <a href="https://github.com/satu0king/Github-Documentation-With-Doxygen">src</a> directory in this repo. It is important to document your code in a detailed manner using the annotations supported by Doxygen.</p><h3>5. Test your documentation locally</h3><p>Run doxygen to generate documentation to see output documentation locally</p><ul><li>By default, web documentation and pdf documentation files are generated in html and latex directories respectively.</li><li>View the web documentation at html/index.html</li><li>Compile pdf documentation by running make in thelatex directory</li></ul><h3>6. Setup automatic publishing of documentation</h3><p>This is the fun part! You can automatically deploy your documentation using github actions. Every commit to master will trigger the action and the documentation will get updated. Download main.yml file from this <a href="https://github.com/satu0king/Github-Documentation-With-Doxygen">repository</a>.</p><ul><li>Copy the action file main.yml to .github/workflows/main.yml in your repository</li><li>Commit and Push to github</li><li>Github action should automatically start running</li><li>Confirm that github is set to deploy gh-pages branch in settings page</li></ul><p>Thats it! your documentation should automatically be deployed and can be accessed from http://&lt;your-github-username&gt;.github.io/&lt;your-repo-name&gt;/index.html</p><p>Let me know what you think of this approach in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9aaa75f6347" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>