This is a visualization intended to illustrate a BFS solution of the perfect square problem on Leetcode. Following is the link to the problem and the BFS solution.

Perfect Squares Problem
BFS Solution

Input a number to start the animation. A queue is used to go through the BSF tree. Nodes are colored green when they are added in the queue. They become white after being pushed out from the queue. After the animation, hovering over each node will show the path to the root node and a tooltip with the squares associated with the current node.