This question evaluates proficiency with array/list manipulation, parity checking, and handling edge cases such as negative values and integers outside 32-bit ranges.
Given a list/array of integers nums, print (or return) every odd number in the list, in the same order they appear.
-3
) should be treated as odd and included.
nums
: a list of integers.
nums
can be large, so the solution should be linear in the length of the list.