[LintCode] Sort Integers II 整数排序之二 - Grandyang - 博客园
Given an integer array, sort it in ascending order. Use quick sort, merge sort, heap sort or any O(nlogn) algorithm.
Example
Given [3, 2, 1, 4, 5]
, return [1, 2, 3, 4, 5]
.
Read full article from [LintCode] Sort Integers II 整数排序之二 - Grandyang - 博客园
No comments:
Post a Comment