• Skip to primary navigation
  • Skip to content
  • Skip to footer
Site Title
  • Quick-Start Guide

    Your Name

    I am an amazing person.

    • Somewhere

    부분집합(비트 연산)

    less than 1 minute read

    arr = [1, 2, 3]
    n = len(arr)
    for i in range(1<<n):
        tmp = []
        for j in range(n):
            if i & (1<<j):
                tmp += [arr[j]]
        print(tmp)
    # []
    # [1]
    # [2]
    # [1, 2]
    # [3]
    # [1, 3]
    # [2, 3]
    # [1, 2, 3]
    

    Updated: February 14, 2022

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    Next.js 작동 방식

    2 minute read

    컴파일

    Next.js

    less than 1 minute read

    API_KEY 숨기기

    리액트 뒤로가기 이벤트

    less than 1 minute read

    부모 컴포넌트 const Parent = () => { const [closeSession, setCloseSession] = useState(false); const closeQuickView = () => { setCloseSession(...

    중복 순열, 주사위 던지기

    less than 1 minute read

    ```py 중복순열 주사위 4개를 던진다 n = 4 path = [0] * 4

    • Follow:
    • Feed
    © 2022 Your Name. Powered by Jekyll & Minimal Mistakes.