Lumenize
Lumenize copied to clipboard
R function range()
Returns the min and max values range(5 4 3 2 1) returns 1 5
Let's return an array. So, [1, 5]. Rather than call the existing min and max functions, we should be able to more efficiently calculate them in one loop.