Binary Tree Preorder Traversal

Given the root of a binary tree, return the preorder traversal of its nodes' values.

image

Solution

Last updated