6 kyu
Find the odd int
7,329 of 311,981rbuckley
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 | 546604 |
Total Skips | 61887 |
Total Code Submissions | 832130 |
Total Times Completed | 311981 |
Java Completions | 32040 |
Haskell Completions | 2201 |
JavaScript Completions | 96924 |
Python Completions | 124284 |
Ruby Completions | 9261 |
TypeScript Completions | 5570 |
PHP Completions | 7329 |
C# Completions | 18046 |
F# Completions | 267 |
Clojure Completions | 607 |
NASM Completions | 83 |
CoffeeScript Completions | 44 |
Crystal Completions | 55 |
C++ Completions | 12711 |
Scala Completions | 842 |
Julia Completions | 184 |
Racket Completions | 95 |
Go Completions | 4298 |
Prolog Completions | 40 |
Elixir Completions | 313 |
Pascal Completions | 53 |
Swift Completions | 1119 |
Groovy Completions | 69 |
C Completions | 2793 |
COBOL Completions | 18 |
D Completions | 20 |
Factor Completions | 11 |
Rust Completions | 794 |
Total Stars | 4964 |
% of votes with a positive feedback rating | 90% of 25364 |
Total "Very Satisfied" Votes | 20699 |
Total "Somewhat Satisfied" Votes | 4276 |
Total "Not Satisfied" Votes | 389 |