개발노트&IT/코딩테스트
[프로그래머스|Level.1] 자연수 뒤집어 배열로 만들기
문제 설명 자연수 n을 뒤집어 각 자리 숫자를 원소로 가지는 배열 형태로 리턴해주세요. 예를들어 n이 12345이면 [5,4,3,2,1]을 리턴합니다. 제한 사항 n은 10,000,000,000이하인 자연수입니다. 입출력 예 n return 12345 [5,4,3,2,1] Python What is the meaning of “int(a[::-1])” in Python? [duplicate] What is the meaning of "int(a[::-1])" in Python? I cannot understand this. I have seen this in people's code. But cannot figure out what it does. This is in Python. str(int(a[::..
2021. 1. 24. 19:22
최근댓글