You are viewing a single comment's thread. Return to all comments →
Can anyone helps me to take a look why the code below encountered three failed test cases? Thank you so much!
def minimumLoss(price): # Write your code here diff = [x[0] - x[1] for x in itertools.combinations(price, 2)] return min([x for x in diff if x > 0])
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Loss
You are viewing a single comment's thread. Return to all comments →
Can anyone helps me to take a look why the code below encountered three failed test cases? Thank you so much!