Algorithm/카카오1 [Algorithm][프로그래머스] - 오픈채팅방 문제 링크 https://school.programmers.co.kr/learn/courses/30/lessons/42888?language=java 내 풀이 import java.lang.*; import java.util.*; class Solution { public String[] solution(String[] record) { List answer = new ArrayList(); Map map = new HashMap(); for(String r : record) { String[] log = r.split(" "); String type = log[0]; String uId = log[1]; String oId = log.length == 2 ? "" : log[2]; if(!type.eq.. 2022. 9. 5. 이전 1 다음