Problem 1161 · Medium
Sum each level with a breadth-first walk and keep the smallest level index that reaches the largest sum.
Open the interactive visualisation