2020年11月4日,美国总统大选。
一个74岁,一个77岁,本该退休的年纪仍在为了一份工作焦灼地努力。
还有什么不值得努力的?
Go 开发过程中有时我们需要集合(set)这种容器,但 Go 本身未内置这种数据容器,故常常我们需要自己实现,其实实现也很简单。 附,推荐阅读:https://github.com/Visforest/goset map[xxx]struct{} 最常用和最容易想到的实现是使用 map,如: 1 2 3 type StrSet struct{ data map[string]s...
原题:https://leetcode.cn/problems/minimum-size-subarray-sum 问题 给定一个含有 n 个正整数的数组和一个正整数 target 。 找出该数组中满足其和 ≥ target 的长度最小的 连续子数组 [numsl, numsl+1, …, numsr-1, numsr] ,并返回其长度。如果不存在符合条件的子数组,返回 0 。 示例...
在 Ubuntu 22.04.2 LTS 上,mongodb 5.0.17 启动时报错, 1 2 3 root@node1:/home/uphie# systemctl start mongo Job for mongo.service failed because the control process exited with error code. See "systemctl stat...
多维排序
最长公共前缀
发现新版本的内容。