📜  将 python 函数转换为 javascript onlie - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:27.690000             🧑  作者: Mango

代码示例2
for i in range(len(Times)):
    mini=i  #To store minimum time index
    for j in range(i,len(Times)):
        #updating the minimum index
        if(Times[mini]>Times[j]): 
            mini=j
    #swapping the ith element with minimum element
    Times[mini],Times[i]=Times[i],Times[mini]

print("Fastest to slowest order: ",Times)