Less Than 100 Array Remix

Published by Matt in

Given an array of numbers, return true if the sum of the array is less than 100; otherwise return false.

Examples

array_less_than100([5, 57]) ➞ true

array_less_than100([77, 30]) ➞ false

array_less_than100([0]) ➞ true

Notes

N/A

Watch a quick demo on how Edabit works.