- 0
Notifications Mark All Read
- Login
- Get Prime
Problem 13
Access Denied!
To view this page you have to login first
Login here -
Trivia
Did you know 1 million people use PrepInsta everyday?
Notifications Mark All Read
To view this page you have to login first
Login here -
Did you know 1 million people use PrepInsta everyday?
def minOpers(arr):
m = min(arr)
n = len(arr)
da = [0]*n #dynamic array
for i in arr:
for j in range(n):
req = i-(m-j)
req = req//5 + (req%5)//2 + (req%5)%2
da[j]+= req
return min(da)