Flag observations that lie more than 1.5 interquartile ranges below the first quartile or above the third quartile (Tukey's fences).
Implement solve(x).
Returns. Return a boolean NumPy array, True where a value is an outlier.
Example 1
Input:
solve([1.0, 2.0, 3.0, 4.0, 100.0])
Output:
[False, False, False, False, True]
Example 2
Input:
solve([1.0, 2.0, 3.0])
Output:
[False, False, False]
No results yet
Run your code to check it against the examples, or submit to run every test.