KaratSoftware Engineer · OnsiteCodemia practiceReplay Out Of Order Editor Events Into Final Code
A shared coding pad sends edit events (sequence number, insert or delete, position, text or length) that can arrive out of order and duplicated by retries. Rebuild the buffer by applying events in sequence order, stop at the first missing sequence number, and report how many were applied and where the gap is.
Medium
Coding & Algorithms