Given a 32-bit signed integer, reverse its digits. Return 0 if the result overflows.
Input: x=123 Output: 321 Input: x=-123 Output: -321 Input: x=120 Output: 21
Unlock hints progressively β start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features