Software Engineer • Senior-Level
San Francisco, CA, US
Passed
Software Engineer • Senior-Level
Round Type
Onsite
Interview Date
Jan 3, 2026
Interview Process
3 rounds
Interview Source
Not provided
Prep Other Coding Questions Asked by xAI
Continue with targeted prep from xAI's coding question bank.
Interview Summary
Round 1: Coding
Question: Calculate the total active hours of each Twitter space, given operation records.
Round 2: Coding Follow-up
Question: Generate top-k spaces with the largest number of users in real time.
Round 3: System Design
Question: Design the backend system for a checkers chess game.
Interview Details
The first coding question was:
Given following records (operation, twitter_space, user, timestamp), return the total active hours of each twitter space.
Input: ["create", "abc", "user_1", "1234567000] ["join", "abc", "user_2", "1234567100] ["leave", "abc", "user_2", "1234567300] ["create", "def", "user_2", "1234568000] ["leave", "def", "user_2", "1234568500] ["leave", "abc", "user_1", "1234569000] Output: {"abc": 2200, "def": 500}Input: ["create", "abc", "user_1", "1234567000] ["join", "abc", "user_2", "1234567100] ["leave", "abc", "user_2", "1234567300] ["create", "def", "user_2", "1234568000] ["leave", "def", "user_2", "1234568500] ["leave", "abc", "user_1", "1234569000] Output: {"abc": 2200, "def": 500}
Explanation: user1 在abc一共呆了2000, user2在abc一共呆了200, user2在def一共待了500
For this, I used a hashmap to record each user's entry and exit records for each
Unlock Full Details
Create a free account to unlock this interview experience report.