Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution(object):
- def checkRecord(self, s):
- if s.find('LLL') != -1 : return False;
- ap = s.find('A')
- if ap == -1: return True;
- anp = s.find('A', ap+1)
- print(ap, anp)
- if anp == -1: return True;
- else: return False;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement