You are viewing a single comment's thread. Return to all comments →
def solve(total_number_of_jars, operations): total_candies = 0 for operation in operations: number_of_jars = operation[1] - operation[0] + 1 total_candies += operation[2] * number_of_jars return total_candies // total_number_of_jars
Seems like cookies are disabled on this browser, please enable them to open this website
Filling Jars
You are viewing a single comment's thread. Return to all comments →