How to test if an array contains a pair of numbers whose product is odd?

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2008-11-10T02:26:14Z Indexed on 2010/06/02 11:53 UTC
Read the original article Hit count: 183

Filed under:
|
|
|

How can I write a function that takes an array of integers and returns true if their exists a pair of numbers whose product is odd?

What are the properties of odd integers? And of course, how do you write this function in Java? Also, maybe a short explanation of how you went about formulating an algorithm for the actual implementation.

Yes, this is a function out of a textbook. No, this is not homework—I'm just trying to learn, so please no "do your own homework comments."

© Stack Overflow or respective owner

Related posts about java

Related posts about beginner