UmU
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
0x4E4F@infosec.pub to Programmer Humor@programming.devEnglish · 6 months ago

Not my problem sort

infosec.pub

message-square
70
fedilink
768

Not my problem sort

infosec.pub

0x4E4F@infosec.pub to Programmer Humor@programming.devEnglish · 6 months ago
message-square
70
fedilink
  • frezik@midwest.social
    link
    fedilink
    arrow-up
    48
    ·
    6 months ago

    You still have to check that it’s sorted, which is O(n).

    We’ll also assume that destroying the universe takes constant time.

    • BatmanAoD@programming.dev
      link
      fedilink
      arrow-up
      44
      ·
      6 months ago

      In the universe where the list is sorted, it doesn’t actually matter how long the destruction takes!

      • groet@feddit.org
        link
        fedilink
        English
        arrow-up
        13
        ·
        6 months ago

        It actually takes a few trillion years but its fine because we just stop considering the “failed” universes because they will be gone soon™ anyway.

        • MBM@lemmings.world
          link
          fedilink
          arrow-up
          9
          ·
          6 months ago

          Eh, trillion is a constant

      • FiskFisk33@startrek.website
        link
        fedilink
        arrow-up
        8
        ·
        6 months ago

        amortized O(0)

    • Benjaben@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      6 months ago

      We’ll also assume that destroying the universe takes constant time.

      Well yeah just delete the pointer to it!

      • PoolloverNathan@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        6 months ago

        universe.take()

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 765 users / day
  • 4.51K users / week
  • 9.01K users / month
  • 17.3K users / 6 months
  • 2 local subscribers
  • 23.1K subscribers
  • 1.25K Posts
  • 39.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org