Java 풀이
class Solution {
public int[] solution(int[] arr) {
int[] answer = new int[arr.length - 1];
int temp = arr[0];
for(int i = 0; i < arr.length; i++) {
if(temp > arr[i]) {
temp = arr[i];
}
}
int k = 0;
for(int i = 0; i < arr.length; i++) {
if(temp < arr[i]) {
answer[k] = arr[i];
k++;
}
}
return answer;
}
}