Search
⌘K
Get Premium
Leetcode 3206. Alternating Groups I
Count how many length-3 contiguous segments in a circular binary array have the middle tile different from both neighbors (equivalently the two neighbors are equal and opposite to the middle).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.