mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 00:26:29 +08:00
Fix code indentation.
This commit is contained in:
parent
64517f2f46
commit
592965595e
2 changed files with 3 additions and 3 deletions
|
@ -1406,8 +1406,8 @@ $$
|
|||
=== "Go"
|
||||
|
||||
```go title="time_complexity.go"
|
||||
/* 平方阶(冒泡排序) */
|
||||
func bubbleSort(nums []int) int {
|
||||
/* 平方阶(冒泡排序) */
|
||||
func bubbleSort(nums []int) int {
|
||||
count := 0 // 计数器
|
||||
// 外循环:待排序元素数量为 n-1, n-2, ..., 1
|
||||
for i := len(nums) - 1; i > 0; i-- {
|
||||
|
|
|
@ -157,7 +157,7 @@ comments: true
|
|||
=== "C#"
|
||||
|
||||
```csharp title="insertion_sort.cs"
|
||||
/* 插入排序 */
|
||||
/* 插入排序 */
|
||||
void insertionSort(int[] nums)
|
||||
{
|
||||
// 外循环:base = nums[1], nums[2], ..., nums[n-1]
|
||||
|
|
Loading…
Reference in a new issue