Hackerrank – Plus Minus in PHP

Given an array of integers, calculate the ratios of its elements that are positive, negative, and zero. Print the decimal value of each fraction on a new line with 6 places after the decimal.

Hackerrank – Simple Array Sum In PHP

Given an array of integers, find the sum of its elements.