Maximize distinct values after unique ± offsets
Company: xAI
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: hard
Interview Round: Technical Screen
Overview: This question evaluates combinatorial reasoning and algorithmic optimization skills, focusing on transforming arrays under distinct integer-offset constraints and reasoning about uniqueness of resulting values.
Read the full xAI Software Engineer interview experience this question came from