코드 한 줄

[Question] 4. 정수 n에 대하여 팰린드롬인지 알아내기 본문

Develop -/Mail Programming

[Question] 4. 정수 n에 대하여 팰린드롬인지 알아내기

Ahntenna 2018. 2. 13. 19:36

* 본 문제와 풀이의 저작권은 매일프로그래밍에 있습니다.






먼저, 팰린드롬(palinedrome)이란 앞에서부터 읽으나 뒤에서부터 읽으나 똑같은 단어를 말한다.



정수 n에 대하여 팰린드롬인지 알아내는 방법을 구현하면 되고, 정수를 문자열로 변경해서는 안된다.





예제}



Input : 12345


Output : False


Input : -101


Output : False


Input : 11111


Output : True


Input : 12421


Output : True











Comments