You are viewing a single comment's thread. Return to all comments →
Tiny Ruby solution:
def find_lonely(arr) arr.inject(&:^) end _n = gets.to_i arr = gets.split.map(&:to_i) puts find_lonely(arr)
Seems like cookies are disabled on this browser, please enable them to open this website
Bit Manipulation: Lonely Integer
You are viewing a single comment's thread. Return to all comments →
Tiny Ruby solution: