<?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[CodeDocs - Medium]]></title>
        <description><![CDATA[Open Source Community, JECRC Jaipur - Medium]]></description>
        <link>https://medium.com/codedocs?source=rss----53405c27d7af---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>CodeDocs - Medium</title>
            <link>https://medium.com/codedocs?source=rss----53405c27d7af---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:31:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/codedocs" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Microsoft Summer Internship 2019]]></title>
            <link>https://medium.com/codedocs/microsoft-summer-internship-2019-308bd8c5bb97?source=rss----53405c27d7af---4</link>
            <guid isPermaLink="false">https://medium.com/p/308bd8c5bb97</guid>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[microsoft-student-partner]]></category>
            <dc:creator><![CDATA[Suraj Kumar]]></dc:creator>
            <pubDate>Thu, 02 May 2019 18:21:10 GMT</pubDate>
            <atom:updated>2019-05-02T18:21:10.060Z</atom:updated>
            <content:encoded><![CDATA[<h4>Interview Experience : Getting an Internship at Microsoft India (by Suraj Kumar)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uA9YQcp31F401HYwDW7zsw.png" /><figcaption>Microsoft Student Partner Meet-up [ Microsoft Ruuh printed on black tshirt! ]</figcaption></figure><p>Hello folks!<br>In this blog, I’m gonna share my experience getting a Summer Internship at Microsoft India, and insights to the Interview process.</p><h4>Step 1: Applying</h4><p>I applied on the career page of Microsoft. I didn’t get any response for the 10 days. So I asked for a referral.</p><h4><strong>Step 2: Online round</strong> [6th January 2019] :</h4><p>Platform: Mettl<br>Duration: 1 hour<br>Number of questions : 3</p><p>First 2 questions were easy. It was solved easily by applying STL functions. I solved all three questions.<br>The third question I remember was a queue management question. <br>There were N people standing in a queue like 1, 2, 3, …., N-1, N.<br>There were 3 types of query:<br>1 A : First person left the queue after getting the ticket.<br>2 X : Xth person left the queue in anger.<br>3 Y : What is the position of Yth person in the queue.<br>By using these queries as input. Users are advised to print the output according to query number 3.<br>Example: If N = 5, <br>1 A<br>2 4<br>1 A<br>3 5<br>Output: 2<br>3 5 is the final queue left. <br>The position of the 5th person is 2.<br>I solved it with Set but got TLE in one of the test cases. If you know the optimised solution for this then please leave a comment.</p><h4><strong>Step 3: Onsite Rounds</strong> [8th March 2019] :</h4><p>Location: Pune<br><strong><em>*Every round was an elimination round*</em></strong></p><ul><li><strong>First Round</strong> (Group Fly): <br>Duration: 45 minutes<br>A question paper was given which contains 4 questions. <br>First question: Finding the output. [Dynamic Programming based]<br>Second question: Fill in the blanks to achieve the output as given. [Recursion]<br>Third question: Coding [Matrix related]<br>Fourth question: Coding [Linked List]<br>I solved all four questions.</li></ul><p>15 out of 60 selected for the next round.</p><ul><li><strong>Second Round</strong> (Face-to-Face interview):<br>Duration: 45 minutes<br>Question 1: Given an unsorted array. Find out the index of sub-array which is not sorted. <br>Example: 1, 2, 5, 4, 3, 7, 8 <br>Answer: 2, 4<br>As elements at index 2 to index 4 is not sorted. While the rest is sorted.<br>Question 2: Given a binary tree, a node N and a distance k. Find out all the nodes which are k-distance away from the node N.</li></ul><p>I solved and wrote code for the first question. Due to limited time, I was asked to tell the <strong>approach only</strong> for solving the second question.</p><ul><li><strong>Third Round</strong> (Face-to-Face interview) : <br>Duration: 45 minutes<br>Question 1: If ‘1’ can be written as ‘a’, ‘b’ or ‘c’. ‘2’ can be written as ‘d’, ‘e’ or ‘f’ … so on till 0 can be written as w, x, y or z. Find all the permutation of words for the given number. <br>Example: 12 can be written as ad, ae, af, bd, be, bf, cd, ce, cf.<br>Output: ad, ae, af, bd, be, bf, cd, ce, cf<br>I solved it using recursion. Then he asked me to solve without recursion. He <strong>gave me a hint </strong>for this. I caught the hint and solved it in an iterative way.</li><li><strong>Fourth Round</strong> (Face-to-Face interview) :<br>Duration: 15 minutes<br>Question 1: Given the free time slot of N persons. Find the common slot in which a meeting can be held. <br>I solved this question quickly and told him the approach. He didn’t ask me to code as he was busy with his own work.</li></ul><p>Note: In all the F2F round, <strong>they first went through my projects and asked deep questions related to my project. </strong><br>At the end of the F2F round, they asked me if I was having any query.<br>As I am Microsoft Student Partner, so <strong>I was familiar with most of the ongoing products of Microsoft so it helps me to raise a good query to them.</strong></p><h4><strong>My tips:</strong></h4><blockquote>Be confident.<br>Go through <a href="http://www.crackingthecodinginterview.com/">Cracking The Coding Interview</a> Book.</blockquote><blockquote>25th April 2019: I got the offer letter from Microsoft! Yayy!</blockquote><h4>About Me:</h4><p>My name is Suraj, a 3rd year student B.Tech, CSE from JECRC. <br>I am enthusiastic about problem solving and optimising stuff!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=308bd8c5bb97" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codedocs/microsoft-summer-internship-2019-308bd8c5bb97">Microsoft Summer Internship 2019</a> was originally published in <a href="https://medium.com/codedocs">CodeDocs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interview with Alumni : Nitin Jaiman]]></title>
            <link>https://medium.com/codedocs/interview-with-alumni-nitin-jaiman-3ca2eb0bbe5b?source=rss----53405c27d7af---4</link>
            <guid isPermaLink="false">https://medium.com/p/3ca2eb0bbe5b</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Aakanksha Jain]]></dc:creator>
            <pubDate>Mon, 03 Sep 2018 05:36:15 GMT</pubDate>
            <atom:updated>2018-09-03T05:36:14.992Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/119/1*9ktOzDBMAugZW-Olxacgsg.jpeg" /></figure><p>Graduated from JECRC in year 2015, <a href="https://www.linkedin.com/in/nitin-jaiman-20b0b589/">Nitin</a> Jaiman is working as a Software Development Engineer at Amazon, Hyderabad. A very humble person, Nitin shared with us his experiences working at a startup and a tech giant, and some interesting insights on grades and college’s value. Read along ! :D</p><h4><strong>So we’ve heard after you graduated, you didn’t take placement from college, and joined a startup. What factors influenced your decision? How it was like to work for a startup?</strong></h4><p>When I was interviewed at the startup I was told about what they are building, how its gonna disrupt the logistic industry and what I am going to work on, by the end of the interview I had much clear idea on the kind of work I was going to get, this was not the case when I was interviewed by L&amp;T Infotech, where I got placed from college.</p><p>During the service based company interview, they don’t tell about what kind of work you are going to get, usually fresh recruits have to go through 3 months training, post which they put resources in development, testing, business development or on bench.</p><blockquote>People say that joining a startup is a gamble however if you look things from a different perspective you may figure out that joining a service based company is the biggest gamble you can ever take with your career since you don’t know what kind of work you are going to get on the contrary a startup or a small to mid-scale company are more transparent with the interview candidates.</blockquote><h4><strong>How did you get from startup to Amazon? How is the journey for a tier-2/3 college student to get a job at top companies like Amazon?</strong></h4><p>Recruitment process of top companies is very different from others. <strong>These companies don’t rely much on university, grades or stream of engineering. What they rely on is their interview process.</strong></p><p>The interview process usually starts with a phone screening or an online coding round, In my case it started with an online coding round post which they decide whether to call you for onsite round or not, the onsite round usually consist of around 5 interviews.</p><p>Many people ask questions on how to get that first call for phone screening or coding round. The easiest way is if someone can <strong>refer</strong> you however you can also directly apply at the website, top companies also organise <strong>hiring competition</strong> on websites like H<a href="https://www.hackerrank.com/dashboard">ackerrank</a>, H<a href="https://www.hackerearth.com/">ackerearth</a>, etc, I got call by competing on one such challenge.</p><h4>What are differences between work culture of giants like Amazon and a startup?</h4><p>When you work in a startup you get broad exposure, you work more closely with operations, business developers, program mangers etc. The downside of startup is the quality of everything and myopic view, since teams are working in a highly agile environment, they sometimes end up in compromising quality or creating something just to fix a problem for short term.</p><p>Big giants emphasis a lot on quality they go slow but whatever you create is going to stay there for long term use hence you are expected to create configurable and extensible solution which can we used worldwide.</p><h4>During your journey till now, how much did grades matter?</h4><p>After around a year of experience I <strong>stopped putting grades and university </strong>in resume and surprisingly no one ever asked.</p><p>I think in our college students put a lot of efforts at wrong place, since we are raised in an environment where our efforts are converted into grades and marks through exams and accordingly we get university and engineering stream after counselings. Many students think that the same is going to happen after college, that the one who is having highest grades is going to be recruited by best companies however this is not true, most of the companies rely on their interview process rather than grades, more often than not this process is not inline with the RTU curriculum.</p><blockquote>My suggestion to students of JECRC is to work on their overall growth rather than focusing on only one aspect i.e grades.</blockquote><p><strong>What is the thing you did in your undergraduate that you are proud of? What one thing do you regret?</strong></p><p>During college I took decisions rationally rather than doing what everyone else is doing, for instance I was the only guy who did computer science major and minor project being from ECE, everyone told me that its going to affect my grades and it did but because of this project I was able to get my first job in a startup.</p><p>I certainly regret wasting a lot of time, 4 years is a very long period, you can become really good at anything if you remain persistent for 4 years be it sports, engineering or overall personal growth. I am able to realise this when I have reached to a point in my life where I am making use of every single hour of my day, hence when I look back to my engineering years I feel very regretful of sitting idle and doing nothing with my time :D</p><h4>What are your favourite area(s) of Computer Science?</h4><p>Design.</p><h4>So you’ve done quite a bit of competitive programming! Any tips for competitive programmers out there?</h4><p>I think I am not the right person to give advice on this, I just want to say that don’t do it thinking that competitive programming will fetch you a job, do it if you really enjoy it. If you want to reach to a level to clear interview rounds of top company then you need not be best in competitive programming, being average in competitive programming is good enough to clear interviews.</p><h4>It’s a general notion that “scope” in ECE branch is decreasing or it’s hard for ECE people to get a software engineering job. What’s your say on that?</h4><p>False, tech giants and startups don’t really care whether you are from ECE, CS or some other branch as long as you can clear their interview process. However, getting core ECE job is a different ball game altogether, which I think I don’t have enough experience to comment.</p><h4>Lastly, What advice would like to give to students of JECRC?</h4><p>One thing where JECRC students really lack is <strong>internship</strong>, its also the most important thing in engineering. In most of the other universities there is a culture of applying to internships which JECRC lacks, instead RTU students apply for unpaid training mostly in government institutions.</p><blockquote>My advice to students of JECRC is to build a culture of applying for internship. Create a solid resume having few projects by the end of 3rd year and apply for internships.</blockquote><p>Not just in India but abroad too, getting an internship abroad is relatively easy given that you don’t need working visa for internships in most of the developed countries, you can take this as an opportunity to travel as well.</p><blockquote>We’re grateful to Nitin, that he took out time for this interview. Hope our readers enjoyed the interview and learnt something from it! :)</blockquote><p>If you wanna know more about Nitin, you can connect with him on <a href="https://www.linkedin.com/in/nitin-jaiman-20b0b589/">LinkedIn</a>.<br>If you know some alumni like Nitin, whose journey inspires you and think it should be shared, drop a mail at codedocs@jecrc.ac.in . <br>Keep following our publication for more interesting stuff! Cheers! :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*wQSpKRDhyXVvJ0R4ZUD5AQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ca2eb0bbe5b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codedocs/interview-with-alumni-nitin-jaiman-3ca2eb0bbe5b">Interview with Alumni : Nitin Jaiman</a> was originally published in <a href="https://medium.com/codedocs">CodeDocs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CodeVita 2018 Round 1 : Date Time]]></title>
            <link>https://medium.com/codedocs/codevita-2018-round-1-date-time-6768d3e15b50?source=rss----53405c27d7af---4</link>
            <guid isPermaLink="false">https://medium.com/p/6768d3e15b50</guid>
            <category><![CDATA[codevita]]></category>
            <category><![CDATA[competitive-programming]]></category>
            <category><![CDATA[looping]]></category>
            <category><![CDATA[ct]]></category>
            <category><![CDATA[date-and-time]]></category>
            <dc:creator><![CDATA[Suraj Kumar]]></dc:creator>
            <pubDate>Tue, 28 Aug 2018 17:22:24 GMT</pubDate>
            <atom:updated>2018-08-17T11:20:21.770Z</atom:updated>
            <content:encoded><![CDATA[<h3>Here I am writing solution of one of the question asked in CodeVita 2018, Round 1. The question is titled as DATE TIME. Go through the below link:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*S0QWDvg1FuSZWj9X4lYbeA.jpeg" /></figure><pre>Arun and his sister Usha are challenging each other with some mathematical puzzles. Usha, the cleverer one, has come up with the idea of giving Arun 12 distinct digits from 0 to 9, and have him form the largest date time in 2018 with them.<br>Arun is a little nervous, and asks you to help him with a computer program.</pre><pre>Usha will give Arun 12 distinct digits. He needs to create a date time combination in the year 2018: the date in the MM/DD form (all four digits must be present), and the time in the format HH:MM (all four digits must be present). <br>The date may be from 01/01 to 12/31 and the time may be from 00:00 to 23:59 (in the 24 hour format). The digits provided may be used only once in the answer that Arun gives.<br>If more than one date time combination may be formed, Arun needs to give the latest valid date time possible in the year 2018.<br><br>Constraints : single digit 0 to 9<br><br>Input Format: A line consisting of a sequence of 12 (not necessarily distinct) single digits (any of 0-9) separated by commas. The sequence will be non-decreasing.<br><br>Output: The maximum possible valid date time in the year 2018. The output must be in the format<br>MM/DD HH:MM<br>If no date time can be constructed, the output should be 0<br><br>Explanation: <br>Example1 :<br>          Input<br>          0,0,1,2,2,2,3,5,9,9,9,9<br>          <br>          Output<br>          12/30 22:59<br>          <br>          Explanation<br>          The 12 digits to be used by Arun are given.<br>          The maximum valid date time using only the digits given, and with each digit used at most once is<br>          12/30 22:59<br>          This is the output.<br>Example 2<br>          Input<br>          3,3,3,3,3,3,3,3,3,3,3,3<br>          <br>          Output<br>          0<br>          <br>          Explanation<br>          As no digit less than 3 is present in the input, a valid month cannot be formed. Hence no valid Date time can be               formed with the input digits.</pre><p>Hope you understand the question, if not , here is its short version:</p><p>Given 12 one-digit numbers, you need to make a latest date and time possible for the year 2018, by choosing the numbers at most once. (MM/DD HH:MM)</p><p><em>Input: 0,0,0,1,2,3,4,5,6,7,8,9</em></p><p><em>Output: </em>12/30 09:58</p><p><em>So, to make it latest, first we will try to choose the last month possible that is December i.e. 12.</em></p><p><em>We are left with 0,0,0,3,4,5,6,7,8,9. </em><strong>MM = 12</strong></p><p><em>Now we will try to choose the last day of the month, in this case, it is 31st. But we can’t choose that because there is no ‘1’ left in the list. So we will try to choose 30th. It is possible to choose ‘3’ and ‘0’ as these are available.</em></p><p><em>We are left with 0,0,4,5,6,7,8,9.</em> <strong>DD = 30</strong></p><p>Now we need to choose 24-hour time format. HH:MM . Again we will try to choose the maximum out of it . i.e. 23:59 . But wait , there is no ‘2’ and ‘3’ left in out list. So we can go with 22, 21, 20, 19, 18 .. and so on. Similarly we don’t have ‘2’ and ‘1’ left in out list. So we should go for 09, 08, 07, 06…so on.</p><p>As we have ‘0’ and ‘9’ left in our list . We can go for it. HH = 09</p><p><em>We are left with 0,4,5,6,7,8.</em> <strong>HH = 09</strong></p><p>For minutes, we can go for 59, 58, 57, 56, … so on. 59 is rejected as there is no ‘9’. So we will choose 58 as ‘5’ and ‘8’ are available.</p><p>So, <strong>MM = 58</strong></p><p>Final answer : <strong>12/30 09:58 .</strong></p><p>Hence, this is the latest date and time of year 2018 we can make by using the number in the given list.</p><p>Corner cases:</p><p>Input: 0,1,2,3,4,5,6,7,8,9,9,9</p><p>Output: 09/29 19:58</p><p>Why??</p><p>Because if you select ‘1’ and ‘2’ as the month <strong>and</strong> ‘3’ and ‘0’ as day. Then you will left with nothing to represent the Hour. Because Hour require either ‘0’ , ‘1’ or ‘2’ as its first digit.</p><p>How I wrote the solution :</p><p><strong>PART 1:</strong></p><p>I, first, made the solution using <strong>if</strong> and <strong>else </strong>statement<strong> </strong>and <strong>looping</strong> in which the solution first iterate for Month, then Day, and then Hour and Minute , and if there is no any solution left then I used to output it as 0. But then I realised “I am missing something”.</p><p>I forgot the corner cases and therefore the Online Judge was not accepting my solution.</p><p>Then I went for another solution from scratch after realising my mistakes.</p><p>Here I used the idea of nested loops .</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/02a1f0b3257eca141373795031a6ffc0/href">https://medium.com/media/02a1f0b3257eca141373795031a6ffc0/href</a></iframe><p>There were main loop for MONTH within loop for DAYS within loop for HOUR and within loop for MINUTE.</p><p>I used the Hash array to store the frequency of digits available to use.</p><p>Actually I used two hash arrays. One is for storing previous state of hash array as upd[] and another is for storing current state of hash array as hashfn[].</p><p>I made two functions:</p><p>switch2pre() : For switching to the previous hash array i.e. upd[] to the current hash array i.e. hashfn[]</p><p>updated(): For saving the content of current hash array i.e. hashfn[] to the upd[].</p><p>……….Working………</p><p>The MONTH loop will find the highest possibility and update the hash array hashfn[], then it will move inside to the next loop i.e. DAY loop and find the highest possibility and then, it will move to the next loop i.e. HOUR loop and if it went right , it will move to the next loop i.e. MINUTE loop.</p><p>Now in any loop if it found that there is no possibility left then that element will make it value to -1 and the control went to the parent loop then the parent switch to their previous hashfn and look for next possible value for their element . This process goes on and on.</p><p>And if it found one, the loop breaks suddenly and output the found answer.</p><p>And if it didn’t find one , the loop reach to the end where one of them has -1 value which indicates to output 0.</p><p>I haven’t covered many things in this as I wanted to keep it as short as possible. Comment if you have some doubts.</p><p><em>Thanks for reading!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6768d3e15b50" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codedocs/codevita-2018-round-1-date-time-6768d3e15b50">CodeVita 2018 Round 1 : Date Time</a> was originally published in <a href="https://medium.com/codedocs">CodeDocs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>