Majority

Majority

We have an array of logic values (boolean). Let's check if the majority of elements are true.

Some cases worth mentioning: 1) an empty array should return false; 2) if true-s and false-s have an equal amount, function should return false.

example

Input: An array of logic values (boolean)...

You should be an authorized user in order to see the full description and start solving this mission.