Bubble sort runtime

后端 未结 0 819
借酒劲吻你
借酒劲吻你 2020-12-06 19:25

I have this code for a quiz I\'m doing

for i=#t,2,-1 do
    local swapped = false
    for j=1,i-1 do
        if t[j]>t[j+1] then
            t[j],t[j+1] =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题