switch (i) {
case 0 -> backTracking(depth + 1, value + numbers[depth]);
case 1 -> backTracking(depth + 1, value - numbers[depth]);
case 2 -> backTracking(depth + 1, value * numbers[depth]);
case 3 -> backTracking(depth + 1, value / numbers[depth]);
}
JavaScript
복사