Comment

Comment by kevinventullo

As long as the resizing e.g. doubles the size each time, the total running time will still be O(n). Basically because

  1+2+4+...+2^k = O(2^k)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton