𝕕𝕖𝕧𝕖𝕝𝕠𝕑 𝕣𝕖𝕔𝕠𝕣𝕕

  • ν™ˆ
  • νƒœκ·Έ

μˆœμ—΄ 1

[python] μˆœμ—΄κ³Ό μ‘°ν•©

μˆœμ—΄(permutation) - μˆœμ„œλ₯Ό κ³ λ €ν•œ 선택 - nPr둜 ν‘œμ‹œ import imertools arr = ['A', 'B', 'C'] perm = itertools.permutations(arr, 2) # 2개 선택 print(list(perm)) # [('A', 'B'), ('A', 'C'), ('B', 'A'), ('B', 'C'), ('C', 'A'), ('C', 'B')] μ‘°ν•©(combination) - μˆœμ„œλ₯Ό κ³ λ €ν•˜μ§€ μ•Šμ€ 선택 - nCr둜 ν‘œμ‹œ import itertools arr = ['A', 'B', 'C'] combi = itertools.combinations(arr, 2) print(list(combi)) # [('A', 'B'), ('A', 'C'), ('B', 'C')]

ΰ­¨β”ˆβ”ˆβ”ˆ Studyβ”ˆβ”ˆβ”ˆΰ­§/β†˜ Algorithm 2021.07.20
1
더보기
ν”„λ‘œν•„μ‚¬μ§„

  • λΆ„λ₯˜ 전체보기 (33)
    • ΰ­¨β”ˆβ”ˆβ”ˆ Life β”ˆβ”ˆβ”ˆΰ­§ (2)
      • β†˜ Daily (2)
    • ΰ­¨β”ˆβ”ˆβ”ˆ Studyβ”ˆβ”ˆβ”ˆΰ­§ (12)
      • β†˜ Chatbot (3)
      • β†˜ Algorithm (9)
    • ΰ­¨β”ˆβ”ˆβ”ˆ Web β”ˆβ”ˆβ”ˆΰ­§ (10)
      • β†˜ Error (1)
      • •β”ˆβ”ˆβ”ˆοΌŠBackendοΌŠβ”ˆβ”ˆ• (0)
      • β†˜ Java (0)
      • β†˜ Spring (0)
      • β†˜ SpringBoot (4)
      • •β”ˆβ”ˆβ”ˆοΌŠFrontendοΌŠβ”ˆβ”ˆ• (0)
      • β†˜ Javascript (2)
      • β†˜ Vue.js (3)
    • ΰ­¨β”ˆβ”ˆβ”ˆ Database β”ˆβ”ˆβ”ˆΰ­§ (2)
      • β†˜ MySQL (1)
      • β†˜ PostgreSQL (1)
    • ΰ­¨β”ˆβ”ˆβ”ˆ Tool β”ˆβ”ˆβ”ˆΰ­§ (6)
      • β†˜ Docker (2)
      • β†˜ Git (1)
      • β†˜ IntelliJ (3)
    • ΰ­¨β”ˆβ”ˆβ”ˆ OpenSource β”ˆβ”ˆβ”ˆΰ­§ (1)
      • β†˜ Elasticsearch (1)
      • β†˜ Kafka (0)

Tag

도컀, JavaScript, github, λ°±μ—”λ“œκ°œλ°œμž, μŠ€ν”„λ§λΆ€νŠΈ, IntelliJ, git, Python, gradle runtimeonly, SpringBoot, 파이썬, algorithm, vue.js, Docker, gradle μ˜μ‘΄μ„± μ˜΅μ…˜, 이직, 챗봇, μ•Œκ³ λ¦¬μ¦˜, vue, 개발자,

μ΅œκ·ΌκΈ€κ³Ό 인기글

  • μ΅œκ·ΌκΈ€
  • 인기글

μ΅œκ·ΌλŒ“κΈ€

곡지사항

페이슀뢁 νŠΈμœ„ν„° ν”ŒλŸ¬κ·ΈμΈ

  • Facebook
  • Twitter

Archives

Calendar

Β«   2025/05   Β»
일 μ›” ν™” 수 λͺ© 금 ν† 
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

방문자수Total

  • Today :
  • Yesterday :

Copyright Β© Kakao Corp. All rights reserved.

ν‹°μŠ€ν† λ¦¬νˆ΄λ°”