Write a function to calculate the absolute value of a 32-bit integer. — def myabs(x): high_bit_mask = x >> 31 return (x ^ high_bit_mask) - high_bit_mask
G
1.2K
Google Interview
This flashcard deck made by jwasham contains knowledge about google interview. For more details, please follow https://github.com/jwasham/google-interview-university