You are viewing a single comment's thread. Return to all comments →
def workbook(n, k, arr): page = 0 count = 0 for i in range(n): page+=1 for j in range(arr[i]): if((j+1) == page): count+=1 if((j+1) % k == 0 and (j+1) != arr[i]): page+=1 return count
Seems like cookies are disabled on this browser, please enable them to open this website
Lisa's Workbook
You are viewing a single comment's thread. Return to all comments →