(프로그래머스) 3진법 뒤집기

유지원·2022년 4월 4일
0

프로그래머스

목록 보기
17/66

문제 링크

https://programmers.co.kr/learn/courses/30/lessons/68935?language=javascript


Javascript

const solution = (n) => {
	return parseInt([...n.toString(3)].reverse().join(""), 3);
}
profile
👋 https://github.com/ujw0712

0개의 댓글