• cbarrick@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    The article is comparing to the dynamic programming algorithm, which requires reading and writing to an array or hash table (the article uses a hash table, which is slower).

    The naive algorithm is way faster than the DP algorithm.