𝐏𝐡𝐨𝐧𝐞𝐏𝐞 | 𝟏-𝟑 𝐲𝐫𝐬 𝐞𝐱𝐩 | 𝐑𝐞𝐣𝐞𝐜𝐭𝐞𝐝
When I was trying to make a switch I was given an interview for Phonepe here is an interview experience.
Round 1- Machine Coding
It involved solving a LLD problem given 2hrs before the time for submission, post which their was a discussion over the submitted solution with a Senior SDE, discussing tradeoff b/w different scenarios and approach for solution.
This round went pretty well.
Round 2- PS/DS
This round was taken by a senior SDE, 2 questions were asked and 1 puzzle
Chocolate distribution problem ( Greedy):
Given an array arr[] consisting of N positive integers representing the ratings of N children, the task is to find the minimum number of candies required for distributing to N children such that every child gets at least one candy and the children having the higher rating get more candies than its neighbours.
Examples:
Input: arr[] = {1, 0, 2}
Output: 5
Explanation:
Consider the distribution of candies as {2, 1, 2} that satisfy the given conditions. Therefore, the sum of candies is 2 + 1 + 2 = 5, which is the minimum required candies.
I was able to solve this problem in optimal TC.
Here the interviewer wanted a solution better than BFS, I wasn't able to optimise it further from BFS.
3.Puzzle:
Given a function rand6() that returns random numbers from 1 to 6 with equal probability, implement one-liner function rand12() using rand6() that returns random numbers from 1 to 12 with equal probability.
This puzzle is explained in GFG, I provided few solutions but there was issue with equal probability and interviewer was looking for the exact solution.
Round 3- HM
This round was taken by Senior Engeering Manager, the discussion revolved around standard behavioral questions along with some technical questions on my past experience. Few questions were:
Why are you looking for a switch?
Tell about a recent project?
What datastore is used in your team, sql vs nosql?
How do you keep yourself up-to-date with new technologies?
Verdict: Rejected, majorly due to my low confidence in HM round.