https://app.codility.com/programmers/lessons/6-sorting/
Task Score
100%
Correctness
100%
Performance
100%
Time Complexity
O(N*log(N)) or O(N)
def solution(A):
return len(set(A))
728x90
반응형
'Problem Solving > Codility' 카테고리의 다른 글
[Python] 6.3. NumberOfDiscIntersections (0) | 2021.03.25 |
---|---|
[Python] 6.2. MaxProductOfThree (0) | 2021.03.25 |
[Python] 5.4. PassingCars (0) | 2021.03.24 |
[Python] 5.3. MinAvgTwoSlice (0) | 2021.03.18 |
[Python] 5.2. GenomicRangeQuery (0) | 2021.03.16 |
댓글