InterviewDB
Question
Writing Application: Collaborative Document Editor with Conflict Resolution
Question Details
Problem Design a class DocumentEditor that simulates a collaborative writing application. Multiple users can apply edits (insertions and deletions) concurrently. Edits are timestamped; when two edits conflict at the same position, the one with the earlier timestamp wins. Implement the following operations: Example Follow-ups How would you implement an undo/redo stack per user? What data structure best supports efficient insert/delete by position? (Rope, gap buffer?) How does your conflict resolu…
Full Details
🔒
Unlock all Karat questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a karat interview.