Problem 988 · Medium
Read each leaf-to-root path as letters and keep the smallest string; a shorter prefix sorts first.
Open the interactive visualisation