Greedy Decoding and Speculative Code Edits

Background

Given a prompt containing original source code and editing instructions, an autoregressive model must produce the entire edited file. Because most edits affect only a small portion of t...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: