Flag GPUs With Sustained Overheating From Telemetry Samples

Last updated: November 29, 2026

Quick Overview

Given unsorted telemetry samples (timestamp, gpu_id, temperature) and a threshold T, return the sorted ids of GPUs that have at least k consecutive samples strictly above T.

Nebius
Coding & Algorithms
Software Engineer
Nebius
November 29, 2026
Software Engineer
Phone Screen
Coding & Algorithms
Easy

0

0

0 solved


Given unsorted telemetry samples (timestamp, gpu_id, temperature) and a threshold T, return the sorted ids of GPUs that have at least k consecutive samples strictly above T.

Nebius runs large fleets of H100 and B200 nodes in its own data centers, and fleet health tooling is a common theme for infrastructure roles. This screen checks basic grouping, sorting, and streak counting, plus whether you think about noisy telemetry rather than flagging on a single spike.

What the Interviewer Expects
  • Groups samples per GPU and sorts by timestamp
  • Resets the streak on any sample at or below threshold
  • Stops scanning a GPU once it is flagged
  • Returns a deterministic, sorted result
  • Discusses why consecutive samples are better than a single spike
Key Topics to Cover
grouping
sorting
streak counting
telemetry
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • Samples can be missing; how would you treat a gap longer than the expected interval?
  • How would you make this streaming so a GPU is flagged the moment the k-th hot sample arrives?
  • How would you pick T and k so the auto-drain system does not flap?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice DSA Problems
Sample Answer
Requirements

Samples may arrive out of order and interleaved across GPUs. A GPU is flagged if, in timestamp order, it has a run of at least k samples with temp > T. Output is a sorted list of GPU ids....

High-Level Design

Build gpu_id -> [(ts, temp)], sort each list, then scan with a counter that increments on a hot sample and resets to zero otherwise. As soon as the counter reaches k, record the GPU and break....


Submit Your Answer
Markdown supported

Related Questions