Skip to content

GyuhoonK/algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm

BOJ, Programmers
Language : Python

Tip

2차원 배열 90도 회전(뒤집기)

list(zip(*arr[::-1]))

재귀함수 사용 시

import sys
sys.setrecursionlimit(10**6)

nCr

from operator import mul
from functools import reduce

def nCr(n, r):
    r = min(r, n-r)
    numer = reduce(mul, range(n, n-r, -1), 1)
    denomi = reduce(mul, range(1, r+1), 1)
    return numer // denomi

About

백준 알고리즘

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published