1449. Form Largest Integer With Digits That Add up to Target
Given an array of integers cost and an integer target, return the maximum integer you can paint under the following rules: - The cost of painting a digit (i + 1) is given by cost[i] (0-indexed). - The total cost used must be equal to target. - The integer does not have 0 digits. Since the answer may be very large, return it as a string. If there is no way to paint any integer given the conditi
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start