Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class Solution(object):
  2. def checkRecord(self, s):
  3. if s.find('LLL') != -1 : return False;
  4. ap = s.find('A')
  5. if ap == -1: return True;
  6. anp = s.find('A', ap+1)
  7. print(ap, anp)
  8. if anp == -1: return True;
  9. else: return False;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement