CHIqueen
[Intro] arrayMaximalAdjacentDifference 본문
def arrayMaximalAdjacentDifference(inputArray):
return max([abs(inputArray[i]-inputArray[i+1]) for i in range(len(inputArray)-1)])
'프로그래밍 > CodeSignal' 카테고리의 다른 글
[Intro] avoidObstacles (0) | 2020.03.21 |
---|---|
[Intro] isIPv4Addres (0) | 2020.03.17 |
[Intro] areEquallyStrong (0) | 2020.03.17 |
[Intro] palindromeRearranging (0) | 2020.03.17 |
[Intro] Are Similar? (0) | 2020.03.17 |
Comments