Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Last active April 14, 2017 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/4c7df1ad4317972841aa87128b670b46 to your computer and use it in GitHub Desktop.
Save chuck0523/4c7df1ad4317972841aa87128b670b46 to your computer and use it in GitHub Desktop.
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