- 👋 Hi, I’m @2lovecode
2lovecode / code-segment Goto Github PK
View Code? Open in Web Editor NEW代码集和收藏项目目录。包括数据结构,算法,练习等的简单实现以及收藏项目列表。
License: GNU General Public License v3.0
代码集和收藏项目目录。包括数据结构,算法,练习等的简单实现以及收藏项目列表。
License: GNU General Public License v3.0
PATH: code-segment/PhpCodes/DataStructureAndAlgorithm/SkipList/SkipList.php
Bug:
randomLevel()方法返回随机level时,在当前上下文环境(max_level = 3)中level层级最高到1(起始为0)导致第2层级根本不会有链表出现
修复建议:
private function randomLevel() {
$level = 1;
for ($i = 1; $i < $this->maxLevel; $i++) {
$r = rand();
if ($r % 2 == 1) {
$level++;
}
}
return $level;
}
我的联系方式:
一键配置 lnmp 网站 ............ ShellCodes/AutoConfigLnmpWebSite/AutoConfigLnmpWebSite.sh
生成大文件 .......................... PhpCodes/FileOperation/GenerateBigFile
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.