I got this question as an assignment from TechMojo a startup from Hyderabad. I don't understand what exactly they are trying to ask.
Question:
Given a file which contains series of transactional laws of the application
Try to find out the average transaction response time of the application
T1234, 2020-03-01 , 3:15 pm, start
T1235, 2020-03-01 , 3:16 pm, start
T1236, 2020-03-01 , 3:17 pm, start
T1234, 2020-03-01 , 3:18 pm, End
T1235, 2020-03-01 , 3:18 pm, End
My comments:
If they just want the average response time then what I can see is that there are 3 transactions, 2 of them have 3 sec and 2 sec response time, and one either fails to respond or we don't know what happened to that.
The recruiter asked to come up with coding solution for this..!
what do you think??