본문 바로가기

ror_coding

검색하기
ror_coding
프로필사진 ro_rdil_31

  • Home (156) N
    • Data Analysis (13)
      • Growth Hacking (7)
      • Tableau (6)
    • Coding Test (136) N
      • Python (86)
      • SQL (50) N
    • 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
  • lambda
  • python
  • 코테
  • 프로그래머스
  • 코딩테스트
  • hackerrank
  • collections
  • coding test
  • counter
  • 코딩
  • time complexity
  • sql
  • tableau
  • Level2
  • coding
  • programmers
  • Growth hacking
  • Queue
  • cte
  • level4
  • itertools
  • AARRR
  • join
  • lv4
  • Stack
  • 완전탐색
  • 파이썬
  • mysql
  • 조합
  • import re
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록cycle (1)

ror_coding

[Python] Permutations, Combination, Product (Itertools)

from itertools importpermutations (순열)combinations (조합)product (주어진 반복 가능한 객체(iterable)들로 만들 수 있는 모든 조합 반환)cycle from itertools import permutations as perm # 순열from itertools import combinations as comb # 조합from itertools import product # 모든 가능한 조합from itertools import cycle for p in perm(data): # 순열. (모든 경우의 수)for c in comb(data, 3): # 3개씩 조합.# productl = [(x, -x) for x in numbers] # [(4, -4), ..

Coding Test/Python 2024. 12. 4. 14:59
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바