Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by jstimpfle

2 years ago

It's only as expensive as what you pass in. Joke's on you.

3 comments

jstimpfle

Reply

saagarjha  2 years ago

qsort is also only as expensive as what I pass in. If it did a bubble sort internally I would be pretty upset though.

  • jstimpfle  2 years ago

    What? snprintf is nothing like doing an O(n^2) computation when O(n log n) was expected.

    • saagarjha  2 years ago

      Right, it’s more like O(m) when you probably wanted O(n).

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities