##
Find ways an Integer can be expressed as sum of n-th power of unique natural numbers
March 23, 2017

Given two numbers x and n, find number of ways x can be expressed as sum of n-th power of unique natural numbers. Examples: Input : x = 10, n = 2 Output : 1 Explanation: 10 = 12 + 32, Hence total 1 possibility Input : x = 100, n = 2 Output :… Read More »