我想优化我的代码的性能和精细调整的逻辑。import java.util.List;import java.util.Scanner;import java.util.Comparator;
* Created by ShrivasA on 1/30/2015./* Take an Element and Apply the following conditions:
1. The elemen
所以我在我的程序中使用了快速排序,但是现在我想把我的复杂度降低到O(n)。我需要用桶排序才能让它正常工作。我用快速排序法成功地让这件事生效了。然而,我没有得到正确的输出桶排序,我也不知道为什么,因为我的代码似乎是正确的。void Bucket_Sort(int array[], int n) int i, j; for(i=0; i