Question: in this solution above in the second example the output is 300 Input: [1:10pm, 4s40an, 5:00pm] Output: 230 Input: [10se0sa, 11s45p:, 5:cesa, 12:01an] Output: 16

in this solution above in the second example the output is 300
![300 Input: ["1:10pm", "4s40an", "5:00pm"] Output: 230 Input: ["10se0sa", "11s45p:", "5:cesa", "12:01an"]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f46326bf05e_19866f4632625ec7.jpg)

Input: ["1:10pm", "4s40an", "5:00pm"] Output: 230 Input: ["10se0sa", "11s45p:", "5:cesa", "12:01an"] Output: 16 Have the function Iimedifference (straxx) read the array of strings stored in stxaxx which will be an unsorted list of times in a twelve-hour format like so: HH:MM(am/pm). Your goal is to determine the smallest difference in minutes between two of the times in the list. For example: if straxr is ["2:10pm", "1:30pm", "10:30am", "4:42pm"] then your program should return 40 because the smallest difference is between 1:30pm and 2:10pm witlya difference of 40 minutes. The input array will always contain at least two elements and all of the elements will be in the correct format and unique. TimeDifference (strArr)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
