![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F0LoEQ%2Fbtsn26YzpK4%2FOX8ZvEDl9PzAI6qI1MVBe0%2Fimg.png)
[프로그래머스 Lv0.] 120897번 약수 구하기 (JAVA)
·
Coding Test/프로그래머스[JAVA]
1. 문제 문제 설명 정수 n이 매개변수로 주어질 때, n의 약수를 오름차순으로 담은 배열을 return하도록 solution 함수를 완성해주세요. 제한사항 1 ≤ n ≤ 10,000 입출력 예 n result 24 [1, 2, 3, 4, 6, 8, 12, 24] 29 [1, 29] 2. 풀이과정 class Solution { public int[] solution(int n) { int count = 0; for(int i=1;i