Update Median

This commit is contained in:
syr4300 2022-08-09 11:17:54 +08:00 committed by GitHub
parent b86d99edb2
commit 5efb99b401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,8 @@
//This this function is use to calculate the median of array
@param num
@return median
alert(selectMedian([75,3,5,52300,5,4,0,123,2,76,768,28])); alert(selectMedian([75,3,5,52300,5,4,0,123,2,76,768,28]));
function selectMedian(arr) { function selectMedian(arr) {