Ezvor

1056. Confusing Number

EasyMath Preparing judge… LeetCode
Math

Hints

Hint 1
Reverse each digit with their corresponding new digit if an invalid digit is found the return -1. After reversing the digits just compare the reversed number with the original number.