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
Core interview problems are free with a full runner and lessons; Pro opens the complete library.