Problem 779 · Medium

K-th Symbol in Grammar

Follow the k-th symbol up to its parent in the previous row, flipping when it is the second child.

Open the interactive visualisation