Problem

Return the largest value in a non-empty data set.

Examples

  • dataSetMax([3, 9, 4]) -> 9
  • dataSetMax([-1, -5]) -> -1
Compile and test (Ctrl+Enter)