September 2019 No. (Sunday) 8

    Today Sunday morning ceremony to open a new life after 10:00 come back to do a java homework, I do not understand there are two, one is the large number of storage, and the second is simply what sort of. Nothing to look at this site, do not understand that the num = 50, and factorial have anything to do. https://blog.csdn.net/weixin_39033443/article/details/84001576

Look simple choice

// own ideas
// so why not? Do not return a value it? Should not return it to the array row good
@ Why set a minimum value, i is incremented by one anyway
// public static void SelectSort (A int []) {
// for (int i = 0; i <A. length; I ++) {
// for (int I = J +. 1; J <a.length; J ++) {
// int TEMP;
// IF (A [I] <A [J]) {
// A = TEMP [I];
// A [I] = A [J];
// A [I] = TEMP;
//}
//}
//}
//}

 

Look again at the right

 

// how I said call is not output to the output loop about
public static void SelectSort (int A []) {
int min, the TEMP;
for (int i = 0; i <a.length; i ++) {
min = i;
for (int I = J +. 1; J <a.length; J ++) {
IF (A [J] <A [min]) {
min = J;
}
}
IF (! = I min) {
TEMP = A [min ];
A [min] = A [I];
A [I] = TEMP;
}
}
}

 

Then do the math homework, another math class tomorrow, think about the headache, feeling that discrete mathematics is no pretext.

 

Guess you like

Origin www.cnblogs.com/Smileminr/p/11488154.html