logoalt Hacker News

im3w1lyesterday at 1:56 PM0 repliesview on HN

This might work really well in practice idk, but I think it's not allowed by big O to pick a maximum supported size. Otherwise you could just make a lookup table. Your algorithm must be ready for anything.