Given an integer array cost of size target, return the largest integer as a string whose total cost equals target.
The cost of choosing the digit cost[i - 1]. The total cost of an integer is the sum of the costs of all its individual digits.
If no integer can be formed whose total cost equals target, return "0".
Constraints:
cost.length
cost[i], target
Given an integer array cost of size target, return the largest integer as a string whose total cost equals target.
The cost of choosing the digit cost[i - 1]. The total cost of an integer is the sum of the costs of all its individual digits.
If no integer can be formed whose total cost equals target, return "0".
Constraints:
cost.length
cost[i], target