Problem

Return true if any element < 0.

Examples

  • hasNegative([1, -1]) -> true
Compile and test (Ctrl+Enter)