Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
const solution(N) => N.reduce((a, b) => a ^ b)
solution([5, 4, 3, 5, 3]) // 4
// https://codility.com/programmers/lessons/2-arrays/odd_occurrences_in_array/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment