Find smallest number with given number of digits and sum of digits

1 min read

https://practice.geeksforgeeks.org/problems/smallest-number5829/1

K centers
Find maximum sum possible equal sum of three stacks