← Samsung questions
CodingHard

Binary Tree Leaf Nodes to Linked List In-Place

Filed under Samsung

Given the root of a binary tree, convert all its leaf nodes into a singly linked list ordered from left to right in-place. Use the right pointers of the leaf nodes as next pointers.

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.