algorithm-php
algorithm-php copied to clipboard
🍭🍭uniting the internal work in a way that is in PHP
学到了很多
Hi there, I couldn't find a `SECURITY.md` in your repository and am not sure how to best contact you privately to disclose a security issue. Can you add a `SECURITY.md`...
在一本算法结构的书中,介绍的快速排序,每一趟排序都会去交换。 但这里的好像只是找到了比基准值大的和小的两个数组,然后最后再去合并。 书上的c的实现: `int Quick(List R, int low, int high) { x=R[low]; while(low
更好的理解建议
/** * BubbleSort * 冒泡排序,依次比较相邻的两个元素的大小,如果前面的大于后面的,那么交换两者位置 * @param array $container * @return array */ function BubbleSort(array $container) { $count = count($container); for ($j = 1; $j < $count; $j++) { for...
:fire: 列几个小清单 --- - [ ] 每周一推一道算法 - [ ] 每周三推一道算法 - [ ] 每周五推一道算法 - [ ] 理解所学算法思想 :rocket: 当然还有一些小事 --- - [ ] 主动多拉几个志同道合的盆友进来优化并提供更多学习资料 - [ ] 重写`REDAME`...
求蓄水池抽样算法
给定一个数据流,数据流长度N很大,且N直到处理完所有数据之前都不可知,请问如何在只遍历一遍数据(O(N))的情况下,能够随机选取出m个不重复的数据。
比如: MBaseSort.php 基数排序 MSD LBaseSort.php 基数排序 LSD 如果 未实现,最好标示一下。
Unfortunately, I do not speak, nor can I read Chinese. However, this project seems interesting and from what I managed to translate using google seems like a really interesting read....