大道至简
OS 并不理解 协程,协程是在 userspace 模拟出来的调度,协程运行在线程之上,所以协程没有上下文切换消耗。
userspace
阅读全文
题目来自
https://leetcode.com/problems/longest-palindromic-substring/
https://www.nowcoder.com/questionTerminal/c55f4f15cc3f4ff0adede7f9c69fa0c1
你可能有过下面的经历
自己在本地开发,由于 Github 配置了CI,所以需要将新的代码 push到 github 来测试
Github
所以你的 commit 上会有大量无用的 commit 与 commit message
commit
commit message
原题在这里
给你两个非空单向链表 l1, l2,将链表按照 个十百千 的顺序相加。
l1, l2
个十百千
https://leetcode.com/problems/longest-substring-without-repeating-characters/
美团面试时面试官出了一道算法题
https://leetcode.com/problems/ugly-number-ii/
可以将请求一股脑发送出去,然后 client 等待服务器回应,如图二,但第一个请求如果被阻塞,那么后面的请求都没办法处理缺点: 1. 对服务器负担很大 2. http request 级别的 队首阻塞
client
两个例子都使用了Golang最新的module feature第一个例子还是放到了$GOPATH下
Golang
module feature
$GOPATH
如果我的域名chaochaogege.com
chaochaogege.com
路径 $GOPATH/src/chaochaogege.com/
$GOPATH/src/chaochaogege.com/
chaochaogege.com里面有个project,filecatcher
project
filecatcher
我现在有两个proto文件都处于 chaochaogege.com/filecatcher/common/
proto
chaochaogege.com/filecatcher/common/
首先需要明确几个概念