Binary Tree Coloring Game

medium
https://leetcode.com/problems/binary-tree-coloring-game/

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input

        
Output

        
Previous
Populating Next Right Pointers In Each Node

Related Questions