All challenges
Code AnalysisHard 60s

CAS without version on concurrent edit

Two editors load a doc and save. What anomaly occurs?
Starter code
doc = db.get(id)     # both read version 1
doc.body = edit(doc)
db.save(doc)         # unconditionally overwrites

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle