Guest User

Untitled

a guest
Dec 10th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. for i in range(len(inord) - 2):
  2. if (inord[i] >= inord[i + 1]):
  3. return False
  4. return True
  5.  
  6. temp = sorted(inord)
  7. return min([1 if i==j else 0 for i,j in zip(temp,inord)])
Add Comment
Please, Sign In to add comment