[코딩테스트] Find divisors of a number


[코딩테스트] Find divisors of a number

Find divisors of a numberFind the number of divisors of a positive integer n.Random tests go up to n = 500000.Examples :divisors 4 = 3 -- 1, 2, 4divisors 5 = 2 -- 1, 5divisors 12 = 6 -- 1, 2, 3, 4, 6, 12divisors 30 = 8 -- 1, 2, 3, 5, 6, 10, 15, 30→ 주어진 숫자 n을 깨끗하게 나누는 숫자 개수[Test Frame]※ 코딩 테스트를 대하는 개인적인 생각정답은 없다. 다만, 멋진 접근이 있을 뿐.중요한 것은 빠르게 판단하고 해결하는 것이라고 생각한다.코딩이 당장은 스스로 부끄러워도 상관없다.10분이 지나도 시작을 못한다면 받아들여야 한다.다만, 이러한 것은 아직 학습이나 경험이나 숙련 등이..........



원문링크 : [코딩테스트] Find divisors of a number