<?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 Kushal S on Medium]]></title>
        <description><![CDATA[Stories by Kushal S on Medium]]></description>
        <link>https://medium.com/@kushrike?source=rss-5d4487387235------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7Bxz3E7herQGdkER</url>
            <title>Stories by Kushal S on Medium</title>
            <link>https://medium.com/@kushrike?source=rss-5d4487387235------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:42:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kushrike/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[DE Shaw Intern Interview Experience 2020]]></title>
            <link>https://kushrike.medium.com/de-shaw-intern-interview-experience-2020-9303d8187410?source=rss-5d4487387235------2</link>
            <guid isPermaLink="false">https://medium.com/p/9303d8187410</guid>
            <category><![CDATA[de-shaw]]></category>
            <category><![CDATA[2020]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[intern]]></category>
            <dc:creator><![CDATA[Kushal S]]></dc:creator>
            <pubDate>Sun, 06 Sep 2020 11:05:25 GMT</pubDate>
            <atom:updated>2021-12-08T08:35:52.315Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I will be sharing my interview experience with DE Shaw, starting from the Coding/Apti round until my final selection. This was an onCampus visit of DE Shaw in BIT Mesra on 1st Septemeber, 2020.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/0*eLQfYy7Q6UL2TTaH.png" /></figure><p>DE Shaw came to our campus offering the role of Software <em>Engineering Intern</em>. Lets first talk about the eligibility criteria for applying for the position.</p><p><strong>MIN CGPA :<em> 7.0</em></strong></p><p><strong>Class XII : <em>70%</em></strong></p><p><strong>Class X : <em>70%</em></strong></p><p>It was the first company to offer an internship that came to our campus, so a huge crowd of about <em>160+</em> candidates appeared for the first round.</p><h3>ONLINE CODING + APTI ROUND :</h3><p>It took place on Hackerrank on 31st August 2020. The challenges were divided into three categories.</p><p><strong>1. Aptitude Section (14 MCQs, 28 minutes): (Difficulty: Easy)</strong></p><ul><li><strong>Quantitative</strong>. Examples: Probability, Permutation &amp; Combination, Profit &amp; Loss, speed-distance-time, etc. </li><li><strong>Logical reasoning and data interpretation</strong>. There were 2 passages with a couple of questions based on each.</li></ul><p><strong>2. Technical Section (12 MCQs, 17 minutes): (Difficulty: Easy-Medium)</strong></p><ul><li><strong>Academic subjects based</strong>. Examples: Data structure and algorithms, SQL, etc.</li><li><strong>Guess the output of given pseudo code/algorithms. </strong></li><li><strong>Debugging</strong>. A pseudo-code and expected output was given. We had to find and fix the bugs to achieve the given output.</li></ul><p><strong><em>The marking scheme for MCQs were +3 for the correct answer and -1 for incorrect.</em></strong></p><p><strong>3. Coding Section (2 questions, 50 minutes):</strong></p><ul><li>The first question was allotted 20 minutes. <em>It was an adhoc question involving the calculation of GCD of three numbers and a little bit of calculation.</em> <strong>(Difficulty: Easy)</strong></li><li>The other question was allotted 30 minutes. <em>It was a graph-based question requiring to count the size of all connected components in an undirected graph and perform some simple mathematical operations on the result.</em><strong>(Difficulty: Easy-Medium)</strong></li></ul><h4>16 people were shortlisted after this round to appear for the interviews.</h4><h3>Technical Interview Round 1 :</h3><p>It was a codepair round. I was interviewed by a panel of two. The interviewers asked me a bit about myself and then jumped into the questions.</p><p><strong>Q1. Stock Span problem: <em>Given an array of integers denoting the price of a particular stock on a particular day. Calculate the span of the stock’s price on all the days, viz the number of continuous days preceding the current day on which the price of the stock was less than the price on the current day.</em></strong></p><p>You can know more about it from <a href="https://www.geeksforgeeks.org/the-stock-span-problem/">this GeeksforGeeks article</a>.</p><p>Time Complexity: O(N)<br>Space Complexity: O(N)</p><p><strong><em>Q2. Given an array of integers. Concatenate the numbers in such a manner that the resulting number is the largest possible.For Example,</em></strong><strong><em>[98, 9, 987] should return </em></strong><strong><em>998987 as a string.</em></strong></p><p>I used the C++ sort function with the following custom comparator to solve this problem.</p><pre>bool compare(int a, int b) {</pre><pre>string str_a = to_string(a);<br>string str_b = to_string(b);</pre><pre>return (str_a + str_b) &gt; (str_b + str_a);<br>}</pre><p>Time Complexity : O(nLogn)<br>Space Complexity : O(1)</p><p><strong><em>Q3. </em>A variation of Trapping Rainwater problem<em>. Given n non-negative integers, each representing the height of a pillar of negligible thickness. Find and return the indices of the pillars that would trap the maximum rainwater in case of an infinite amount of rainfall.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*B7b0mXtyaSfY8gsv.jpg" /><figcaption>For input [1,8,6,2,5,4,8,3,7] (Image src : Leetcode)</figcaption></figure><p>I solved the problem using a greedy/two-pointer approach.</p><p>Maintain left and right pointers pointing to the start and end of the array initially. The amount of water trapped between them is min(arr[left], arr[right]) * (right — left) Now, move the pointer denoting the height of the smaller pillar towards the other, calculating the amount of rainwater and updating the answer indices when required.</p><p>Time Complexity: O(N)<br>Space Complexity: O(1)</p><h4>7 candidates moved on to the Second Technical round.</h4><h3>Technical Interview Round 2 :</h3><p>There was a panel of three interviewers this time. They asked me about my previous interview and started with the questions soon after.</p><p><strong><em>Q1. Given an array of characters containing multiple NULL(‘\0’) characters in the end. We needed to find the effective length of the string represented by the array. For example : </em></strong><strong><em>[&#39;L&#39;, &#39;A&#39;, &#39;P&#39;, &#39;T&#39;, &#39;O&#39;, &#39;P&#39;, &#39;\0&#39;, &#39;\0&#39;, &#39;\0&#39;, &#39;\0&#39;] should return 6.</em></strong></p><p>I used a binary search-based approach to solve the problem in Log(n) time complexity and O(1) extra space. I had to code it out, and run it on a set of test cases.</p><p><strong><em>Q2. Given an array denoting the indices of occupied parking spaces. We need to find the minimum length of the roof required to cover exactly ‘k’ cars.</em></strong></p><p>Since the values were scrambled, I sorted the array first. Two Pointer/Sliding Window approach followed, to include the vehicles in the current roof cover until the number is less than <em>‘k’. </em>Then start excluding the cars from the left end one by one and expand the right end accordingly. <br>Time Complexity : O(nLogn) for sorting<br>Space Complexity: O(1)</p><p><strong><em>Q3. The interviewers asked me to take a minute to observe the codepair’s chat window and design the same. They seemed to be interested in the interfaces I would use, and how would I establish a connection between them.</em></strong></p><p>I observed the elements closely, and put down each one of them as a separate point. I wrote the structure in the Plain Text section in Codepair. My pseudo-code implementation involved Java keywords, as I had some basic idea of implementing design patterns in Java. <br>I separated the components into three categories,</p><ul><li>Frontend/UI</li><li>Backend server involving Request/Response mechanism including Sockets for RealTime data transmission across all connected clients.</li><li>The business Logic section including loading of chats, implementing the text-box logic along with some other details.</li></ul><p><strong><em>Q4. This was a puzzle: There are 25 horses on a racetrack, and we need to find the fastest 5 horses. What will be the minimum number of races required such that only 5 horses can race simultaneously and we can only know the relative positions of horses in the races?</em></strong></p><p><strong><em>Q5. Difference between Definition and Declaration of variables and functions.</em></strong></p><p>Refer <a href="https://www.geeksforgeeks.org/difference-between-definition-and-declaration/#:~:text=i.e.%2C%20declaration%20gives%20details%20about,the%20definition%20of%20the%20variable.">this article</a> for the answer.</p><p><strong><em>Q6. What happens when we enter a URL in address bar of a browser?</em></strong></p><p>I had mentioned Computer Networking in my Resume.<br>Refer <a href="https://medium.com/@maneesha.wijesinghe1/what-happens-when-you-type-an-url-in-the-browser-and-press-enter-bb0aa2449c1a">this article</a> for the detailed answer I gave them.</p><p><strong><em>Q7. It was a 15–20 minutes long discussion regarding Unit Testing</em></strong>. I had never written Unit Tests before but had some idea about it. The set of questions included :</p><ul><li>How can you ensure the effectiveness of Unit Tests.<br>Ans : Code Cover and Mutation scores.</li><li>How will you know what tests need to be re-run if some fragment has been changed in the original code.</li></ul><h4>After the second round, all the candidates received a phone call from the HR.</h4><p>He asked me about my interview experience so far, and if I had any feedback for the process. He wrapped up asking if I had any questions for him.</p><h3>Conclusion :</h3><p>The results came two days after the last interview round. Two people, including me, got selected finally.</p><p>If you reached here while reading all that stuff, Thank you for being a patient reader. It’s my first article here. Clap if you like it :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9303d8187410" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>