Some error occured while loading page for you. Please try again.
You are viewing a single comment's thread. Return to all comments →
I use max function in list. 7 out of 8 test cases work. I am not sure what's wrong with my code. Can you please have a look ?
n1=input().strip() # Input age value
b1=input().strip().split() # Input list of candle heights
for i in b:
if i == z:
c += 1