My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 days ago

timeoutSort

lemmy.ml

message-square
9
fedilink
  • cross-posted to:
  • [email protected]
97

timeoutSort

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 days ago
message-square
9
fedilink
  • cross-posted to:
  • [email protected]
  • LadyMeow@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    9
    ·
    9 days ago

    I mean, it’s basically O(1), right? :p

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      14
      ·
      9 days ago

      I mean, it does scale with the size of the input. Just not with the count of inputs, but rather the size of each input element.

      • jimmux@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        9 days ago

        Or just the size of the largest input?

        • Ephera@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 days ago

          Oh yeah, I do think setTimeout executes in parallel, so only the largest element determines the execution time. It was difficult enough to make that sentence make sense, so I didn’t want to cram that detail in as well. 🙃

    • marduk@lemmy.sdf.org
      link
      fedilink
      arrow-up
      4
      ·
      6 days ago

      O(shit)

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 157 users / day
  • 605 users / week
  • 2.2K users / month
  • 7.92K users / 6 months
  • 1 local subscriber
  • 39.1K subscribers
  • 1.89K Posts
  • 34.7K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org