Skip to content

This program finds the number of ways that a given integer,'X' , can be expressed as the sum of the 'N'th powers of unique, natural numbers. For example, if 'X' = 13 and 'N' = 2, we have to find all combinations of unique squares adding up to '13'. The only solution is 2^2 + 3^2. 'X' is the number to sum to. 'N' is the integer power to raise num…

License

Notifications You must be signed in to change notification settings

CodeCat08/Algorithms-Project02-Hacker-Rank-Power-Sum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Algorithms-Project02-Hacker-Rank-Power-Sum

This program finds the number of ways that a given integer,'X' , can be expressed as the sum of the 'N'th powers of unique, natural numbers. For example, if 'X' = 13 and 'N' = 2, we have to find all combinations of unique squares adding up to '13'. The only solution is 2^2 + 3^2. 'X' is the number to sum to. 'N' is the integer power to raise numbers to. https://www.hackerrank.com/challenges/the-power-sum/problem

About

This program finds the number of ways that a given integer,'X' , can be expressed as the sum of the 'N'th powers of unique, natural numbers. For example, if 'X' = 13 and 'N' = 2, we have to find all combinations of unique squares adding up to '13'. The only solution is 2^2 + 3^2. 'X' is the number to sum to. 'N' is the integer power to raise num…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages