This question evaluates understanding of integer representation, hexadecimal notation, bitwise operations, and 32-bit two's complement arithmetic. It is commonly asked to assess low-level data representation and edge-case handling within the Coding & Algorithms domain, and it tests practical implementation skills alongside conceptual understanding of binary and base conversion.

Given a 32-bit signed integer num, return its hexadecimal representation as a string.
a-f
.
num
in range
[-2^31, 2^31 - 1]
num = 26
→
"1a"
num = 0
→
"0"
num = -1
→
"ffffffff"
toString(16)
/
format
).