Earliest Arrival Routing Over Scheduled Laser Inter-Satellite Links

Last updated: November 29, 2026

Quick Overview

Satellites are nodes and laser links are edges with a latency and a list of time windows when the link can start a transmission. Given a source satellite and start time, find the earliest time a packet can reach the destination, allowing it to wait at a satellite.

Spacex
Coding & Algorithms
Software Engineer
Spacex
November 29, 2026
Software Engineer
Onsite
Coding & Algorithms
Hard

0

0

0 solved


Satellites are nodes and laser links are edges with a latency and a list of time windows when the link can start a transmission. Given a source satellite and start time, find the earliest time a packet can reach the destination, allowing it to wait at a satellite.

Starlink's optical mesh changes as satellites move and links are pointed, retargeted, or blocked, so routing is time dependent. This is a SpaceX-style onsite problem for Starlink network software; the interviewer checks whether you can adapt Dijkstra to time-varying edges and argue why it stays correct.

What the Interviewer Expects
  • Model the graph with per-edge availability windows
  • Compute the earliest departure time from a node given the current time with binary search
  • Argue the FIFO property: leaving later never lets you arrive earlier, so Dijkstra is still correct
  • Allow waiting at nodes and stop as soon as the destination is popped
  • State complexity in terms of edges and windows per edge
Key Topics to Cover
time-dependent shortest path
Dijkstra
binary search
FIFO networks
Starlink routing
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
  • What if waiting at a node is not allowed because buffers are tiny?
  • How would you precompute routes for the next 15 minutes for the whole constellation?
  • How would you add a per-hop processing delay or a link capacity limit?
  • How do you handle a link that drops in the middle of a transmission?
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

Undirected links (u, v, latency, windows) where windows is sorted, non-overlapping [start, end) intervals of allowed departure times. A packet at node u at time t may leave at any t' >= t ...

High-Level Design

Run Dijkstra keyed on arrival time. Relaxing edge (u, v) at time t: binary search the window list for the first window that contains t or starts after t, giving the earliest departure, then ar...


Submit Your Answer
Markdown supported

Related Questions