Given two numbers 'N' and 'S' , find the largest number that can be formed with 'N' digits and whose sum of digits should be equals to 'S'. Example 1: Input: N = 2, S = 9 Output: 90 Explaination: It is the biggest number with sum of digits equals to...
Markdown supported · ⌘↵ to post
No responses yet.