Created
March 18, 2020 18:54
-
-
Save BharathKumarS/f9e8d362d5010cb2a0bcacf1fe830d8a to your computer and use it in GitHub Desktop.
LeetCode, Student Attendance Record I
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = 'PAAALLPALLLLLL' | |
reward = True | |
if s.count('A') > 1 or 'LLL' in s: | |
reward = False | |
print(reward) |
Author
BharathKumarS
commented
Mar 18, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment