programmers 181858 java
[프로그래머스, 181858] 무작위로 K개의 수 뽑기 (java)
https://school.programmers.co.kr/learn/courses/30/lessons/181858 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 95.5 MB, 시간: 1.62 ms사용 알고리즘: 구현, 자료구조import java.util.*;class Solution { public int[] solution(int[] arr, int k) { // 중복 체크를 위한 Set Set set = new HashSet(); int[] answer = new int[k]; int index = 0;..