Course · Section 11: Working With Arrays · Lecture 156: Data Transformations: map, filter, reduce
Implement `partition(nums, threshold)` returning `[below, atOrAbove]`, where `below` holds values less than `threshold` and `atOrAbove` holds the rest, each preserving order.
+ 1 hidden test run on Submit.
One pass routes each value into below (less than threshold) or atOrAbove, returned as a tuple.
Run your code to see results.