0 day streak
Anonymous · shared experience20 Aug 2026 · 9 views

Nutanix: Peak memory usage and its time window from process intervals

Interview question #Nutanix SDE 3 / Senior DSA / coding

Problem. You get a list of processes. Each has a start time, an end time and the memory it uses while running. Find the peak total memory in use at any moment, and report the start and end times of the interval where that peak holds.

Format details.

  • You define your own Process class and return the result as an object.
  • Input and output use competitive-programming style (read from stdin, write to stdout), not a function stub.

What the interviewer cared about. Correct handling when several processes start or end at the same moment. You need a clear rule for ordering simultaneous start and end events in a sweep, and for how the peak interval's boundaries are reported. The candidate got this question wrong.

Context. Senior-level interview. The second question was a maximum-probability path in an undirected network with per-edge success probabilities (Dijkstra with a max-heap), followed by questions on implementation details and complexity. The candidate solved it but was rejected two days later.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.