Hackerrank
Hackerrank - Nikita and the Game Solution
Nikita just came up with a new array game. The rules are as follows: * Initially, Nikita has an array of integers. * In each move, Nikita must partition the array into non-empty contiguous parts such that the sum of the elements in the left partition is equal to the sum of