Ad
  • Custom User Avatar

    this solutiion works much faster than first, esecialy for big arrays
    there are benchmarks for 100 000 000 elements

    find_outlier_1
    10.340000 0.270000 10.610000 ( 10.611158)
    find_outlier_2
    1.960000 0.000000 1.960000 ( 1.968448)

    find_outlier_1
    9.890000 0.320000 10.210000 ( 10.219760)
    find_outlier_2
    7.720000 0.000000 7.720000 ( 7.731714)