# algorithm **Repository Path**: yanyunchangfeng/algorithm ## Basic Information - **Project Name**: algorithm - **Description**: 这是算法题 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-05-09 - **Last Updated**: 2023-06-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

## 介绍 你好,我是[燕云长风](https://yanyunchangfeng.github.io)。 寓意:结合李白著名的边塞诗《关山月》取【燕云长风】—— 长风几万里,吹度玉门关。 这是一系列的算法题,如下: * [冒泡算法](src/bubble-sort/index.ts) * [快速排序](src/quick-sort/index.ts) * [插入排序](src/insert-sort/index.ts) * [质数判定](src/is-prime/index.ts) * [数组去重](src/unique/index.ts) * [深度克隆](src/deep-clone/index.ts) * [日历算法](src/calendar-algorithm/index.ts) * [生成随机数](src/random-number/index.ts) * [颜色轮训算法](src/color-util/index.ts) * [类的多重继承](src/multi-inherit/index.ts) ## 下载 ``` git clone https://github.com/yanyunchangfeng/algorithm.git ``` ## 安装 ``` npm install yycf-algorithm or yarn add yycf-algorithm ``` ## 使用 ``` import { bubbleSort,insertSort,quickSort,unique,deepClone,isPrime, ranNum, getMonthData,genColor,copyProperties,mix } from 'yycf-algorithm'; bubbleSort(); quickSort(); insertSort(); unique(); deepClone(); isPrime(); getMonthData(); genColor(); copyProperties(); mix(); ranNum(); ``` ## 系列项目 | 名称 | 描述 | | ---- | ---- | | NiceFish(美人鱼) | 这是一个系列项目,目标是示范前后端分离的开发模式:前端浏览器、移动端、Electron 环境中的各种开发模式。后端有两个版本:SpringBoot 版本和 SpringCloud 版本,http://git.oschina.net/mumu-osc/NiceFish/ | | NiceFish-React | 这是React 版本,基于React 18.0.0 ,使用 Antd、Inversify、 定制版 Bootstrap开发。 https://gitee.com/mumu-osc/NiceFish-React| | nicefish-ionic | 这是一个移动端的 demo,基于 ionic,此项目已支持 PWA。http://git.oschina.net/mumu-osc/nicefish-ionic | | NiceBlogElectron | 这是一个基于 Electron 的桌面端项目,把 NiceFish 用 Electron 打包成了一个桌面端运行的程序。这是由 ZTE 中兴通讯的前端道友提供的,我 fork 了一个,有几个 node 模块的版本号老要改,如果您正在研究如何利用 Electron 开发桌面端应用,请参考这个项目,https://github.com/damoqiongqiu/NiceBlogElectron| | OpenWMS | 用来示范管理后台型系统的最佳实践,https://gitee.com/mumu-osc/OpenWMS-Frontend| | nicefish-springboot | 用来示范前后端分离模式下,前端代码与后端服务的对接方式,已经完成了基线版本,并且在腾讯云上面做了实际的部署。代码仓库在这里: https://gitee.com/mumu-osc/nicefish-spring-boot ,腾讯云上的演示地址在这里: http://118.25.136.164 ,以此为基础,你可以继续开发出适合自己业务场景的代码。| | nicefish-springcloud | 用来示范前后端分离模式下,前端代码与分布式后端服务的对接方式,即将完成,代码最近放出。| ## 单元测试 ``` yarn test or npm run test ``` ## 打包分析 ``` yarn build-analyzer or npm run build-analyzer ``` ### 一些本地开发命令 ~~~bash //启动本地环境 yarn start //build可打包各种模块规范 yarn build-umd-esm-cjs //发布到 npm npm publish ~~~ ## 社交主页 * [燕云长风 github](https://github.com/yanyunchangfeng) ## 开源许可证 MIT