You are viewing a single comment's thread. Return to all comments →
Guys here's my code:
Just keep traversing from left to right and keep track of the number larger than your previous maximum.
count=0 //Keeps track of number of turns played
m=0 //Maximum Number
for i in arr: