Repeat Evolution
1026. Maximum Difference Between Node and Ancestor
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 · 9.12.2022
medium1026. Maximum Difference Between Node and Ancestor
standard
kotlin
fun maxAncestorDiff(root: TreeNode?): Int {
Attempt 2 · 11.01.2024
medium1026. Maximum Difference Between Node and Ancestor
compact
kotlin
398 days later
lines -3
chars -218
thoughts 0
Max diff between node and ancestor in a binary tree.
What Changed
Compact generated readout from the first and latest attempts.
-3 lines, -218 chars.
0 lines between first and latest attempt.
10 lines, 249 chars.
0 stuck attempts, 0 one-liner attempts.