My issue
There is problem in the submission
Learning course: Sorting using Java
Problem Link: CodeChef: Practical coding for everyone
There is problem in the submission
Learning course: Sorting using Java
Problem Link: CodeChef: Practical coding for everyone
@parabraviraj14
plzz refer this
import java.util.Scanner;
import java.util.Arrays;
public class Codechef {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int T = scanner.nextInt();
while (T-- > 0) {
int[] values = new int[3];
for (int i = 0; i < 3; i++) {
values[i] = scanner.nextInt();
}
String[] names = {"ALICE", "BOB", "CHARLIE"};
int minIndex = 0;
for (int i = 1; i < 3; i++) {
if (values[i] < values[minIndex]) {
minIndex = i;
}
}
System.out.println(names[minIndex]);
}
}
}