6. Make Array Consecutive 2
def makeArrayConsecutive2(statues):
return ((max(statues)-min(statues)+1) - len(statues))
'알고리즘' 카테고리의 다른 글
[알고리즘] 7. almostIncreasingSequence (0) | 2021.05.01 |
---|---|
[algorithm] Edge of the Ocean(adjacentElementsProduct/shapeArea) (0) | 2021.04.28 |
[algorithm] Intro (add / centuryFromYear / checkPalindrome) (0) | 2021.04.24 |
[알고리즘]단계별로 문제풀기 | if문 (백준/파이썬) (0) | 2021.03.19 |
[알고리즘] 알람시계(백준 2884/파이썬) (0) | 2021.03.19 |