Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1432. Max Difference You Can Get From Changing an Integer
Given an integer, you may independently replace all occurrences of one digit with another (for each of two results) and must produce two valid non-zero integers with no leading zeros; return the maximum possible difference between them. The core challenge is picking the digit substitutions that greedily maximize one result (e.g., turning digits to 9) and minimize the other (while avoiding invalid leading zeros).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.