halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected]English • 1 year ago

Not my problem sort

infosec.pub

message-square
70
fedilink
755

Not my problem sort

infosec.pub

@[email protected] to Programmer [email protected]English • 1 year ago
message-square
70
fedilink
  • @[email protected]
    link
    fedilink
    48•1 year 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.

    • @[email protected]
      link
      fedilink
      44•1 year ago

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

      • @[email protected]
        link
        fedilink
        English
        13•1 year 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.

        • @[email protected]
          link
          fedilink
          9•1 year ago

          Eh, trillion is a constant

      • @[email protected]
        link
        fedilink
        8•1 year ago

        amortized O(0)

    • YonderEpochs
      link
      fedilink
      9•1 year ago

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

      Well yeah just delete the pointer to it!

      • @[email protected]
        link
        fedilink
        2•1 year ago

        universe.take()

Programmer [email protected]

[email protected]

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
  • 1.33K users / day
  • 5.01K users / week
  • 8.53K users / month
  • 18.6K users / 6 months
  • 27.2K subscribers
  • 1.86K Posts
  • 68.3K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org