core-algorithm
core-algorithm copied to clipboard
算法集锦的python实现
Results
5
core-algorithm issues
Sort by
recently updated
recently updated
newest added
def __quickSubSort(seq, p, r): """递归版本的""" global num num += 1 print(num) if p < r: # q = __partition(seq, p, r) q = __randPartitions(seq, p, r) __quickSubSort(seq, p, q -...
def isLeapYear(year): # return (not year % 4 and year % 100) or (not year % 400) return (not (year % 4 and year % 100)) or (not year %...