vectors
Write an R function solution(x) that returns the range (maximum minus minimum) of the numeric vector x.
Example
solution(c(3, 7, 2, 9)) → 7
solution.py
14px
📊 Test Results
Run your code to see test results here.