Is stdlib's qsort recursive?

前端 未结 9 1977
执念已碎
执念已碎 2020-12-30 09:19

I\'ve read that qsort is just a generic sort, with no promises about implementation. I don\'t know about how libraries vary from platform to plaform, but assumi

9条回答
  •  臣服心动
    2020-12-30 10:00

    With quicksort, the stack will grow logarithmically. You will need a lot of elements to blow up your stack.

提交回复
热议问题