<?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 junaid khan on Medium]]></title>
        <description><![CDATA[Stories by junaid khan on Medium]]></description>
        <link>https://medium.com/@mdjunaidkhan1206?source=rss-10942503b21b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by junaid khan on Medium</title>
            <link>https://medium.com/@mdjunaidkhan1206?source=rss-10942503b21b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:18:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mdjunaidkhan1206/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://mdjunaidkhan1206.medium.com/how-to-crack-the-coding-interview-a4d0c2b8cd1b?source=rss-10942503b21b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4d0c2b8cd1b</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[spacetime]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[junaid khan]]></dc:creator>
            <pubDate>Wed, 28 Oct 2020 12:17:07 GMT</pubDate>
            <atom:updated>2020-10-29T13:03:03.369Z</atom:updated>
            <content:encoded><![CDATA[<h4>Summary of the book cracking the coding interview by Gayle Laakmann.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dgstRtJrvJ5wN3k5" /><figcaption>Photo by <a href="https://unsplash.com/@sctgrhm?utm_source=medium&amp;utm_medium=referral">Scott Graham</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Many people apply for jobs and internships and only a few get selected, Why do you think only 5% of people get selected and 95% are rejected ,were they less intelligent?, Were they less qualified? Let’s find out how we can be among the 5%.Here are some things to focus on.</p><h3>Communication skills</h3><ul><li>Many people do not focus on improving their communication skills as they think that this is not as important as other aspects of the interview such as knowledge of Data structures and algorithms, Database management system and coding.</li><li>Let me tell you why communication skills play a vital role in your interview .let us say that you are good at coding and your friend Sam is not so good at coding, but is an excellent communicator.</li><li>when both of you are asked a coding problem in the interview, you being good at coding are able to solve the problem with better space-time complexity than Sam. But when the interviewer asks to explain your code, you are not able to explain the code as effectively as Sam. This can increase Sam’s chance of succeeding more spite you being the better coder.</li></ul><h3>7 Steps to solve Algorithm problems</h3><ol><li>Listen: every small detail is necessary to solve the problem, either to solve it all or to solve it optimally . If you have not used some detail available in the question so far, think how you can put that to use because it might be necessary to solve the problem optimally.</li><li>Example: one of the easiest ways of increasing your performance on algorithmic question is just make your examples larger and really avoid special cases</li><li>Brute force: it is not necessary to come up with a optimized solution in the first go. Start off with a algorithm even if it has high runtime, state the runtime and start improving on the algorithm.</li><li>Optimize: spend some good time optimizing the code and the algorithm .</li><li>Walk through your algorithm :take a step back and understand your code and know exactly what you are doing. This ,you will have a better understanding of the code and will be able to code better going forward.</li><li>Code: while writing on the white board be sure to follow these tips. Try to write your lines straight. Use board space wisely, If you don’t need stuff, just erase it. Coding style matters even on computer, make sure you have things such as braces, naming conventions, etc. Write good descriptive variable names.</li><li>Test: go through each line, double check things that look weird/risky .Then when you start with actual test cases start with small cases rather than big ones because they are much faster to run and as they are faster you are more likely to find bugs with small test cases rather than with big ones. Make sure while you are testing you are thinking what you are doing.</li></ol><h3>Algorithmic strategies</h3><ol><li>B.U.D : it stands for bottlenecks, unnecessary work and duplicated work. let’s start with bottlenecks, When given a problem, try to solve it and identify the bottleneck and solve it. The next one is unnecessary work. Try to change the smaller stuff which might not be able to change Big O, But will still lead to steps that improve the performance.</li><li>Space/Time tradeoffs : often this means using a different data structures to optimize space time complexities , Keep hash tables on top of your mind while trying different data structures.</li><li>Do it yourself: try to take a big example and try to solve it yourself using your brain. The way that your brain intuitively finds the right output is often a pretty good algorithm .Then try to reverse engineer the process that your brain used in solving the problem.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4d0c2b8cd1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>