• mycus@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 years ago

    oh yeah, it is n * (n - 1)

    bc ~700 bots need to do ~700 minus 1 actions

    a continue inside an if statement checking if the bot domain is the same as the subscribing one would suffice


    or use a search algorithm to pop the element from the stack before starting the loop, that would be more efficient