Repeat Evolution
129. Sum Root to Leaf Numbers
2 attempts over 398 days. This page compares how the solution size, thinking trace, and stuck markers changed between posts.
Timeline Shape
Bars are normalized inside this problem, so the widest bar is the largest attempt in that metric.
Attempt Gallery
Each card is a daily post, with local deltas from the previous attempt.
Attempt 1 · 14.03.2023
medium129. Sum Root to Leaf Numbers
standard
kotlin
The most trivial way is to keep sum variable outside the dfs function.
Attempt 2 · 15.04.2024
medium129. Sum Root to Leaf Numbers
tiny
kotlin
398 days later
lines -9
chars -87
thoughts 0
Sum root-leaf numbers in a Binary Tree
What Changed
Compact generated readout from the first and latest attempts.
-9 lines, -87 chars.
0 lines between first and latest attempt.
4 lines, 193 chars.
0 stuck attempts, 0 one-liner attempts.