I’m often nerd-sniped by the “Interview Question of the week” that Cassidy Williams includes in her weekly newsletter. Typically it’s when I see a solution that show’s off Ruby’s cornucopia of Enumerable methods. This week’s odd_sum was catnip.
Sign up to get a nugget of Ruby knowledge every couple of weeks or so.
[email protected]
Brighton Ruby 2024
The UK’s friendliest, Ruby & Rails event.
Thursday 19th June, 2025.
Includes ice cream →
This week’s question:
Given two arrays, return all pairs (where each number is in each array) whose sum is an odd number.