摘要:
Handle 'broken pipe' error in Go (Golang) https://gosamples.dev/broken-pipe/ The broken pipe is a TCP/IP error occurring when you write to a stream wh 阅读全文
摘要:
python转数字 l = ['[100,600)', '[600,1000)', '[1000,1001)', '(-inf,-100)', '(12323,+inf)']def f(i: str): for r in {'(', ')', '[', ']'}: i = i.replace(r, 阅读全文
摘要:
func reverseBits(num int) int { // a : 当前位置累计连续1的个数,遇到0为0 // b: 当前位置可以构成连续的1的个数 // 遇到0 状态转移 a, b, ans := 0, 0, 0 for i := 0; i < 32; i++ { if num&(1<< 阅读全文