← Back to Dashboard

xAI Interview Questions

Curated from verified interview reports: a Coding + OA slate spanning distributed systems (config stores, token caches, credit managers, GPU node failure detection), parallel sorting, and tokenization.

7 real interview questions reported from xAI Software Engineer interviews (Coding, OA rounds): 1 easy, 6 hard. Each question shows its interview round and how often it was reported, and coding questions come with runnable tests.

xAI Coding round questions (6)

  • Parallel Segment Sort - Easy, free preview
    Split the input into near-even contiguous chunks, sort each chunk, then merge the sorted runs efficiently.
  • API Credit Manager - Hard, free preview
    Keep per-account API credit balances that refill lazily in whole intervals, follow separate policies and never exceed their cap.
  • Token Cache - Hard
    Implement a radix-style cache for integer token sequences with shared prefixes and efficient prefix queries.
  • Config Store - Hard
    Build a transactional in-memory configuration store with nested begin/commit/rollback semantics.
  • Phrase Tokenizer - Hard
    Retokenize a space-separated sentence by greedily merging the longest matching dictionary phrase.
  • GPU Node Failure Detection - Hard, reported 1×
    Use only group tests of size at least two to find all faulty nodes under the guarantee that healthy nodes are the strict majority.

xAI OA round questions (1)