Skip to content

Commit

Permalink
feat(algo): 新增剑指、shell等算法文档
Browse files Browse the repository at this point in the history
  • Loading branch information
142vip.cn committed Nov 13, 2023
1 parent b3ae3fc commit 6ff0ad5
Show file tree
Hide file tree
Showing 106 changed files with 848 additions and 323 deletions.
87 changes: 53 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
<!-- #region quick-start -->

<div align="center">
<img alt="JavaScriptCollection" src="https://cdn.statically.io/gh/142vip/cdn_service@main/doc_book/jsc/jsc_logo.png" style="text-align: center;">
<p style="font-size: 20px"><strong>✨【理论+实战】保姆级成长笔记✨</strong></p>
<img
alt="JavaScriptCollection"
src="https://cdn.statically.io/gh/142vip/cdn_service@main/doc_book/jsc/jsc_logo.png"
style="text-align: center;border-radius: 5px"
>
<p style="font-size: 20px">
<strong>✨【理论+实战】保姆级成长笔记✨</strong>
</p>
</div>
<div align="center">
<div>
<a href="https://js-collection.netlify.app" target="_blank" style="padding: 5px">
<img alt="Netlify" src="https://api.netlify.com/api/v1/badges/75a7251a-f873-4aff-b387-6449ca241ef7/deploy-status">
</a>
<a href="https://js-collection.vercel.app" target="_blank" style="padding: 5px">
<img alt="Vercel" src="https://therealsujitk-vercel-badge.vercel.app/?app=408">
</a>
</div>
<div >
<img alt="code size" src="https://img.shields.io/github/languages/code-size/142vip/JavaScriptCollection" style="padding: 5px">
<img alt="release version" src="https://img.shields.io/github/v/release/142vip/JavaScriptCollection" style="padding: 5px">
<img alt="repo size" src="https://img.shields.io/github/repo-size/142vip/JavaScriptCollection" style="padding: 5px">
</div>
<div id="wechat">
<a href="#we-media-container">
<img alt="作者: 储凡" src="https://img.shields.io/badge/公众号-储凡-8A2BE2.svg" style="text-align: center;">
</a>
</div>
<div>
<a href="https://js-collection.netlify.app" target="_blank" style="padding: 5px">
<img alt="Netlify" src="https://api.netlify.com/api/v1/badges/75a7251a-f873-4aff-b387-6449ca241ef7/deploy-status">
</a>
<a href="https://js-collection.vercel.app" target="_blank" style="padding: 5px">
<img alt="Vercel" src="https://therealsujitk-vercel-badge.vercel.app/?app=408">
</a>
</div>
<div >
<img alt="code size" src="https://img.shields.io/github/languages/code-size/142vip/JavaScriptCollection" style="padding: 5px">
<img alt="release version" src="https://img.shields.io/github/v/release/142vip/JavaScriptCollection" style="padding: 5px">
<img alt="repo size" src="https://img.shields.io/github/repo-size/142vip/JavaScriptCollection" style="padding: 5px">
</div>
<div id="repo-link">
<a href="https://github.com/142vip/408CSFamily" target="_blank" style="padding: 5px">GitHub</a>
|
<a href="https://gitee.com/chufan443/408CSFamily" target="_blank" style="padding: 5px">Gitee</a>
</div>
</div>
<br><br>
<br>

<!-- #region quick-start -->

这里是工作、学习、生活中总结的各类文章,`有技术``有生活``有思考`
所有内容会选择性的发表于`微信公众号``掘金``CSDN``Github` ,实际内容以本仓库排版、校对为主。
所有内容会选择性的发表在`微信公众号``掘金``CSDN``Github`平台上(延迟1-2篇) ,实际内容以本仓库排版、校对为主。

## 在线浏览

Expand Down Expand Up @@ -470,27 +487,25 @@ Nuxt.js是在vue框架上进行封装的,主要是用来解决单体页面的

若系列文章对你有所帮助,欢迎订阅公众号或微信”骚扰“,获取更多内容。**商务合作请备注来意**

<div style="text-align: center">
<div align="center" >
<table style="border:none;border-collapse:collapse;" border="0">
<div style="text-align: center;margin: 10px" id="we-media-container">
<div align="center" >
<img src="https://cdn.statically.io/gh/142vip/cdn_service@main/media/fairy-sister-450x450.jpg"
width="250px"
style="margin: 10px"
width="200px"
style="margin:5px"
title="欢迎关注公众号:Rong姐姐好可爱" alt="关注公众号"/>
<img src="https://cdn.statically.io/gh/142vip/cdn_service@main/media/chu-fan-443-650x650.jpg"
width="250px"
style="margin: 10px"
width="200px"
style="margin:5px"
title="欢迎添加微信:chufan443 " alt="联系作者"/>
</table>
</div>
<div style="text-align: center;padding: 10px" align="center">
<div style="text-align: center;padding: 5px" align="center">
<a
href="https://github.com/mmdapl"
rel="nofollow noreferrer"
target="_blank"
title="点击跳转Github主页"
>
<img src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/github.svg" alt="Github"
<img src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/github.svg" alt="CSDN" title="CSDN"
style="margin: 5px;width: 24px;height: 24px;">
</a>
<a
Expand All @@ -499,7 +514,7 @@ Nuxt.js是在vue框架上进行封装的,主要是用来解决单体页面的
target="_blank"
title="点击跳转码云主页"
>
<img src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/gitee.svg" alt="Gitee"
<img src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/gitee.svg" alt="Gitee" title="Gitee"
style="margin: 5px;width: 24px;height: 24px;">
</a>
<a
Expand All @@ -517,7 +532,9 @@ Nuxt.js是在vue框架上进行封装的,主要是用来解决单体页面的
target="_blank"
title="点击跳转B站主页"
>
<img src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/bilibili.svg" alt="Bilibili"
<img
src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/bilibili.svg"
alt="Bilibili"
style="margin: 5px;width: 24px;height: 24px;">
</a>
<a
Expand All @@ -526,13 +543,15 @@ Nuxt.js是在vue框架上进行封装的,主要是用来解决单体页面的
target="_blank"
title="点击跳转CSDN博客主页"
>
<img src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/csdn.svg" alt="CSDN"
title="点击跳转CSDN博客主页"
style="margin: 5px;width: 24px;height: 24px;">
<img
src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/csdn.svg"
title="点击跳转CSDN博客主页" alt="CSDN"
style="margin: 5px;width: 24px;height: 24px;"
>
</a>
</div>
</div>

