Go Odd Occurrences In Array
// oddOccurrencesInArray assumes exactly one value occurs an odd number of
// times (per the problem's constraints) and recovers it via XOR.
func oddOccurrencesInArray(a []int) int {
	result := 0
	for _, v := range a {
		result ^= v
	}

	return result
}

This uses XOR to cancel out pairs, leaving only the value that appears an odd number of times.