Recently I had the oppourtunity to go through the recruitment process of PhonePe for the SDE Intern position for the summer of 2027 (Location - Bangalore/Pune). I'm sharing the problems here for anyone who might find it helpful!
It was fully based on DSA (2 problems were asked). No other discussion whatsoever. We were supposed to write the code on paper.
This exact problem: https://leetcode.com/problems/shortest-bridge/description/
You are given an array of length n, where each element represents the coverage range of that index. If you choose an index i with value > 0, it covers all positions from i - value to i + value (inclusive), with the coverage clipped to the array boundaries. The chosen element also covers itself as part of this range. And, if arr[i] = 0, choosing that index provides no coverage at all, including not covering itself. Your task is to select the minimum number of indices such that every position in the array is covered by at least one selected index. If it is impossible to cover the entire array regardless of which indices are chosen, return -1.
Here's the LC equivalent : https://leetcode.com/problems/minimum-number-of-taps-to-open-to-water-a-garden/description/
Again, fully based on DSA.
You are given a string consisting of lowercase English letters ('a'–'z'). A substring is said to be balanced if it contains an equal number of vowels and consonants. The vowels are {a, e, i, o, u}, and every other lowercase letter is considered a consonant. Your have to determine the total number of balanced substrings in the given string.
This exact problem: https://leetcode.com/problems/shortest-path-in-a-grid-with-obstacles-elimination/description/