交流/加群/互看朋友圈 当然:**聊天/提问/建议/提需求** 可以在本公众号直接私信,后台可以看到,有时间即会回复,偶尔的延迟和疏漏还请小伙伴们谅解,**蟹蟹**
交流/加群/互看朋友圈**聊天/提问/建议/提需求** 可以在公众号直接**私信**有时间即会回复,偶尔的延迟和疏漏还请小伙伴们谅解,蟹蟹

<!-- #endregion we-media -->
35 changes: 0 additions & 35 deletions code/algorithm/find.js

This file was deleted.

40 changes: 0 additions & 40 deletions code/algorithm/isUSD.js

This file was deleted.

19 changes: 0 additions & 19 deletions code/algorithm/spiralOrder.js

This file was deleted.

2 changes: 2 additions & 0 deletions code/algorithm/sword-point/排列/inversePairs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
function InversePairs(nums) {
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @Description:第一个只出现一次的字符
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-04-28 22:23:51
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-04-28 22:24:20
*/

Expand Down
6 changes: 3 additions & 3 deletions code/algorithm/sword-point/数组和矩阵/printMatrix.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @Description: 顺时针打印矩阵
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-04-27 14:22:13
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-04-28 22:25:16
*/

Expand Down Expand Up @@ -89,7 +89,7 @@ function printMatrixTwo(matrix) {
if (matrix.length === 0) break
else seq.push(...matrix.pop().reverse())

// 左侧 从下网上aa'a's'd'fa's'da's'd'fa's'da's'd'fa's'd
// 左侧
const leftResult = []
for (const row of matrix) {
leftResult.push(row.shift())
Expand Down
4 changes: 2 additions & 2 deletions code/algorithm/sword-point/栈队列堆/firstAppearingOnce.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @Description: 【中等】字符流中的第一个不重复的字符
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-04-29 21:40:02
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-04-29 21:47:24
*/

Expand Down
4 changes: 2 additions & 2 deletions code/algorithm/sword-point/栈队列堆/getLeastNumbers.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @Description: 最小的K个数
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-04-28 23:12:33
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-04-28 23:35:30
*/

Expand Down
4 changes: 2 additions & 2 deletions code/algorithm/sword-point/栈队列堆/getMinInJSStack.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @Description: 【较难】包含min函数的栈
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-04-29 22:04:17
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-04-29 22:04:36
*/

Expand Down
4 changes: 2 additions & 2 deletions code/algorithm/sword-point/栈队列堆/insertAndGetMedian.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @Description: 【中等】数据流中的中位数
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-04-29 21:38:01
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-04-29 21:39:13
*/

Expand Down
8 changes: 8 additions & 0 deletions code/algorithm/sword-point/栈队列堆/isPopOrder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
*
* @param pushV int整型一维数组
* @param popV int整型一维数组
* @return bool布尔型
*/
function IsPopOrder(pushV, popV) {
}
4 changes: 2 additions & 2 deletions code/algorithm/sword-point/栈队列堆/maxInWindows.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @Description: 【较难】滑动窗口的最大值
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-04-29 21:49:42
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-04-29 21:58:32
*/

Expand Down
4 changes: 2 additions & 2 deletions code/algorithm/sword-point/栈队列堆/stackToQueue.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @Description: 【简单】用两个栈实现队列
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-04-29 22:06:51
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-04-29 22:07:22
*/

Expand Down
Empty file.
7 changes: 7 additions & 0 deletions code/algorithm/sword-point/树/convert.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function TreeNode(x) {
this.val = x
this.left = null
this.right = null
}
function Convert(pRootOfTree) {
}
16 changes: 8 additions & 8 deletions code/algorithm/sword-point/树/findPath.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* @Description: 【较难】二叉树中和为某一值的路径
* @Description: 【中等】二叉树中和为某一值的路径(二)
* @Version: Beta1.0
* @Author: 【B站&公众号】储凡
* @Author: 微信公众号:储凡
* @Date: 2021-05-12 22:01:00
* @LastEditors: 【B站&公众号】储凡
* @LastEditors: 微信公众号:储凡
* @LastEditTime: 2021-05-12 22:01:45
*/

/* function TreeNode(x) {
this.val = x;
this.left = null;
this.right = null;
} */
function TreeNode(x) {
this.val = x
this.left = null
this.right = null
}

function FindPath(root, expectNumber) {
const result = []
Expand Down

0 comments on commit 6ff0ad5

Please sign in to comment.