← Samsung questions
CodingMediumReported in a candidate post, Aug 2022

Binary Tree Maximum Path Sum and First Unique Character

Filed under Samsung

Given a binary tree, find the maximum path sum where a path can start and end at any node in the tree. Additionally, find the first non-repeating character in a string in O(N) time.

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.