def solution(A): num = 0 for x in A: num = num ^ x return num
'Computer Science > 알고리즘 ( Algorithm )' 카테고리의 다른 글
| XX 알고리즘 문제 1 (0) | 2019.03.18 |
|---|---|
| 프로그래머스 - 게임 맵 최단거리 (0) | 2019.03.14 |
| Codility - StoneWall (0) | 2019.03.11 |
| Codility - Nesting (0) | 2019.03.11 |
| Codility - CyclicRotation (0) | 2019.03.11 |