Answered step by step
Verified Expert Solution
Link Copied!

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 -

image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions