Leetcode 3079. Find the Sum of Encrypted Integers
Given an array of positive integers, for each number replace every digit with the largest digit present in that number (e.g., 523 -> 555) and return the sum of these transformed numbers. Constraints are small (n ≤ 50, nums[i] ≤ 1000), so a simple per-number digit scan suffices.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.