4000. Largest Integer With Given Digit Sum
You are given two non-negative integers
nands.Return the largest integer that has at most
ndigits and whose sum of digits iss. If no such integer exists, return -1.
1 | class Solution { |
4000. Largest Integer With Given Digit Sum
You are given two non-negative integers
nands.Return the largest integer that has at most
ndigits and whose sum of digits iss. If no such integer exists, return -1.
1 | class Solution { |