SDesign a function that merges offline mobile actions into server state. Each action has an item_id, operation type, timestamp, and op_id; duplicate retries must be ignored, the merge order must be deterministic, and conflicting items must be returned separately.
Design a function that merges offline mobile actions into server state. Each action has an item_id, operation type, timestamp, and op_id; duplicate retries must be ignored, the merge order must be deterministic, and conflicting items must be returned separately.