The Meissner's
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@sh.itjust.works to Programmer Humor@lemmy.mlEnglish · 1 year ago

O of what now

sh.itjust.works

external-link
message-square
6
fedilink
2
external-link

O of what now

sh.itjust.works

alphacyberranger@sh.itjust.works to Programmer Humor@lemmy.mlEnglish · 1 year ago
message-square
6
fedilink
alert-triangle
You must log in or register to comment.
  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year 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⁷.”

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 year 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)

  • hperrin@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year 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
      ·
      1 year ago

      Ok. What about n=5?

      • hperrin@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

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

          That does seem to be a tad inefficient.

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.

  • 28 users / day
  • 87 users / week
  • 781 users / month
  • 10 users / 6 months
  • 0 local subscribers
  • 32.9K subscribers
  • 531 Posts
  • 1.23K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org