-
[TIL] Algorithm 4Develope/Algorithm 2020. 5. 19. 11:35
1. 문제
2. 결과
const sameReverse = num => { let strings = num.toString().split("").reverse().join(''); strings = Number(strings); let result; if(num === strings) { result = true; }else { result = false; } return result; } sameReverse(2);
'Develope > Algorithm' 카테고리의 다른 글
[TIL] Algorithm 6 (0) 2020.07.20 [TIL] Algorithm 5 (0) 2020.05.20 [TIL] Algorithm 3 (0) 2020.05.19 [TIL] Algorithm 2 (0) 2020.05.13 [TIL] Algorithm 1 (0) 2020.05.13