Add solution 0551

This commit is contained in:
halfrost
2021-09-15 03:18:02 -07:00
parent 29880358f0
commit bef7599068
26 changed files with 295 additions and 234 deletions

View File

@ -1,9 +1,7 @@
package leetcode
func checkRecord(s string) bool {
numsA := 0
maxL := 0
numsL := 0
numsA, maxL, numsL := 0, 0, 0
for _, v := range s {
if v == 'L' {
numsL++