After OA, I got an invite for virtual rounds.
OA - has 2 questions
- calling an external API, and return results based on some filters
- Binary search based (didn't remeber exactly)
Round 1 (DSA)
Discussion about past projects mentioned on resume, followed by below question.
Design a function that receives a sequenceNumber and a payload. Payloads are expected to be processed in increasing sequence order, starting from sequence number 1.
Whenever a new payload arrives, the function should immediately release all contiguous payloads starting from the next expected sequence number.
If payloads arrive out of order, they should be buffered until all preceding payloads have been received.
Each payload must be released exactly once and should never be released again.
Input:
(2, "B") -> Output: []
(1, "A") -> Output: ["A", "B"]
(4, "D") -> Output: []
(3, "C") -> Output: ["C", "D"]
(2, "B") -> Output: [] // Already released, ignore
(5, "E") -> Output: ["E"]
I will keep this page updated as I progress through the interview process.


