Find max GCD minus min GCD of tree cousins
Filed under Samsung
The question
Calculate the difference between the maximum GCD and minimum GCD of cousin nodes in a tree.
No write-up yet. Related questions below have one.
Related Samsung questions
Collected from public candidate posts and coding forums. Updated Nov 2026.