Auto Commit

上级 39fed091
......@@ -9,3 +9,18 @@ const app = createApp(App)
app.use(ViewUIPlus)
.mount('#app')
function bubbleSort(array) {
var len = array.length;
for (var i = 0; i < len; i++) {
for (var j = 0; j < len - 1; j++) {
if (array[j] > array[j + 1]) {
var temp = array[j];
array[j] = array[j + 1];
array[j + 1] = temp;
}
}
}
return array;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册