Depth-first Unary Degree Sequence
The old Daily Coding Problem email list gave us this problem around 2020:
Daily Coding Problem: Problem #237 [Easy]
A tree is symmetric if its data and shape remain unchanged when it is reflected about the root node. The following tree is an example:
4
/ | \
3 5 3
/ \
9 9
Given a k-ary tree, determine whether it is symmetric.
This problem is less well described than I thought when I worked on it in 2020.