โ† Samsung questions
CodingEasy-Medium

Maximum GCD Difference of Siblings in Binary Tree

Filed under Samsung

Given a binary tree, find the maximum and minimum GCD among all pairs of siblings, then return the difference.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.