leetcode 1206 设计跳表

摘要: leetcode 1206 设计跳表 题目 代码 class Skiplist { #define MAX_LEVEL 8 public: struct SkipNode { int value_; std::vector<std::shared_ptr<SkipNode>> next_; Skip 阅读全文
posted @ 2024-06-30 07:45 LambdaQ 阅读(20) 评论(0) 推荐(0)

leetcode 261 以图判树

摘要: leetcode 261 以图判树 题目 并查集 模板 class UF { public: UF(int size) { father.resize(size); for (int i = 0; i < size; ++i) { father[i] = i; } } int find (int x 阅读全文
posted @ 2024-06-30 03:05 LambdaQ 阅读(30) 评论(0) 推荐(0)

BM2000 笔记

摘要: BM 2000 笔记 level 2 deal 24 打 4 红心,一共要有 10 个赢墩。 红心会有 4 个赢墩 黑桃会有 1 个赢墩 方片会有 1 个赢墩 梅花会有 4 个赢墩 这里需要注意的是当前 NS 两家一共有 8 张梅花,ES 两家很可能并没有很多张草花,为了避免将吃,需要在兑现草花前, 阅读全文
posted @ 2024-06-24 09:06 LambdaQ 阅读(16) 评论(0) 推荐(0)

ThreadPool 笔记

摘要: C++11 ThreadPool 笔记 Thread pools Advantages Target Implement Interface 阅读全文
posted @ 2024-06-19 02:26 LambdaQ 阅读(11) 评论(0) 推荐(0)

Word List 2024

摘要: Word List 2024 记录 2024 年遇到的单词 submission n. 提交;服从;屈服;[律]意见 unwieldy adj. 笨拙的;笨重的;不灵便的;难处理的 unwieldiness n. 笨拙 cryptic adj. 秘密的,隐秘的 panel n. 仪表板;嵌板;座谈小 阅读全文
posted @ 2024-06-16 21:07 LambdaQ 阅读(48) 评论(0) 推荐(0)

小鹤双拼键位图

摘要: 小鹤双拼键位图 阅读全文
posted @ 2024-06-07 16:49 LambdaQ 阅读(731) 评论(0) 推荐(0)

CodeWars Python Question

摘要: CodeWars Python Question ExesOhs #https://www.codewars.com/kata/55908aad6620c066bc00002a def xo(s): xlst = [x for x in s if x.lower() == 'x'] olst = [ 阅读全文
posted @ 2024-06-06 09:55 LambdaQ 阅读(47) 评论(0) 推荐(0)

CodeWars Shell Question

摘要: CodeWars Shell Question Clock #https://www.codewars.com/kata/55f9bca8ecaa9eac7100004a h=$1 m=$2 s=$3 echo "(($h*60+$m)*60+$s)*1000" | bc EvenOrOdd #ht 阅读全文
posted @ 2024-06-06 09:50 LambdaQ 阅读(58) 评论(0) 推荐(0)

读书笔记:数据密集型应用系统设计 数据复制

摘要: 数据密集型应用系统设计 数据复制 阅读全文
posted @ 2024-06-04 13:52 LambdaQ 阅读(9) 评论(0) 推荐(0)

Docker 笔记

摘要: docker 笔记 docker 启动 阅读全文
posted @ 2024-06-02 08:09 LambdaQ 阅读(11) 评论(0) 推荐(0)