Reverse Nodes in k-Group
Reverse nodes in k-group in a linked list.
Input: head = [1,2,3,4,5], k = 3
Output: [3,2,1,4,5]
Explanation: The first 3 elements are reversed, while the remaining 2 are left untouched since they don't form a complete group.
Recently applied for interview at Phonepe for the backend engineer. Sharing interview experice below.
1. Machine coding: Journey service - Not that difficult question. There are multiple journies, each journey has multiple stages. A user start from the first stage of the journey and move to the next stage when a new event comes and if st…
### Round 1 – Machine Coding / LLD
The first round was a **Machine Coding / LLD round**.
I was given a problem to **design and implement a Logger Library**. I had around **6 hours to complete the coding assignment** and submit the solution to HR in **ZIP format**.
After submission, there was around **1 hour of discussion** with the int…
"what happens if two cars arrive at the same second"
i finished the parking lot. all of it. floors, slots, a strategy for slot allocation, a pricing strategy, ticket issue and exit, running code with a demo in main. fifteen minutes left on the clock and i was feeling good.
then: "you have ten entry gates. two cars pull in at the same instant and there's one compact slot left. walk me throu…
Find the node with the highest edge score in a directed graph.
You are given a directed graph. Calculate the edge score of each node, which is the sum of the labels of all nodes that have an edge pointing to it. Return the node with the highest edge score.
Input: edges = [1,0,1,1,1]
Output: 1
Explanation: Node 1 receives incoming edge…
Find the median from a continuous data stream.
Implement a data structure that allows you to add integers from a continuous data stream and find the median of all elements so far efficiently.
Input: addNum(2), addNum(3), findMedian(), addNum(4), findMedian()
Output: 2.5 then 3.0
Explanation: After adding 2 and 3, the median is 2.5. Af…
**Title:** PhonePe | SDE-1 | OA Experience | August 2026
**Status:** Completed (Solved 1 fully, 2 partially)
**Outcome:** Not shortlisted for interview
**Format:** 4 Questions
---
### Detailed Overview & Problem Formulations
Below are detailed descriptions of the problem logic abstracted from the original test .
#### Q1. Sequential T…
fintech system design interviews are different. heres what phonepe, razorpay, stripe actually ask.
went through interview loops at 4 fintech companies. system design at these places is nothing like "design twitter" — they don't care how you scale to 1B users. they care whether YOU understand what breaks when money is involved.
heres the pattern nobody explains:
**they always test the same 5 constraints:**
1. **idempotency** — if a p…
PhonePe
Reached out to HR directly.
Rounds-
**R1 - Machine Coding Round**
No protocoring and was given 90 minutes to finish and email the solution.
Queston - Hackathon Platform
Three days after that 30 mins call was scheduled to discuss the solution and my approach. Questions around implementation, design patterns, extensibility etc.…