Codementor Events

My experience of cracking coding interviews

Published Aug 24, 2018
My experience of cracking coding interviews

Cracking Coding Interviews
Hey there!

This is my first post and am very happy that it's about my favorite topic "Coding Interviews". Let's go on to the topic.

Are the coding interviews easy ? No, they are not easy. You need constant dedication and hard-work to master it. In this post I will explain about my journey, lessons learnt and key take aways.

Fear and Struggle
When I was in college, making my baby steps in programming, I was solving problems on arrays, strings easily but when it comes to linked lists, trees and graphs I always got afraid of them. They were nightmares for me. Later, somehow I got job in MNC without touching them. I joined the company and I was given with role of QA. I didn't like the job, in fact, hated it. Then, I quit it. I started applying for big companies. I went to amazon interview, there I was asked to write code on paper. The problems are based on linked lists and trees. Then, I started picking problems from geeks4geeks and solving them. The hurdle I faced is when I stuck somewhere, I have to clarify on myself. Then, I started exploring different resources. I will be listing them on end of the post.

Success
After all my real struggle, I somehow grabbed a paid internship in a fintech startup. I gave many interviews in small and big companies, rejected in many of them, started learning from them. The one best practice I followed is, If I was rejected by a company, I never felt sad, instead I solve the questions asked in the interview. It helped me very much that I never forget them in life. So, all my struggles end up, when I went to the interview of bigbasket. When I was in last round, I didn't feel nervous, One thing I kept chanting in my mind "If I fail in this interview, will I give up coding ? No, If I get succeed, will I give up ? . Either you fail or succeed, only thing you know is coding. Except coding, you know nothing.". I cracked the interview, got offer.

Time for a raise
After one and half year of my tenure with bigbasket, I felt that I need a raise. Then, I started my journey again. This time, I was improved a lot in both coding and system design. Work at bigbasket, taught me so many things. I started with a company called "coviam".  I have cleared online coding test, then a on-site interview. Cleared first two F2F rounds, interviewers are impressed by my knowledge and quickness in coming up with solutions. But rejected in third round. The more important thing here is to handle rejection. Despite rejected, I didn't feel bad, I got a confidence and I felt I did well. Rejected from hackerrank, soroco, ninjacart, greedy game, tracxn, niki.ai, moengage and springboard.

Heartbreaks
I attended the interviews of hackerrank, bankbazaar, groupon, grab and flipkart. Even I took leaves for preparation. Felt very bad after rejected from these, because there are quality engineers in these companies, If I join there, despite of money I can learn more. Completing all rounds, HR tells me "we will get back to you after the team having discussion", I was excited and expecting an offer, HR won't respond but I have an ego that not to ask them, but out of anxiety ask them, get rejected email. The same thing repeated each and every time. It gave me a heart-break 😛
Screen-Shot-2018-08-16-at-12.47.41-PM-1024x237.png
Screen-Shot-2018-08-16-at-12.52.38-PM-1024x517.png

Here are the key take-aways from my experience:

  1. Never Ever feel bad for rejection. Instead learn things from it
  2. Practice, Practice and Practice is the only mantra.
  3. When I got rejected from big companies, one thing I realized is that "fear". After going through their interview experiences, I was afraid that their interviews are tough. So, even when I get a simple question in interview, I think it in a complex way. If I loose that fear and attempt the question then I might have cracked it.

Here are the resource that I followed:

For Data Structures and Algorithms:

https://leetcode.com - My favorite portal for interview preparations. The best thing about this is you find lot of intuitive, unique and easy solutions. Everyone solves a problem in a different approach, there you see all those solutions. Also, it has system design, database design questions too. Have a look at it.

https://geeksforgeeks.org - A famous computer science portal having everything you need for interview preparation. But in my opinion, the code, methods are not too intuitive and simple, their code has some bugs too. For example, consider this problem : https://bit.do/PetrolPump , the solution is not too intuitive. If you see this solution : http://bit.do/LeetcodePetrolPump. It's very easy. That's why I recommend leetcode over G4G.

https://interviewbit.com - This is also an excellent platform for coding interview preparation. The best thing is they have goal based structure where you can set your goal duration, hours you can spend per day, based on that you can solve problems. They have a neat flow diagram of topics with dependencies so that you can master topics and track progress. One more best thing is they have system design questions and mock interviews.

https://ideserve.co.in - The special thing about this platform is they have Algorithm Visualization. Also, they have video lectures too, I'm a great fan of their videos. The explanation is very easy and makes more sense. Here's their channel : idserve.

https://codesignal.com - Previously called as codefights, the special thing about his platform is you can challenge other people, it's like a game, you try to win and the skill in you comes automatically.

https://hackerearth.com - Excellent platform for participating in coding challenges put by companies which could secure you a job. They have "codemonk" which has very good tutorials, also "codearena" which is similar to "codefights".

https://hackerrank.com - This is also one of the good platforms where they have bunch of problems on topic wise. Best thing about this is they have very strong testcases. Also, they have discussion platform where you find number of solution

https://pramp.com - Excellent platform for practicing mock interviews. This is very important, your real power comes out during the interview. You choose a slot, they match with another person and give both a rr and get interviewed.

For System Design :

System Design is also a very important topic asked in interviews. Here are the resources to follow:

Hiredintech - An excellent guide for system design with video lectures

Tech Dummies - Techdummies Youtube Channel is famous for system design questions. You can find system designs of uber/ola/lyft, bookmyshow/fandango, algorithmic questions.

Gaurav Sen - Gaurav Sen is a great competitive programmer, his channel has some awesome coding questions and system design questions.

Tushar Roy - This guy is amazing, his explanation is mind-boggling. Subscribe and Watch.

Best Practices to Follow:

  1. Solve at least one problem a day. Go to interviewbit, there you can chose a problem randomly and solve.
  2. Give more and more mock interviews, it gives lot of confidence.

Final Note: I will be updating this post as and when I find new things, please keep a note in comments, if you need any help, contact me at hi@lokesh1729.com

Originally Posted : Here

Discover and read more posts from Lokesh Sanapalli
get started
post commentsBe the first to share your opinion
Akshata Guntapelliwar
4 years ago

Thanks Lokesh for sharing your experience

Saurabh a.k.a Codedoctor
5 years ago

Thanks For sharing your experience @lokesh .
I did went through Amazon SDE-2 interview in last 20days .
Did went through 7 rounds ( 2Problem solving + 2LLD + 2 HLD + 1 Manager round ) and today I got call from HR saying that 'You did so well in all the interviews except last LLD ’ , so we have decided not to go with your candidature right now .Let’s keep in touch for future opportunity .

I might share my experience soon :) .

Show more replies