You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.

You have a total of n coins that you want to form in a staircase shape,…

Java Program Challenge: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.

Given a non-negative integer num, repeatedly add all its digits until the result has only one…

Java Program Challenge-Suitcase Packing

Mr. Square is going on holiday. He wants to bring 2 of his favorite squares with…

Count of numbers whose sum of increasing powers of digits is equal to the number itself

Given an integer N, the task is to count all the integers less than or equal to N that…