Algorithm · Coinbase · Easy
A distributed system produces log entries from various processes and threads. Each entry arrives as a colon-delimited string adhering to the format " : : : ", where: processId and threadId are alphanumeric identifiers. timestamp is an integer denoting seconds. content is the log message itself. You are given an array of these log strings, logs. Process them and group the entries by their threadId. Return a JSON-like map in which every key is a unique threadId and its value…
Checking your access…