Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. Trading Outage On a given day, Akuna makes at least one trade each second. However, there is a blip - a temporary outage -
3. Trading Outage On a given day, Akuna makes at least one trade each second. However, there is a blip - a temporary outage - on the exchange side such that some trades are m issing. You will be given the raw trade timestamps from the exchange as a list of strings. Find and return the trades immediately before and after the outage, separated by a dash. Assume input timestamps may not be sorted, and there may be multiple trades in a single second. Example 1 Input: ["12:31: 04. 04", "12:31: 05.01", "12:31:06.21", "12:31: 14.39", "12:31:15.13" "12 : 31 : 16. 98", "12: 31:17.09"] Output: 12: 31: 06. 21-12: 31: 14. 39 Example 2 Input: ["00 : 00: 01. 00", "90: 00: 02. 08", "90:00: 02.93", "00:00:12.43"] Output: 00 : 00 : 02.93-00:00:12.43
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started