Written by
java-style
on
on
[JAVA] 프로그래머스 나누어 떨어지는 숫자 배열
[JAVA] 프로그래머스 나누어 떨어지는 숫자 배열
728x90
알고리즘
JAVA 프로그래머스 나누어 떨어지는 숫자 배열
1. 문제
https://programmers.co.kr/learn/courses/30/lessons/12910
2. 풀이
쉬운듯 어려운듯 쉬운문제.....
배열과 리스트의 차이를 알게해준문제!! => 참고자료
import java.util.*; class Solution { public int[] solution(int[] arr, int divisor) { int[] answer = {}; //배열을 리스트로 전환하기 위한 과정 ArrayList list = new ArrayList(); for(int i=0; i
728x90
from http://yuricoding.tistory.com/56 by ccl(A) rewrite - 2021-11-11 03:01:57