• yetAnotherUser@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    11 months ago

    Why would you use a pile out of all data structures, only adding is in ϴ(1), searching is in ϴ(n).

    I suggest throwing the clothes on the floor and remembering the spot they landed on. That’s ϴ(1) for adding and for searching, far superior to a stack of clothes on a chair.

    Side note: fuck big O notation, use big ϴ notation >:(