- 16
- 0
- 约1.86万字
- 约 20页
- 2017-06-10 发布于河南
- 举报
java编程题90道(国外英文资料)
java编程题90道(国外英文资料)
Complete array int [] a = {100, 40, 60, 87, 34, 11, 56, 0} quicksort, bubble sort;
1) quick sort
Package the SRC;
/ *
* there are several key points
* what is the middle value of * 1
* what is the comparison between the two I and j
What is the left and right value of the recursive call
* /
Public class QuickSort {/ / QuickSort
Public static void main (String [] args)
Int [] a = {100, 40, 60, 87, 34, 11, 56, 0};
Int left = 0;
Int right = a.l ength - 1;
QuickSort (a, left, right);
/ / the loop displays the array
For (int I = 0; I a.ength; I + +) {
The System is out of order.
原创力文档

文档评论(0)