본문 바로가기

ror_coding

검색하기
ror_coding
프로필사진 ro_rdil_31

  • Home (154)
    • Data Analysis (13)
      • Growth Hacking (7)
      • Tableau (6)
    • Coding Test (134)
      • Python (86)
      • SQL (48)
    • Certificate (5)
      • 빅데이터 분석 기사 (0)
      • SQLD (3)
      • ADsP (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • RoR's Github
«   2025/07   »
일 월 화 수 목 금 토
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
  • cte
  • sql
  • 완전탐색
  • lambda
  • programmers
  • hackerrank
  • Stack
  • level4
  • Growth hacking
  • time complexity
  • tableau
  • 코딩테스트
  • 파이썬
  • 조합
  • mysql
  • coding
  • itertools
  • 프로그래머스
  • coding test
  • python
  • 코테
  • Level2
  • counter
  • import re
  • AARRR
  • lv4
  • 코딩
  • collections
  • join
  • Queue
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록python (73)

ror_coding

[Programmers] 약수의 합 - 12928

sqrt()로 for문 연산 줄이는 코드 , List comprehension 코드 둘 다 기록하기!sqrt() 연산시 제곱 수 중복 때문에 (ex. 16 = 4x4) list에 약수를 저장 후 set() 해줘야 한다! Question 정수 n을 입력받아 n의 약수를 모두 더한 값을 리턴하는 함수, solution을 완성해주세요.  Point Basic for문 : Code 1List comprehension : Code 2math.sqrt() 로 for문 연산 줄이기 : Code 3set() Code 3번 제곱의 약수 중복 방지  Code 1 : Basic def solution(n): sum=0 for i in range(1,n+1): sum += i if n%i == 0 el..

Coding Test/Python 2024. 9. 28. 15:01
이전 Prev 1 ··· 10 11 12 13 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바