Skip to content
Related Articles

Related Articles

Swiggy Interview Experience for SDE-1 (Bangalore 1.5 Years Experienced)
  • Difficulty Level : Hard
  • Last Updated : 21 Dec, 2020

Online Coding Test (Hackerrank): Questions were of Easy, Medium, and Hard level, 4 questions in total you need to solve in 1.5 hrs.

Round 1(On-site, virtual):

  1. Collect maximum points in a grid when you move from top left to bottom right. You can only move towards right and in downward direction. The grid can contain both positive and negative values. Both the approach and the code were expected.
  2. Find the Lowest common ancestor of a binary tree.
  3. Find the maximum contiguous sum in the array.

Round 2 (On-site, Virtual):

  1. Space optimization and calculation related question : How will you store the pin codes of different locations with the location name and their respective Pincode. Discussed different approaches and complexities.
  2. Alien Dictionary problem. Asked for the failure conditions in the solution and the approach  
  3. Building Bridges problem.
  4. Given function f6(), that returns the number between 1 and 6 randomly. All the numbers are returned with equal probability, how will you write f12() function using f6(), which will return the numbers randomly between 1 and 12, all with the same probability.

Hint: think of making f3() function then, try making f12() function.

Round 4 (Hiring Manager round):

  1. Let’s assume we have three types of packets pen of 6 9 20. I can only sell a full packet. Given N tell me if N is saleable or not?
  2. He extended the first question to tell the minimum number of total packets required if you want to sell X pens.
  3. Design question related to Medicine inventory design. If any medicine is becoming less than threshold quantity in stock, the alarm should be raised so that the owner of the shop may know that he needs to order that particular medicine again. Asked about storing the data and the structure.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.

My Personal Notes arrow_drop_up
Recommended Articles
Page :