728x90
SMALL

using System;
using System.Linq;

public class Solution {
    public int[] solution(int[] arr) {
        int min = arr.Min();
        int[] answer = arr.Length < 2 ? new int[1]{-1} : arr.Where(x => x != min).ToArray();
        return answer;
    }
}

 

/// {-1}

728x90

설정

트랙백

댓글