env
apt-get update
apt-get install -y apt-
https://github.com/XmchxUp/aoc
Advent Of Code 20
Lab3 Raft
Part A Leader Election
Raft集群中的每台机器有三种
Code
Interpreter
写法优化
一开始用 Box+dyn trait 来表示实现了
https://github.com/XmchxUp/aoc
Advent Of Code 20
LeetCode
146. LRU Cache
一个 map 存储数据,一个 list 当 LRU