HackerRank 'Game of Maximization' Solution
There are n piles of stones, where the ith pile has ai stones. You need to collect the maximum number of stones from these piles
HackerRank 'Friend Circle Queries' Solution
The population of HackerWorld is 10^9. Initially, none of the people are friends with each other. In order to start a friendship, two persons a and b have to shake hands, where `1 <= a,b <= 10^9`. The friendship relation is transitive, that is if a and b shake hands with each other, a and friends of a become friends with b and friends of b.
HackerRank 'Simple Array Sum' Solution
Given an array of integers, find the sum of its elements.