Tap here to switch tabs
Problem
Submissions

Problem: Find the Sum of Encrypted Integers

med
30 min
Try to solve the Find the Sum of Encrypted Integers problem.

Statement

You are given an integer array nums containing positive integers.

We define an operation encrypt(x) that replaces every digit in an integer x with the largest digit in x.

Return the total sum of the encrypted integers in nums.

Constraints:

  • 1≤1 \leq nums.length ≤50\leq 50

  • 1≤1 \leq nums[i] ≤1000\leq 1000

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find the Sum of Encrypted Integers

med
30 min
Try to solve the Find the Sum of Encrypted Integers problem.

Statement

You are given an integer array nums containing positive integers.

We define an operation encrypt(x) that replaces every digit in an integer x with the largest digit in x.

Return the total sum of the encrypted integers in nums.

Constraints:

  • 1≤1 \leq nums.length ≤50\leq 50

  • 1≤1 \leq nums[i] ≤1000\leq 1000