You are viewing a single comment's thread. Return to all comments →
golang solution using XOR:
func lonelyinteger(a []int32) int32 { var unique int32 = 0 for _, i := range a{ unique ^= i } return unique }
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
golang solution using XOR: