diff --git a/codes/javascript/chapter_sorting/bubble_sort.js b/codes/javascript/chapter_sorting/bubble_sort.js index 778541692..0a4f2f7d4 100644 --- a/codes/javascript/chapter_sorting/bubble_sort.js +++ b/codes/javascript/chapter_sorting/bubble_sort.js @@ -42,8 +42,8 @@ function bubbleSortWithFlag(nums) { /* 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); diff --git a/codes/javascript/chapter_sorting/insertion_sort.js b/codes/javascript/chapter_sorting/insertion_sort.js index d2e6f2230..b53f9c58a 100644 --- a/codes/javascript/chapter_sorting/insertion_sort.js +++ b/codes/javascript/chapter_sorting/insertion_sort.js @@ -22,4 +22,4 @@ function insertionSort(nums) { /* Driver Code */ const nums = [4, 1, 3, 1, 5, 2]; insertionSort(nums); -console.log('排序后数组 nums =', nums); +console.log('插入排序完成后 nums =', nums); diff --git a/codes/python/chapter_sorting/bubble_sort.py b/codes/python/chapter_sorting/bubble_sort.py index 5218db3db..68062e071 100644 --- a/codes/python/chapter_sorting/bubble_sort.py +++ b/codes/python/chapter_sorting/bubble_sort.py @@ -37,8 +37,8 @@ def bubble_sort_with_flag(nums: list[int]) -> None: if __name__ == "__main__": nums = [4, 1, 3, 1, 5, 2] bubble_sort(nums) - print("排序后数组 nums =", nums) + print("冒泡排序完成后 nums =", nums) nums1 = [4, 1, 3, 1, 5, 2] bubble_sort_with_flag(nums1) - print("排序后数组 nums =", nums1) + print("冒泡排序完成后 nums =", nums1) diff --git a/codes/python/chapter_sorting/insertion_sort.py b/codes/python/chapter_sorting/insertion_sort.py index fdaf26fd7..d6c375405 100644 --- a/codes/python/chapter_sorting/insertion_sort.py +++ b/codes/python/chapter_sorting/insertion_sort.py @@ -22,4 +22,4 @@ def insertion_sort(nums: list[int]) -> None: if __name__ == "__main__": nums = [4, 1, 3, 1, 5, 2] insertion_sort(nums) - print("排序后数组 nums =", nums) + print("插入排序完成后 nums =", nums) diff --git a/codes/typescript/chapter_sorting/bubble_sort.ts b/codes/typescript/chapter_sorting/bubble_sort.ts index db7d0b56c..f0a7afc39 100644 --- a/codes/typescript/chapter_sorting/bubble_sort.ts +++ b/codes/typescript/chapter_sorting/bubble_sort.ts @@ -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 {}; diff --git a/codes/typescript/chapter_sorting/insertion_sort.ts b/codes/typescript/chapter_sorting/insertion_sort.ts index d7e9e7c70..46d284c2c 100644 --- a/codes/typescript/chapter_sorting/insertion_sort.ts +++ b/codes/typescript/chapter_sorting/insertion_sort.ts @@ -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 {};