Desi QnA interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Desi QnA
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
First of all, I was selected for a good college. From there, my coding journey began. After learning the basics of DSA, I moved on to Code Studio and practiced many questions from there. Later, I started with competitive programming and regularly participated in contests on coding platforms. That helped me build my coding skills and think of practical solutions quickly. I tried to solve 5-10 medium to difficult questions daily.
Application story
Desi QnA visited my campus for the placement. We just had to upload our resume and fill in all the details in the form. First, shortlisting was done based on CGPA and the resume.
Why selected/rejected for the role?
I was selected because I could solve almost all the problems asked and seemed enthusiastic about the role of a Developer. I had done competitive coding to answer questions quickly and effectively. My verbal skills were decent, and I could articulate my thought process and decision-making in both the Technical and HR rounds.
Preparation
Duration: 2 Months
Topics: Dynamic Programming, OOPS, Computer Networks, Computer System Architecture, Operating System, Data Structures, Pointers
Tip
Tip

Tip 1: Make sure that you are thorough with CS concepts beforehand.

Tip 2: Even when you are explaining the approach to a question, try to think simultaneously about how you would code it.

Tip 3: Read previous interview experiences; they will give you a fair idea of the kind of questions you should expect.

Application process
Where: Campus
Eligibility: 6.5 CGPA
Resume Tip
Resume tip

Tip 1: Mention at least one project and past work experience, as it creates a good impression.
Tip 2: Keep your resume up to date for the role you are applying for.
Tip 3: Try to keep your resume to one page.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration95 Minutes
Interview date16 Mar 2023
Coding problem1

This round was conducted on the HackerRank portal for a total duration of 95 minutes and was divided into sections.

1st Section: Aptitude Section: 14 questions, 28 minutes 

2nd Section: Technical Section: 12 questions, 17 minutes 

3rd Section: 1 coding question: 20 minutes + 30 minutes

1. Coin Game

Easy
15m average time
85% success
0/40
Asked in companies
SalesforceOracleD.E.Shaw

Wong is hungry and wants to eat tuna melt. He checks his pocket and finds that he has only a buck left. He asked Dr. Strange to lend him some money, for which Strange agrees but to get the money, Wong has to beat Strange in a game of coins. The game will be played by two players. Being kind enough Strange allows Wong to play first. Now, Strange arranges N coins in a row. Each coin is associated with a value. In his turn, every player can remove only one coin from either end. Once a player removes a coin, it can not be placed back into the row. At the end when all coins are removed, the player with the maximum value of coins wins. Wong will only get money if he wins the game. Wong knows that he can not beat sorcerer supreme, so he asked for your help.

You are given an array of integers, say, ‘ARR’ of size ‘N’ containing the values associated with ‘N’ coins. Your task is to determine the maximum value of coins you can obtain by following two rules:

a) Both players play in alternate turns and they can remove only one coin in their turn.
b) Any player can remove coins only from either of the two ends of ‘ARR’.

Note:

There can be more than one set of coins with maximum value.

For example:

a) Consider 3 coins are placed with values [10, 20, 30]: Wong removes 30, then Strange removes 20, then Wong removes 10. Now all coins are taken, and Wong has coins with value 40 and he wins.

b) Consider 1 coin is placed with value [100]: Wong removes the coin and no other coin is left. So, Wong wins with value 100.

Note:

a) The game only ends when NO MORE COIN IS LEFT to play with.

b) If a game ends in a draw, Wong is declared the winner. 
Try solving now
02
Round
Medium
Face to Face
Duration40 Minutes
Interview date16 Mar 2023
Coding problem2

This was an online face-to-face technical round conducted on CodePair: HackerRank. So, basically, you have to run and submit (pass all test cases) in the interview round as well (like a normal coding test) on CodePair: HackerRank. Along with that, you should also explain your code and approach to the interviewers. The interviewers were helpful and didn't hesitate to give hints.

1. Minimum Number Of Taps To Water Garden

Hard
15m average time
85% success
0/120
Asked in companies
AppleBNY MellonOla

The gardener wants to water the garden by opening the minimum number of taps. The garden is one-dimensional along the x-axis of length N i.e. the garden starts from point 0 and ends at point N. There are N + 1 tap located at points [0, 1, 2, …, N] in the garden.

You are given an integer N, and an array named “ranges” of size N + 1(0-indexed). The ith tap, if opened, can water the gardener from point (i - ranges[i]) to (i + ranges[i]) including both. The task is to find the minimum number of taps that should be open to water the whole garden, return -1 if the garden can not be watered.

Example :

Watering The Garden

Follow Up:
Can you solve the problem in O(N) time?
Try solving now

2. Money in Bank

Easy
15m average time
85% success
0/40
Asked in companies
PhonePeDaffodil SoftwareD.E.Shaw

Harshit wants to save money for his first car. So, he puts money in the Ninja bank every day.

He starts by putting in ‘1’ rupee on Monday, the first day. Every day from Tuesday to Sunday, he will put in ‘1’ rupee more than the day before. On every subsequent Monday, he will put in ‘1’ rupee more than the previous Monday.

You are given an integer ‘N’, your task is to return the total amount of money he will have in the Ninja bank at the end of the ‘N’th day.

For example :

Given ‘N’ = 2 
On Day 1 = 1
On Day 2 = 2 
Total Amount = 1 + 2 = 3.
Therefore the answer is 3.
Problem approach

Stored each value in an array and used the Fenwick algorithm to return the final sum.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4656 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10141 views
2 comments
0 upvotes