seven-innovation-base / official-website

现代化 TypeScript 站点
https://seven-innovation-base.github.io/
Apache License 2.0
13 stars 42 forks source link

- [ ] 成员展示页洗牌算法排列 - #feature. @redhat123456 #39

Open ssmath opened 3 years ago

ssmath commented 3 years ago
ssmath commented 3 years ago

@redhat123456 so slowly

yeshan333 commented 3 years ago

什么时候操作完

redhat123456 commented 3 years ago

已完成 2021/8/1

redhat123456 commented 3 years ago

还得再改改

redhat123456 commented 3 years ago

又好了

redhat123456 commented 2 years ago

洗牌算法没有用到leetcode上的算法

而是使用了一个函数

_.shuffle([1, 2, 3, 4]); // => [4, 1, 3, 2]

著名的js库lodash 上的函数

后面进入这个方向的同学可以根据这个来进行学习,js库用得好也挺好的