fork(1) download
  1. def single_number(nums)
  2. nums.reduce(:^)
  3. end
  4.  
  5. puts single_number([1, 1, 2, 2, 3, 4, 4, 5, 5])
Success #stdin #stdout 0.05s 9704KB
stdin
Standard input is empty
stdout
3