Ghost leg
Source: IMOC 2023 C4
September 9, 2023
combinatorics
Problem Statement
A ghost leg is a game with some vertical lines and some horizontal lines. A player starts at the top of the vertical line and go downwards, and always walkthrough a horizontal line if he encounters one. We define a layer is some horizontal line with the same height and has no duplicated endpoints. Find the smallest number of layers needed to grant that you can walk from on the top to any permutation on the bottom.