6 kyu
Find the odd int
32,096 of 312,771rbuckley
Description:
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).
Fundamentals
Similar Kata:
Stats:
Created | Feb 10, 2015 |
Published | Feb 10, 2015 |
Warriors Trained | 547927 |
Total Skips | 61953 |
Total Code Submissions | 833586 |
Total Times Completed | 312771 |
Java Completions | 32096 |
Haskell Completions | 2204 |
JavaScript Completions | 97138 |
Python Completions | 124668 |
Ruby Completions | 9271 |
TypeScript Completions | 5595 |
PHP Completions | 7338 |
C# Completions | 18073 |
F# Completions | 267 |
Clojure Completions | 609 |
NASM Completions | 83 |
CoffeeScript Completions | 44 |
Crystal Completions | 55 |
C++ Completions | 12758 |
Scala Completions | 842 |
Julia Completions | 184 |
Racket Completions | 96 |
Go Completions | 4321 |
Prolog Completions | 40 |
Elixir Completions | 313 |
Pascal Completions | 53 |
Swift Completions | 1125 |
Groovy Completions | 69 |
C Completions | 2803 |
COBOL Completions | 18 |
D Completions | 20 |
Factor Completions | 11 |
Rust Completions | 802 |
Total Stars | 4971 |
% of votes with a positive feedback rating | 90% of 25389 |
Total "Very Satisfied" Votes | 20723 |
Total "Somewhat Satisfied" Votes | 4277 |
Total "Not Satisfied" Votes | 389 |