PhonePe | SDE- 1 | Bangalore

phonepe logo
phonepe
SDE-1Bangalore, India0.4 yearsRejected
October 21, 202128 reads

Summary

I applied for the SDE-1 role at PhonePe in Bangalore and successfully navigated through three interview rounds, receiving an offer which I ultimately rejected due to other competing opportunities.

Full Experience

My interview process at PhonePe was very smooth, with all rounds concluding within a week. There were a total of three rounds:

  • Online Coding Assessment: This was the first step.
  • DSA-based technical round: In this round, I was asked three programming questions, which were considered to be of medium-hard difficulty.
  • Hiring Manager round: This round focused primarily on discussions about my current company's projects and my understanding of DBMS concepts. A good understanding of my previous company's projects was crucial here.

Although I received an offer, I decided to reject it as I had other competing offers.

Interview Questions (3)

Q1
Contains Duplicate II
Data Structures & AlgorithmsMedium

Given an array of integers nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <= k.
Constraint: 0 <= nums.length <= 10^5, 10^9 <= nums[i] <= 10^9, 0 <= k <= 10^5
Example:
nums = [1,2,3,1], k = 3 => true
nums = [1,0,1,1], k = 1 => true

Q2
K-diff Pairs in an Array
Data Structures & AlgorithmsMedium

Given an integer array nums and an integer k, return the number of pairs (i, j) where i < j and |nums[i] - nums[j]| == k.
Example:
nums = [1,2,2,1], k = 1 => 2 ([1,2] at (0,1) and (3,2))
nums = [1,3,1,5], k = 2 => 1 ([1,3] at (0,1))

Q3
Minimum Switches to Illuminate Binary String
Data Structures & AlgorithmsHard

Given a binary string (e.g., '0110100') where '1' means light is present and '0' means no light. Each switch, when turned on at index i, illuminates indices i-1, i, and i+1. Find the minimum number of switches to turn on to illuminate all '0's in the string.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!