Given a number N, and an integer K. The task is to distribute N in a sequence such that the first K numbers of the… Read More

The post Distribute N in a sequence having K-sized groups of 1, 2, 4 and so on appeared first on GeeksforGeeks.