← CodeNation questions
CodingReported in a candidate post, Apr 2022

Minimum Pigeons Direction Switch

Filed under CodeNation

The question

Given a string representing directions of pigeons facing left or right in a row, find the minimum number of pigeons whose direction must be switched so that no two pigeons face each other.

No write-up yet. Related questions below have one.

Related CodeNation questions

Collected from public candidate posts and coding forums. Updated Nov 2026.