Skip to content

Instantly share code, notes, and snippets.

Avatar

Roman Khramshin HollyGurza

View GitHub Profile
View twitterinterview.py
walls = [2,3,4,0,1,3,1,5,4,3,4,0,1,2,0,1,0,2,0,4]
lmax=0;
total=0;
copen=0;
buff=0;
print "\n-----------BEGIN ALG-----------\n"
if walls[0]>walls[1]:
lmax=walls[0];
copen=1;
for i in range(1, len(walls)):