Hello friends can someone tell me how to approach this problem ? I am getting WA.
Here is my latest submission. If it’s too messy, here is the approach I used :
n =readInt() arr = readInts() count = 0 for i in range(len(arr)): count+=1 f =0 minus = arr* for j in range(len(arr)): arr[j]-=minus for j in range(len(arr)): if arr[j]>0: f =1 if f==0: break print(count)