Is the sorting algorithm used by .NET's `Array.Sort()` method a stable algorithm?

前端 未结 5 1162
灰色年华
灰色年华 2020-11-29 07:44

Is the sorting algorithm used by .NET\'s Array.Sort() method a stable algorithm?

5条回答
  •  猫巷女王i
    2020-11-29 08:21

    No, it isn't:

    This method uses the QuickSort algorithm. This implementation performs an unstable sort

提交回复
热议问题