Domanda di colloquio di NVIDIA

Programming question: Write int max(int a, int b) function without using any comparisons (<, >, =, !=, etc), or conditional statements (if, while, for). The trick was to use bit shifting and create a algebraic expression to get the result.