lc2351_第一个出现两次的字母 Microservice Architectures How to install specific version of Kubernetes? kubeadm安装k8s的一些避坑建议
Algorithm
lc2351_第一个出现两次的字母
1 2 3 4 5 6 7 8 9 10 11 12
// 直接简单map记录遍历就没了,签到题 funcrepeatedCharacter(s string)byte { char2index := make(map[byte]int) for i, runeC := range s { c := byte(runeC) if _, ok := char2index[c]; ok { return c } char2index[c] = i } return' ' }
# 舒服了,终于变成指定版本了,赶紧hold root@arm:~# kubeadm version kubeadm version: &version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2", GitCommit:"8b5a19147530eaac9476b0ab82980b4088bbc1b2", GitTreeState:"clean", BuildDate:"2021-09-15T21:37:34Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/arm64"} root@arm:~# apt-mark hold kubelet kubeadm kubectl kubelet set on hold. kubeadm set on hold. kubectl set on hold.