From f9651812fe3097a448088a4ade4db0c1b1ce69fb Mon Sep 17 00:00:00 2001 From: yinzh Date: Fri, 9 Jul 2021 15:37:59 +0800 Subject: [PATCH] 111 --- .../001_about_bubble_sort.md" | 8 ------- .../index.yml" | 24 +++++++++---------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git "a/01_\347\256\227\346\263\225\345\216\237\347\220\206\345\217\212\345\256\236\347\216\260/001_about_bubble_sort.md" "b/01_\347\256\227\346\263\225\345\216\237\347\220\206\345\217\212\345\256\236\347\216\260/001_about_bubble_sort.md" index 87f7982..6819866 100644 --- "a/01_\347\256\227\346\263\225\345\216\237\347\220\206\345\217\212\345\256\236\347\216\260/001_about_bubble_sort.md" +++ "b/01_\347\256\227\346\263\225\345\216\237\347\220\206\345\217\212\345\256\236\347\216\260/001_about_bubble_sort.md" @@ -3,11 +3,3 @@ 它重复地走访过要排序的元素列,依次比较两个相邻的元素,如果顺序(如从大到小、首字母从Z到A)错误就把他们交换过来。走访元素的工作是重复地进行直到没有相邻元素需要交换,也就是说该元素列已经排序完成。 这个算法的名字由来是因为越小的元素会经由交换慢慢“浮”到数列的顶端(升序或降序排列),就像碳酸饮料中二氧化碳的气泡最终会上浮到顶端一样,故名“冒泡排序”。 -## 算法步骤 -1. **比较相邻的元素。如果第一个比第二个大,则交换他们两个。** - -2. **对每一对相邻元素作同样的工作,从开始第一对到结尾的最后一对。这步做完后,最后的元素会是最大的数。** - -3. **针对所有的元素重复以上的步骤,除了最后一个。** - -4. **持续每次对越来越少的元素重复上面的步骤,直到没有任何一对数字需要比较。** diff --git "a/01_\347\256\227\346\263\225\345\216\237\347\220\206\345\217\212\345\256\236\347\216\260/index.yml" "b/01_\347\256\227\346\263\225\345\216\237\347\220\206\345\217\212\345\256\236\347\216\260/index.yml" index fb4f2e1..a43e8cf 100644 --- "a/01_\347\256\227\346\263\225\345\216\237\347\220\206\345\217\212\345\256\236\347\216\260/index.yml" +++ "b/01_\347\256\227\346\263\225\345\216\237\347\220\206\345\217\212\345\256\236\347\216\260/index.yml" @@ -1,27 +1,27 @@ # 在所有任务之前执行 before: link: '{{chapter_1_url}}' + description: "算法介绍" transitions: action: - type: create_issue - title: "带你了解冒泡排序" with: 001_about_bubble_sort.md store: chapter_1_url: '{{result.data.html_url}}' - type: choice with: first.md - to: step2 + to: step1 -# Task 列表 -# step1: -# link: '{{chapter_1_url}}' -# description: "算法步骤" -# transitions: -# events: ['note_events'] -# action: -# - type: issue_comment.created -# with: 001_algorithm_steps.md -# to: step2 + Task 列表 + step1: + link: '{{chapter_1_url}}' + description: "算法步骤" + transitions: + events: ['note_events'] + action: + - type: issue_comment.created + with: 001_algorithm_steps.md + to: step2 step2: link: '{{chapter_1_url}}' -- GitLab