본문 바로가기

ror_coding

검색하기
ror_coding
프로필사진 ro_rdil_31

  • Home (160)
    • Data Analysis (13)
      • Growth Hacking (7)
      • Tableau (6)
    • Coding Test (140)
      • Python (86)
      • SQL (54)
    • Certificate (5)
      • 빅데이터 분석 기사 (0)
      • SQLD (3)
      • ADsP (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • RoR's Github
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
  • sql
  • 프로그래머스
  • level4
  • import re
  • mysql
  • 코딩테스트
  • 코테
  • Queue
  • Growth hacking
  • AARRR
  • itertools
  • tableau
  • 파이썬
  • counter
  • lambda
  • cte
  • time complexity
  • 완전탐색
  • hackerrank
  • Stack
  • python
  • LeetCode
  • 코딩
  • programmers
  • join
  • coding test
  • coding
  • 조합
  • lv4
  • Level2
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록join() (1)

ror_coding

[Programmers] 정수 내림차순으로 배치하기 - 12933

''.join() 과 sorted( ) 사용 !sorted( string/list , reverse = True ) 처럼 sorted 내부의 reverse 는 reversed가 아니다 ! Question 함수 solution은 정수 n을 매개변수로 입력받습니다. n의 각 자릿수를 큰것부터 작은 순으로 정렬한 새로운 정수를 리턴해주세요. 예를들어 n이 118372면 873211을 리턴하면 됩니다.  Point ''.join()sorted( , reverse = True)  Code def solution(n): return int(''.join(sorted(str(n),reverse=True))) now meOn my Github

Coding Test/Python 2024. 9. 29. 15:39
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바