<?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 Ayush Mahajan on Medium]]></title>
        <description><![CDATA[Stories by Ayush Mahajan on Medium]]></description>
        <link>https://medium.com/@ay2306?source=rss-6a86af28d570------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qHoXRy7izdRYVYvBbAWgwA.jpeg</url>
            <title>Stories by Ayush Mahajan on Medium</title>
            <link>https://medium.com/@ay2306?source=rss-6a86af28d570------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 11:28:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ay2306/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[Setting up Continuous Deployment on Google Cloud.]]></title>
            <link>https://ay2306.medium.com/setting-up-continuous-deployment-on-google-cloud-225d657a6341?source=rss-6a86af28d570------2</link>
            <guid isPermaLink="false">https://medium.com/p/225d657a6341</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Ayush Mahajan]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 20:09:23 GMT</pubDate>
            <atom:updated>2024-02-11T16:44:55.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NhsWxcj4S0TgtFz4IASz_w.gif" /></figure><p>I am a huge fan of automation. Since college, I wanted to learn stuff like CI/CD and build a pipeline that tests and deploys code for me. In college, I tried stuff like Travis CI which is a very good free tool but still not awesome when I am trying to work with private repositories.</p><p>Now I picked this curious topic again and learned some basics of deployment. I may learn more about this in the future and will come back here to write more (so please bear with me if I am incorrect somewhere, I am still learning)</p><h3><strong>Prerequisites</strong></h3><ol><li>Set up an account on <a href="https://console.cloud.google.com/">Google Cloud</a>.</li><li>Install <a href="https://docs.docker.com/engine/install/">Docker</a>.</li><li><a href="https://www.youtube.com/">Learn</a> Git (and GitHub) basics.</li><li>Linux (Know how to test or at least run you application via CLI)</li><li>Node installed (if you want to follow this tutorial)</li><li>Be cool 😃</li></ol><h4>Step 1: Create a hello world application</h4><p>[Skip if you already have an application]</p><p>I have chosen a simple react application which I created using the following commands</p><pre>npx create-react-app hello-world<br># if the above command does not work, try<br>npm init react-app hello-world</pre><h4>Step 2: Containerize your code using Docker</h4><p>You can choose not to containerize it, but here we will be pushing a docker image to <a href="https://cloud.google.com/run?hl=en">Cloud Run</a>.</p><p>Create a file named <em>Dockerfile </em>and fill the following commands</p><pre># Let&#39;s use a node image based on alpine<br># Alpine is a lightweight Linux distribution, that&#39;s why<br>FROM node:alpine<br># Copy all the code present here to the docker<br>COPY . /code_app<br># Change working directory to code_app<br>WORKDIR /code_app<br># Run the following commands<br>RUN npm install<br>RUN npm run build<br>RUN npm install -g serve<br>CMD serve -s build</pre><p>Let’s test out what we built.</p><ol><li>We can build our image using docker build -t &quot;hello-world&quot; . <br>You need to run this command in powershell or terminal and make sure your working directory is same as one with <em>Dockerfile<br></em>With this command you have successfully build an image of your application.</li><li>You see the list of all the images using docker image ls</li><li>Now let’s run the hello-world application on our port 3000. Remember that react will have the port on 8080, so we have to mention to expose 8080 port of docker container to 3000 port of our computer using <br>docker run -p 3000:8080 hello-world</li></ol><h4>Step 3: Create a Google Cloud Build configuration file.</h4><p>We can create configuration file in YAML and JSON. You can follow the instructions <a href="https://cloud.google.com/build/docs/configuring-builds/create-basic-configuration">here</a> if you wish to learn more or configure it by yourself. Here will be using YAML.</p><p>I usually name my file <em>googlecloudbuild.yaml</em>, you can name it anything you want.</p><pre>steps:<br># Install dependencies<br>- name: &#39;node&#39;<br>  entrypoint: &#39;npm&#39;<br>  args: [&#39;install&#39;]<br># Test the code<br>- name: &#39;node&#39;<br>  entrypoint: &#39;npm&#39;<br>  args: [&#39;test&#39;]<br># Build the container image.<br>- name: &#39;gcr.io/cloud-builders/docker&#39;<br>  args: [&#39;build&#39;, &#39;-t&#39;, &#39;gcr.io/$PROJECT_ID/$_BINARY_NAME:$COMMIT_SHA&#39;, &#39;.&#39;]<br># Push the container image to Container Registry<br>- name: &#39;gcr.io/cloud-builders/docker&#39;<br>  args: [&#39;push&#39;, &#39;gcr.io/$PROJECT_ID/$_BINARY_NAME:$COMMIT_SHA&#39;]<br># Deploy container image to Cloud Run<br>- name: &#39;gcr.io/google.com/cloudsdktool/cloud-sdk&#39;<br>  entrypoint: gcloud<br>  args:<br>  - &#39;run&#39;<br>  - &#39;deploy&#39;<br>  - &#39;$_BINARY_NAME&#39;<br>  - &#39;--allow-unauthenticated&#39;<br>  - &#39;--image&#39;<br>  - &#39;gcr.io/$PROJECT_ID/$_BINARY_NAME:$COMMIT_SHA&#39;<br>  - &#39;--region&#39;<br>  - &#39;$_REGION&#39;<br>images:<br>- &#39;gcr.io/$PROJECT_ID/$_BINARY_NAME:$COMMIT_SHA&#39;</pre><p>What are doing here?<br>Note- $_REGION , $_BINARY_NAME will be added by us later in the pipeline, $COMMIT_SHA will be provided by default.</p><ol><li>Step 1 and 2 are quite clear Installing dependencies and running tests.</li><li>Step 3 is same step we did earlier to build the image.</li><li>In Step 4, we push the created image to Container Registry which is a Docker repository storage on Google Cloud Platform (GCP)</li><li>In Step 5, we create a deploy on Google Cloud Run for the same image we just created and stored.<br><strong>Note:</strong> We used --allow-unauthenticated flag because this is a website and we want everyone to be able to access this.</li></ol><h4>Step 4: Creating a trigger on Google Cloud Build</h4><p>Maybe we can do this via CLI as well (I don’t know, you can explore yourself).</p><p><strong>Creating a connection</strong></p><ol><li>Go to <a href="https://console.cloud.google.com/cloud-build/dashboard">Cloud Build</a> on Google Cloud Console.</li><li>Choose region to be us-central1 [This one worked for me]</li><li>Go to repositories in the left dashboard.</li><li>Choose 2nd Gen</li><li>Click on + CREATE HOST CONNECTION and connect with your Github (or Gitlab)</li><li>Now, click on LINK REPOSITORIES and link a hello world repository with the connection.</li></ol><p><strong>Using the connection to create a trigger</strong></p><ol><li>Go to Triggers on the left dashboard</li><li>Click on + CREATE TRIGGER</li><li>Fill data</li><li>In Source, select 2nd Gen and choose repository and regex for the branch to which it will be applied to.</li><li>Fill the following <br>Configuration — Cloud Build configuration file (yaml or json) <br>Location — Repository <br>Cloud Build configuration file location — googlecloudbuild.yaml</li><li>In Advanced &gt; Substitution Variables, add these two variables [we used them YAML file]<br>a. _BINARY_NAME : “hello-world”<br>b. _REGION: “us-central1”</li><li>Leave Service account.</li><li>Click on Create</li></ol><h4>Step 5: Watch the magic</h4><ol><li>Submit the changes to branch above see a rollout in <a href="https://console.cloud.google.com/cloud-build/builds">History</a>/<a href="https://console.cloud.google.com/cloud-build/dashboard">Dashboard</a></li><li>Go to <a href="https://console.cloud.google.com/run">Cloud Run</a> to see you running website</li><li>Click on your service to find the URL to access your service.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=225d657a6341" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 1 | Young Physicist | C++]]></title>
            <link>https://ay2306.medium.com/day-1-young-physicist-c-5e86e9697459?source=rss-6a86af28d570------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e86e9697459</guid>
            <category><![CDATA[competitive-programming]]></category>
            <dc:creator><![CDATA[Ayush Mahajan]]></dc:creator>
            <pubDate>Wed, 14 Sep 2022 14:48:02 GMT</pubDate>
            <atom:updated>2022-09-14T14:48:02.373Z</atom:updated>
            <content:encoded><![CDATA[<p>Day 1 | Young Physicist | C++</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2erVQrvkxb8PBitjRjVylQ.png" /></figure><p>The journey starts from the simplest questions only. So starting with the first question of the list — <a href="https://codeforces.com/contest/69/problem/A">Young Physicist</a>. You should always try it out yourself first.</p><p>To solve this question remember that for a body to be in equilibrium, the sum for all x, y, and z vectors should be zero. You can code it this way:</p><pre>#include&lt;bits/stdc++.h&gt;<br>using namespace std;<br> <br>int main(){<br>    int n;<br>    cin &gt;&gt; n;<br>    int x[n], y[n], z[n];<br>    for(int i = 0; i &lt; n; i++){<br>        cin &gt;&gt; x[i] &gt;&gt; y[i] &gt;&gt; z[i];<br>    }<br>    // Calculating sum for x - axis;<br>    int x_sum = 0;<br>    for(int i = 0; i &lt; n; i++){<br>        x_sum += x[i];<br>    }<br>    // Calculating sum for y - axis;<br>    int y_sum = 0;<br>    for(int i = 0; i &lt; n; i++){<br>        y_sum += y[i];<br>    }<br>    // Calculating sum for z - axis;<br>    int z_sum = 0;<br>    for(int i = 0; i &lt; n; i++){<br>        z_sum += z[i];<br>    }<br>    if(x_sum == 0 &amp;&amp; y_sum == 0 &amp;&amp; z_sum == 0){<br>        cout &lt;&lt; &quot;YES\n&quot;;<br>    }<br>    else {<br>        cout &lt;&lt; &quot;NO\n&quot;;<br>    }<br>}</pre><p><a href="https://codeforces.com/contest/69/submission/168986382">Submission Link</a> If you want to solve with less code -</p><pre>#include&lt;bits/stdc++.h&gt;<br>using namespace std;<br> <br>int main(){<br>    int n, x = 0, y = 0, z = 0;<br>    cin &gt;&gt; n;<br>    for(int i = 0; i &lt; n; i++){<br>        int a,b,c;<br>        cin &gt;&gt; a &gt;&gt; b &gt;&gt; c;<br>        x+=a;<br>        y+=b;<br>        z+=c;<br>    }<br>    if(x == 0 &amp;&amp; y == 0 &amp;&amp; z == 0){<br>        cout &lt;&lt; &quot;YES&quot;;<br>    }<br>    else{<br>        cout &lt;&lt; &quot;NO&quot;;<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e86e9697459" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Freshman to Google SWE Journey]]></title>
            <link>https://ay2306.medium.com/freshman-to-google-swe-journey-676d4c2d0e50?source=rss-6a86af28d570------2</link>
            <guid isPermaLink="false">https://medium.com/p/676d4c2d0e50</guid>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[journey]]></category>
            <dc:creator><![CDATA[Ayush Mahajan]]></dc:creator>
            <pubDate>Sat, 20 Mar 2021 18:17:14 GMT</pubDate>
            <atom:updated>2021-03-20T18:17:14.387Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*7ZiN5q3OD3r_mHaqik1s3w.jpeg" /></figure><p>Let me share my journey on how I started my journey from a Freshman at Maharaja Surajmal Institute of Technology to an offer from Google for an SWE role. I am sharing my journey because I think it is better to know the why, how, and impact of making decisions rather than directly knowing the decision I took.</p><p>Note: Before college, I was introduced to C++ in my school. One can learn that much in 1–2 months if they don’t have any prior experience in programming.</p><h3>Freshman Year</h3><p>Let’s start with the Freshman year in 2017. I joined college with a big goal of becoming a kickass programmer who would one day work on big things. So like any beginner, I went to one site where all questions were answered regarding such queries, <a href="https://www.quora.com/">Quora</a>. I read tons of answers on how to become a better programmer, how to crack Google or Facebook, and many more similar questions.</p><p>I learned that we can very basically categorize the programming we do in college into two basic categories, that are Competitive Programming which focuses on solving some pre-defined solved problems (in most cases) using classical algorithms and Development which constitutes the part where we actually build things. But one big thing I learned was that no matter how much work you do yourself, your real learning will start once you start working.</p><p>I decided to go with the gut feeling to start working as soon as possible so that when I graduate with a huge amount of experience. In June 2017, when all entrance exams were over, I started learning basic HTML, CSS, Javascript, Bootstrap Library, and jQuery Library from <a href="https://www.freecodecamp.org/">FreeCodeCamp</a>. By the end of the month, I started applying for internships from <a href="https://internshala.com/">Internshala</a>. After applying to nearly 50 companies I was selected for the interviews in 3–4 companies. In the end, I finally got an offer for a Front end role with a stipend of Rs. 2000 per month working Monday to Friday after college.</p><p>The internship was a fun experience where I learned how to quickly make a front end of the website and also how to make websites using pre-built templates. I learned many cool things about setting up a better and more productive environment on my PC. But soon it started to feel like a dead-end because I saw people in my college as well as my friends in prestigious colleges working on cool technologies like Machine Learning, Blockchain, Electronics, and other stuff. So it was a time to call the internship to an end and start exploring other technologies.</p><p>Starting with Arduino, I learned some basics like turning on LED lights, connecting using a Bluetooth module like HC06 (or something similar, don’t remember now). But now I was focusing on learning multiple technologies so that I get ideas of them. I then started with Machine Learning and headed into <a href="https://www.coursera.org/learn/machine-learning?utm_source=gg&amp;utm_medium=sem&amp;utm_campaign=07-StanfordML-IN&amp;utm_content=07-StanfordML-IN&amp;campaignid=1950458127&amp;adgroupid=70479331363&amp;device=c&amp;keyword=machine%20learning%20basic%20tutorial&amp;matchtype=b&amp;network=g&amp;devicemodel=&amp;adpostion=&amp;creativeid=351294699265&amp;hide_mobile_promo&amp;gclid=Cj0KCQjwl9GCBhDvARIsAFunhsmeyTzwpjYlq5Vl2B6SxaC2H3pMOH03IgAy224ySVCq6Hqi0Me9-ngaAoqPEALw_wcB">Andrew Ng Machine Learning Course</a>. And after looking at the complex math I was sure that it is not something I am going to continue deeply. Then I started with Full Stack development by adding backend technology to my Front End Skills. I started learning NodeJS and continued learning it from late December 2017 to March 2018. After that, I thought of applying for internships again. I had a contact who had a friend whose startup was doing well and working on BlockChain. I was not selected but I got the advice that my resume only contains simple front-end projects till now. I have no edge in algorithms and data structures which is a very important skill for a programmer. As I already researched earlier, I knew this links to competitive programming. I didn’t know back then that you can learn data structures and algorithms without trying competitive programming. Believe me, it is so far the best misinformation I had. So I started reading various answers on how to improve in competitive programming (just reading). And I think I know you can guess that I did not improve.</p><h3>Sophomore Year and Competitive Programming</h3><p>After facing multiple failures in trying to improve competitive programming I was again researching how to become better at competitive programming. Every answer was the same saying that one needs to practice more questions just in a different way. One day I encountered this person, <a href="https://www.quora.com/profile/Bohdan-Pryshchenko">Bohdan Pryshchenko</a>. He was a great programmer in competitive programming and realized that this person has solved tons and tons (in thousands) problems. It hit me that people when say solve more problems, they don’t mean 10 or 20 but hundreds and possibly thousands. So I decided, it&#39;s time that I will not look into becoming better competitive programming but rather solve tons of problems from now on. So I started the easiest <a href="https://a2oj.com/Ladders.html">A2OJ ladder</a>. I just started solving it day and night. If I was stuck on a question for more than 1 hour, I read its editorial, read someone else’s code, started pinging people to ask them doubts in their code. I started reading about other people’s journeys and understood where they were wrong and why were they wrong with that approach. If I knew someone did competitive programming, I went to them, with fear of judgment and asked my doubts, but the worst that could happen was that they are not resolving my doubts. Slowly I learned various C++ STL features just by trying to understand different programmers&#39; code. Soon, I started performing better in contests. I started participating in every possible contest I could. I went to tech fests of college even if I was to be the last ranked there. I still remember the day in IIIT-D fest when a candidate master ( a rank on codeforces ) entered the lab and everyone was like a god has just entered and I knew that is the skill level I want to go for and I will go there no matter the hard work required. And believe me, I am really a noob at programming contests at this time because I Google searched for the second question of the contest which was not allowed and on top of that I was caught doing it.</p><h4>A new ICPC dream</h4><p>As I participated in more contests, I started getting more experience and more sets of questions I couldn’t solve. But learning how to solve them also meant that I learned a new set of problems that I couldn’t solve earlier. These problems started repeating and thus I started identifying problems to previously solved problems. When I could map a problem to a simpler problem or started getting an idea by reading the problem only, I was looked like a genius. This is the time in my life when I started to dislike the word “genius” because I realized there are no geniuses, just people who have worked really hard and are now having trouble solving the harder problems. It&#39;s just a journey of moving ahead.</p><p>But since I had joined various programming forums and started interacting with various competitive programmers, I learned about the most prestigious programming contest for college students that is <strong>International Collegiate Programming Contest (ICPC)</strong>. It required a team of three people to participate. I knew about this contest since Freshman year and tried teaming up but failed. This time I was very serious about going for it. I wanted to compete with India’s best. I wanted to be one of the best (while at that time I was not even the best in college, but dreams are not bounded by reality after all).</p><p>I teamed up with my seniors and we clashed for sites with other teams and we ranked 2nd in our online qualifications and unfortunately couldn’t qualify. My teammates soon then started focusing on their software development skills since they were seniors and had other priorities. So I was left with no team for next year and didn’t even know people in my college who share the same interest level in ICPC or even competitive programming.</p><p>But the fun thing about good, great, or even best competitive programmers is that they all started at level 0. So if I could find 2 people willing to learn no matter the level they currently at we could go to lengths. So I volunteered to teach for Special Interest Groups (SIG) in my college to find people interested in learning. Fun thing was that the first person I was confident to take in my team met me before even starting the SIG. He was curious enough to contact me to clarify doubts just knowing that I code. When SIG started, it started with a full class ranging programmers from Freshmans to Seniors. I gave my best to teach but won’t rate my teaching skills here. Soon classes reduced to the strength I could count on my fingers. But these people were genuinely interested. They were participating in contests and wanted to improve. I didn’t need to put effort to make friends with them because our understanding and a shared goal of learning more made us better friends without anyone noticing and I think that’s how it works when you are in a circle of people who are all working towards a common goal. I met my final teammate here and soon we were a team.</p><p>Soon we started practicing together and solved problems that were harder for us and started learning at a very fast rate, my competitive skills grew more and more with practice. This increase was now majorly because of the consistency of practice and trying harder questions. I went as high as 1878 rated on codeforces (okay, it was high for me at that time since I was very close to my goal of reaching candidate master) but then there was the only downfall for over a year.</p><h3>Junior Year</h3><p>In Junior Year, life took multiple turns which gave me a completely new perspective. At the end of freshman year, we were asked to do industrial training and I was overconfident that competitive programming skills will help me crack tons of companies. Fast forward to May 2019, I am almost done with every exam with no offer in hand and am just desperate for any opportunity. But then two unexpected events of my life happened. I was scheduled for an interview opportunity with Google Japan and I got an internship offer from Metvy.</p><h4>Failing First Attempt at Google</h4><p>Google interviews are of good difficulty are mostly focused on Data Structure and Algorithms, for which I had overconfidence. I conveniently solved the first coding round which looked for only brute implementations of the problems. In the first interview itself, we discussed a difficult Binary Search Question. I was able to solve it and go to the next round. The fun thing happened in this last round, I was asked a very simple and easy question, and I couldn’t solve it, which lead to rejection. I literally was heartbroken because overconfidence made me lose an opportunity. For the next 6 months, I used to think about the solution again and again to that problem and how I will easily tell the solution to the interviewer this time.</p><h4>A new interest</h4><p>Soon I started my internship in Metvy as a Backend Intern. I had no idea how to work on the project I was given and that too was required to be done by the deadline. I just knew one thing that if I give up, I will be always running from challenges. I would fail trying but I will give my best. It was the first time I was working professionally and I wanted to work with the best professional behavior I could. I learned a lot building the backend for Metvy. I took the responsibility for solving slow parts, talked to my mentors about issues (not telling about the task but the problem only like slow processing is the issue, how to handle). I learned about Redis and RabbitMQ, which actually made me look more into the scalability side of the backend servers. Though I didn’t learn much about them after the internship and then Internship at Metvy ended.</p><h4>The Depressed days</h4><p>After the internship at Metvy, there was nothing much except ICPC preparations. But I was not improving in the contests. My performance was getting worse day by day. I was stuck on the current Expert rank for about 8 months now. I was recently rejected by Google. My friends in prestigious institutes were getting placed one by one. Those who dropped a year with me were getting internship offers while others were getting FTE offers. My roommate also left and I couldn’t find a new roommate from college as well. I started living alone in the apartment. My social life only consisted of talking about some development idea or ICPC with my teammates. I was gaining weight day by day. We prepared for ICPC only and did that day and night. We had our strategies and worked on them. And when we participated in ICPC online regionals, we qualified. But social life and health were taking a lower hit every day. I was seriously not getting any offer to summer internship from any company. And soon it was December 2019 and we were in Kanpur for ICPC regionals. We were confident that after this much practice we will come at least in the top 20 if not the top 10. Guess what was our rank? We were in the 60s out of some 80 teams. So we were seriously in the top 20 from the bottom. After the contest, we were actually sad, and all were wishing we could have helped our team even a little more maybe we could have been better. But still giving that contest was like giving a very important exam, now we cannot do anything about what has happened. I still don’t understand what happened that day, maybe it was the competitive programmer who has already seen enough failure and was just getting used to being a failure. Now I am okay with failure, will feel sad but what can I do. I was there like, let’s plan for the next ICPC now. I was just feeling like maybe I am at a moment where I have had enough failures that now better things ought to happen. I decided that I will start living a better life from now on. I will work out, eat healthily, get rid of bad habits, start talking to people about things other than programming and do my best.</p><h4>A new life</h4><p>The next day I came back to Delhi on 1st January 2020. I started doing my best, eat better, work out. And soon change in lifestyle made me happier and better. Since I started talking to various people, I got to become friends with some really awesome peeps, who deserve a very big credit for my career. With a happy life and also putting a great amount of effort in competitive as well, magic happened. It was April and in codeforces contest, everything just went smooth and I came 13th in the contest, giving me a 200+ rating boost, pushing me through ranks, and made me a Candidate Master with a 2000+ rating. This was the moment, I knew my hard work has finally paid. And soon I was a happy person, with a little mental peace. Soon COVID made it clear that we have no idea about ICPC so it was better to give up on the dream and start focusing on the next big thing, which was placement.</p><h3>Placements Journey in Senior Year</h3><p>I started planning what do I need to learn for placements. My friends went out of their way to help me learn concepts like OS, DBMS, and Networks so I could understand them and answer questions on them in interviews. I started practicing <a href="https://leetcode.com/">Leetcode</a>. I made sure that I will solve many interview questions that I will make the possibility of being asked an already solved question very high.</p><p>I started giving placement tests for various companies, including Goldman Sachs, Infosys, TCS, Codenation, ShareChat and many others. and I failed in all of them (except Infosys but still didn’t get the highest package there as well). I asked for referrals on LinkedIn for companies like Google, UrbanCompany, HackerRank, Amazon, and many many others. Other than Google and HackerRank I didn’t get even a coding test for them. I just didn’t know what was missing. I got my resume reviewed tons of times by the seniors working in big companies and everyone said it’s pretty good. But soon I realized that I don’t need selection from dozens of companies. I just need to clear 1–3 companies and that gave better hope to me during placements.</p><p>Soon I got an offer from Expedia in September 2020. My first offer gave me a big confidence boost. I was now more mentally prepared for other interviews. With time my process for Google also started in November 2020 and I gave my first telephonic screening round. It went very well and soon the dots started connecting themselves and life and previous efforts started making sense. In December I applied for an internship at CRED which itself had a very awesome test. It was the first time I gave programming round to build a simple application but with a time limit. My first part of the onsite for Google was also scheduled in that month which had 3 back to back rounds. My first round went very well as I could very easily map the asked questions to a variation of previously solved questions. The second was rather simple but one question was again simple but the solution wasn’t hitting. My interviewer gave a hint and thanks to competitive programming experience I had enough practice to get to the solution if my brain gets a hint of the correct direction(for div2As only). The third round was more difficult but again competitive programming helped me here. I remember reading about a very cool approach to solving a question. Though questions were different I could use some calculation optimizations from there and I solved the question. I was also selected for Zeta Internship but I had already started working with CRED and I love working here very much. In January before the start of my internship at CRED, I had my last technical round and one Googlyness round. I will swear I smiled when I listened to the problem statement by the interviewer that day because I recently learned treap data structure and I was like oh my god, we that with balanced binary search tree. Though the question was more than that. Just knowing data structure is never a solution to any problem. I was able to go ahead and solve the problem. I didn’t solve in expected time complexity of O(nlogn) but still, O(n(logn)²) is also cool. The next round went smoothly as well. I was asked technical questions here as well. I think there was some miscommunication but still, it was a fun problem to solve using Z-Algorithm which I heavily use. I was told that my data is missing from my packet for the Hiring committee and thus was asked to give another Googlyness round. And then after that, I soon received an offer from Google.</p><p>So that’s my journey so far, don’t know what will happen next. I can just do hard and consistent work for my life goals. And I do not even expect other things from myself as well. Just live, work and see what happens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=676d4c2d0e50" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>