SqRtOfProductTree

A programming problem solution

Problem

The blocks in the diagram below are arranged so that the value in each
block is the square root of the product of the two values below it.
Find the number in the top block. Give an exact answer.

               .----------.
               |          |
          .----------.----------.
          |   60.0   |          |
     .----------.----------.----------.
     |          |   36.0   |          |
.----------.----------.----------.----------.
|   625.0  |          |          |  1296.0  |
'----------'----------'----------'----------'

Solution

src/SqRtOfProductTree.kt

GitHub

View Github