Easy · Math
Is odd number
Given an integer n, which may be negative, return true if n is odd and false if it is even.
Examples
Example 1
n = 7Output: odd
Example 2
n = 12Output: even
Rebuild it in the studio
Read every interview problem free. Ten rooms need no account. A token opens a problem in full — Pro never counts.