Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.