Решение задач Code Wars на Python. Find the odd int. 6 kyu

Given an array of integers, find the one that appears an odd number of times. There will always be only one integer that appears an odd number of times. Examples [7] should return 7, because it occurs 1 time (which is odd). [0] should return 0, because it occurs 1 time (which is odd). [1,1,2] should return 2, because it occurs 1 time (which is odd). [0,1,0,1,0] should return 0, because it occurs 3 times (which is odd). [1,2,2,3,3,3,4,3,3,3,2,2,1] should return 4, because it appears 1 time (which is odd). Разбор задач с Code Wars: Code Wars 8 kyu - Code Wars 7 kyu - Разбор задач по Python (Питон): “Поколение Python“: курс для профессионалов - “Поколение Python“: курс для продвинутых - “Поколение Python“: курс для начинающих - “Программирование на Python“ - Единоразовая поддержка -
Back to Top