Short Description : You are given two integer X and N.Find the number of ways that a given integer,X , can be expressed as the sum of the Nth power of unique, natural numbers. Problem statement is Here : The Power Sum Solution is click here to copy click here

# Category: Algorithms

## HackerRank ‘Game of Stones’ Solution

Short Description: There are two players in game P1 and P2 and the condition of the game is like that any player can take stone from {2,3,5} set and p1 is the first player to move and then p2 and so on.If player is unable to move the player lose the game. youu need to [...]

## HackerRank ‘ Hackerland Radio Transmitters ‘ Solution

Hackerland is a one-dimensional city with houses, where each house i is located at some xi on the x-axis. The Mayor wants to install radio transmitters on the roofs of the city's houses. Each transmitter has a range,k , meaning it can transmit a signal to all houses <=k units of distance away.

## HackerRank ‘Diagonal Difference’ Solution

Given a square matrix of size NxN, calculate the absolute difference between the sums of its diagonals. Input Format The first line contains a single integer, N . The next N lines denote the matrix's rows, with each line containing N space-separated integers describing the columns.