Problem 3881 · Medium

Direction Assignments with Exactly K Visible People

Count direction choices for a line of people so that a chosen position sees exactly k others.

Open the interactive visualisation