mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-05 00:25:22 +08:00
Add solution 0551
This commit is contained in:
@ -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++
|
||||
|
Reference in New Issue
Block a user