(int[] array, int rank)
| 7 | public class QuestionC { |
| 8 | |
| 9 | public static int rankB(int[] array, int rank) { |
| 10 | int[] cloned = array.clone(); |
| 11 | Arrays.sort(cloned); |
| 12 | return cloned[rank]; |
| 13 | } |
| 14 | |
| 15 | public static void swap(int[] array, int i, int j) { |
| 16 | int t = array[i]; |