Algorithm · Meta · Medium
Given a collection of timestamped log entries, arrange the records according to the required business ordering. Each entry is provided as a string. When entries use inconsistent timestamp layouts, first normalize them into a common representation so they can be ordered correctly. Example Input: Output: The second entry comes first because its timestamp is earliest, followed by the June 2 and June 3 records. Constraints logs is a list of strings. Every log contains a…
Checking your access…