Repeat Evolution
834. Sum of Distances in Tree
2 attempts over 493 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 · 22.12.2022
hard834. Sum of Distances in Tree
long
kotlin
fun sumOfDistancesInTree(n: Int, edges: Array
Attempt 2 · 28.04.2024
hard834. Sum of Distances in Tree
standard
kotlin
493 days later
lines -15
chars -120
thoughts 0
Sums of paths to each leafs in a tree
What Changed
Compact generated readout from the first and latest attempts.
-15 lines, -120 chars.
0 lines between first and latest attempt.
14 lines, 540 chars.
0 stuck attempts, 0 one-liner attempts.