[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค Lv1] ์™„์ฃผํ•˜์ง€ ๋ชปํ•œ ์„ ์ˆ˜ | ์ž๋ฐ”
ยท
๐Ÿ“ Coding Test/Programmers Lv1
๋ฌธ์ œ์™„์ฃผํ•˜์ง€ ๋ชปํ•œ ์„ ์ˆ˜ํ’€์ด 1import java.util.*;class Solution { public String solution(String[] participant, String[] completion) { ArrayList compList = new ArrayList(Arrays.asList(completion)); for(String part : participant) { int idx = compList.indexOf(part); if(idx != -1) { compList.remove(idx); } else { return part; ..