• Lojcs@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 days ago

    It is quite reasonable to limit the average case O to the most common inputs with the caveat that it can be worse otherwise. It’s not like every arithmetic operation is counted as O(n) in Python for example as you aren’t expected to use numbers larger than 2^32 often