mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-15 16:36:06 +00:00
Fix some comments.
This commit is contained in:
@@ -42,10 +42,10 @@ function bubbleSortWithFlag(nums: number[]): void {
|
||||
/* Driver Code */
|
||||
const nums = [4, 1, 3, 1, 5, 2];
|
||||
bubbleSort(nums);
|
||||
console.log('排序后数组 nums =', nums);
|
||||
console.log('冒泡排序完成后 nums =', nums);
|
||||
|
||||
const nums1 = [4, 1, 3, 1, 5, 2];
|
||||
bubbleSortWithFlag(nums1);
|
||||
console.log('排序后数组 nums =', nums1);
|
||||
console.log('冒泡排序完成后 nums =', nums1);
|
||||
|
||||
export {};
|
||||
|
||||
@@ -22,6 +22,6 @@ function insertionSort(nums: number[]): void {
|
||||
/* Driver Code */
|
||||
const nums = [4, 1, 3, 1, 5, 2];
|
||||
insertionSort(nums);
|
||||
console.log('排序后数组 nums =', nums);
|
||||
console.log('插入排序完成后 nums =', nums);
|
||||
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user