← Questions

Speculative edits: decode a code edit using the original file as the draft

0
SpaceXAICodingLast asked Oct 2026

A coding interview question asked in SpaceXAI's technical phone screen, last asked Oct 2026. It tests llm, decoding and inference.

A model rewrites a source file after an edit instruction, and most of its output is the original file copied unchanged. Instead of a small draft model, use the original code itself as the draft: propose the next chunk of original tokens…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

llm · decoding · inference

Your code and the AI tutor open when you unlock this question.