LeetCodeCheck if Binary String Has at Most One Segment of OnesCheck if Binary String Has at Most One Segment of OnesEasyStringSolution export function checkOnesSegment(s: string): boolean { return !s.includes('01'); }LeetCodeCheck if Binary String Has at Most One Segment of Oneshttps://leetcode.com/problems/check-if-binary-string-has-at-most-one-segment-of-ones