aboutsummaryrefslogtreecommitdiff
path: root/challenge-269/deadmarshal/ruby/ch1.rb
blob: 1ad74be0c2dc9336f191f3effc8e792322873a9b (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby

def bitwise_or(arr)
  arr.select{|e| e % 2 == 0}.size > 1
end

p bitwise_or([1,2,3,4,5])
p bitwise_or([2,3,8,16])
p bitwise_or([1,2,5,7,9])