Java Interview Question: Determining Whether an Integer Is Odd – Discussion and Solutions
This article walks through a common Java interview problem of checking if an integer is odd, presenting multiple candidate solutions, explaining their shortcomings, and culminating in an optimal bitwise implementation while also discussing performance misconceptions.
