A Fibonacci tree is a binary tree defined recursively for an integer n:
An order
An order
An order n Fibonacci tree (
Alice and Bob play a game on an order n Fibonacci tree. Alice moves first, and players take turns. In each turn, a player selects any remaining node and removes that node along with its entire subtree. The player who removes the root node loses the game.
Assuming both players play optimally, return true if Alice wins the game, or false if Bob wins.
Constraints:
n
A Fibonacci tree is a binary tree defined recursively for an integer n:
An order
An order
An order n Fibonacci tree (
Alice and Bob play a game on an order n Fibonacci tree. Alice moves first, and players take turns. In each turn, a player selects any remaining node and removes that node along with its entire subtree. The player who removes the root node loses the game.
Assuming both players play optimally, return true if Alice wins the game, or false if Bob wins.
Constraints:
n