[UVA][Tree] 11350 - Stern-Brocot Tree
K - Stern-Brocot Tree
Time Limit: 1 sec
Memory Limit: 16MB
In number theory, the Stern-Brocot tree is a method of listing all
non-negative rational numbers as well as a point representing infinity
(here represented formally as 1/0).
The tree may be created by an ...