Python one more contribution


  • 0
    W

    class so():
    def water(self,x):
    new=[]
    for i,j in enumerate(x):
    step = 1
    while (step+i)!=len(x):
    amount = step*(min(int(j),int(x[step+i])))
    new.append(amount)
    step = step+1
    print(max(new))


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.