Fork me on GitHub

文章分类 -  算法应用

摘要:class SnowFlake{ /** 开始时间截 (2020-08-18 9:05:37) */ const twepoch = 1597712737000; /** 机器id所占的位数 */ const workerIdBits = 10; //支持的最大机器id,结果是1023 (这个移位算 阅读全文
posted @ 2022-09-03 11:48 v_nice 阅读(72) 评论(0) 推荐(0)
摘要:<?php class AcAutomation { private $root; public function __construct($keywords = array()) { $this->root = $this->createNode(); foreach ($keywords as 阅读全文
posted @ 2022-09-03 11:45 v_nice 阅读(73) 评论(0) 推荐(0)

1