Free written solution

A Number After a Double Reversal (LeetCode 2119): Solution and Explanation

Decide whether reversing the digits of num twice gives num back, given that reversal drops leading zeros.

Read the intuition, approach, code and complexity →