Problem
Problem URL : 자연수 뒤집어 배열로 만들기
[1] Answer Code (18. 07. 24)
vector<int> solution(long long n) {
vector<int> answer;
while (n!=0) {
answer.push_back(n%10);
n /= 10;
}
return answer;
}
[1] Answer Code (18. 07. 24)
- 무난 ~