add-to-array-form-prepend-quadratic-worst-case

Status: IN

When `k` has more digits than `num`, each extra digit triggers an O(n) `list.insert(0, ...)`, making the overflow phase O(d*n) rather than the O(max(n,d)) achievable with append-and-reverse.

Source: entries/2026/06/06/add-to-array-form-of-integer-solution.md

JSON