IBM CIC, Recent Online Assessment Questions | Unordered Event Logs | 2026
IBM · Question · Posted Mar 2026
Problem Statement: Unordered Log Processing A distributed system generates event logs. Due to a network issue, logs arrived out of order and some were duplicated. Each log entry has the format T<timestamp>:<event_id> where the timestamp is a non-negative integer. Given N such log strings (with duplicates possible), you must: Deduplicate: If entries have the same timestamp and the same event_id, they are duplicates. Keep only one. Sort: Sort by timestamp in ascending order. Break ties by sorting the event_id lexicographically. ...
The full answer & interview discussion are available to premium members.
Log in Create a free account