Skip to content

Commit 4147f80

Browse files
author
chufan
committed
style: update
1 parent 3cd015d commit 4147f80

File tree

8 files changed

+10
-41
lines changed

8 files changed

+10
-41
lines changed

.github/workflows/CD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020

2121
jobs:
2222
install-init:
23-
name: "依赖安装初始化"
23+
name: "流水线初始化"
2424
runs-on: ubuntu-latest
2525

2626
steps:

.github/workflows/CI.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121

2222
jobs:
2323
install-init:
24-
name: "依赖安装初始化"
24+
name: "流水线初始化"
2525
runs-on: ubuntu-latest
2626
permissions:
2727
actions: read

code/algorithm/interview-101/binarySearch.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
/*
2-
* @Description: 二分查找
3-
* @Version: Beta1.0
4-
* @Author: 【B站&公众号】Rong姐姐好可爱
5-
* @Date: 2021-04-18 19:01:13
6-
* @LastEditors: 【B站&公众号】Rong姐姐好可爱
7-
* @LastEditTime: 2021-04-18 21:29:48
8-
*/
91

102
// 参考:https://github.com/labuladong/fucking-algorithm/blob/master/%E7%AE%97%E6%B3%95%E6%80%9D%E7%BB%B4%E7%B3%BB%E5%88%97/%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE%E8%AF%A6%E8%A7%A3.md
113

code/algorithm/interview-101/findKth.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11

22
/**
3-
*
3+
* 寻找最大K数
44
* @param a int整型一维数组
55
* @param n int整型
66
* @param K int整型
77
* @return int整型
88
*/
99
function findKth(a, n, K) {
1010
const result = quickSort(a, 0, n - 1)
11-
1211
console.log(result)
1312
return result[K - 1]
1413
}

code/algorithm/interview-101/getLeastNumbers.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
/*
2-
* @Description: 给定一个数组,找出其中最小的K个数。例如数组元素是4,5,1,6,2,7,3,8这8个数字,则最小的4个数字是1,2,3,4。如果K>数组的长度,那么返回一个空的数组
3-
* @Version: Beta1.0
4-
* @Author: 【B站&公众号】Rong姐姐好可爱
5-
* @Date: 2021-04-17 23:00:02
6-
* @LastEditors: 【B站&公众号】Rong姐姐好可爱
7-
* @LastEditTime: 2021-04-17 23:27:03
1+
/**
2+
* 给定一个数组,找出其中最小的K个数。
3+
* 例如:
4+
* - 数组元素是4,5,1,6,2,7,3,8这8个数字,则最小的4个数字是1,2,3,4。
5+
* - 如果K>数组的长度,那么返回一个空的数组
86
*/
9-
107
/**
118
* 基于冒泡排序
129
* @param input

code/algorithm/interview-101/getLongestPalindrome.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/*
2-
* @Description: 最长回文字符串
3-
* @Version: Beta1.0
4-
* @Author: 【B站&公众号】Rong姐姐好可爱
5-
* @Date: 2021-05-20 21:06:00
6-
* @LastEditors: 【B站&公众号】Rong姐姐好可爱
7-
* @LastEditTime: 2021-05-20 21:06:17
8-
*/
9-
101
/**
112
* 求给定字符的最大回文字符串
123
* @param str

code/algorithm/interview-101/moreThanHalfNum.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
*
3-
* @param numbers
4-
* @returns {number}
5-
*/
61
function MoreThanHalfNumSolution(numbers) {
72
const map = new Map()
83
numbers.forEach(item => {

code/algorithm/interview-101/twoSum.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
/*
2-
* @Description: 给出一个整数数组,请在数组中找出两个加起来等于目标值的数
3-
* @Version: Beta1.0
4-
* @Author: 【B站&公众号】Rong姐姐好可爱
5-
* @Date: 2021-04-17 23:31:18
6-
* @LastEditors: 【B站&公众号】Rong姐姐好可爱
7-
* @LastEditTime: 2021-04-18 10:05:27
1+
/**
2+
* 给出一个整数数组,请在数组中找出两个加起来等于目标值的数
83
*/
94

105
/**

0 commit comments

Comments
 (0)