mirror of
https://github.com/lWolvesl/leetcode.git
synced 2026-06-04 02:21:15 +08:00
8 lines
108 B
Go
8 lines
108 B
Go
package main
|
|
|
|
import "strings"
|
|
|
|
func checkOnesSegment(s string) bool {
|
|
return !strings.Contains(s, "01")
|
|
}
|