lemmy rldn
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@sh.itjust.works to Programmer Humor@lemmy.mlEnglish · 2 years ago

O of what now

sh.itjust.works

message-square
8
link
fedilink
10

O of what now

sh.itjust.works

alphacyberranger@sh.itjust.works to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
8
link
fedilink
alert-triangle
You must log in or # to comment.
  • Mikina@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    O(fuck)

  • hperrin@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    O(n!n!)

    It works really well, until n=3, which takes a while. Don’t ask about n=4.

    • Alexstarfire@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Ok. What about n=5?

      • hperrin@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        • Alexstarfire@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          That does seem to be a tad inefficient.

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    at job interview

    “ah sure, I’ll solve it in n log(n) for you with an obscure algorithm because n² is too slow for your 1000 customers, even though there’s no perceived difference for n<10⁷.”

  • puchaczyk@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    O(TREE(n))

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Acshually, in the context of O(N^2) N can be seen to constantly be equal to N and thus, as a constant, we can ignore it in our O analysis.

    Yes, my bubble sort does run in O(1)

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: !programmerhumor@lemmy.ml

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.

  • 1 user / day
  • 1 user / week
  • 2 users / month
  • 36 users / 6 months
  • 1 local subscriber
  • 43.5K subscribers
  • 1.36K Posts
  • 10.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org