摘要:leetcode 1206 设计跳表 题目 代码 class Skiplist { #define MAX_LEVEL 8 public: struct SkipNode { int value_; std::vector<std::shared_ptr<SkipNode>> next_; Skip
阅读全文
摘要: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
阅读全文
摘要:BM 2000 笔记 level 2 deal 24 打 4 红心,一共要有 10 个赢墩。 红心会有 4 个赢墩 黑桃会有 1 个赢墩 方片会有 1 个赢墩 梅花会有 4 个赢墩 这里需要注意的是当前 NS 两家一共有 8 张梅花,ES 两家很可能并没有很多张草花,为了避免将吃,需要在兑现草花前,
阅读全文
摘要:C++11 ThreadPool 笔记 Thread pools Advantages Target Implement Interface
阅读全文
摘要:Word List 2024 记录 2024 年遇到的单词 submission n. 提交;服从;屈服;[律]意见 unwieldy adj. 笨拙的;笨重的;不灵便的;难处理的 unwieldiness n. 笨拙 cryptic adj. 秘密的,隐秘的 panel n. 仪表板;嵌板;座谈小
阅读全文
摘要:CodeWars Python Question ExesOhs #https://www.codewars.com/kata/55908aad6620c066bc00002a def xo(s): xlst = [x for x in s if x.lower() == 'x'] olst = [
阅读全文
摘要:CodeWars Shell Question Clock #https://www.codewars.com/kata/55f9bca8ecaa9eac7100004a h=
1m=2 s=
3echo"((h*60+
m)∗60+s)*1000" | bc EvenOrOdd #ht
阅读全文
摘要:Windows Software Tips scoop Set-ExecutionPolicy RemoteSigned -Scope CurrentUser iwr -useb get.scoop.sh | iex scoop bucket add main https://mirror.nju.
阅读全文