dreamerlzl
dreamerlzl
红黑树部分的补充
作者写得不错,很感谢笔记的分享,这对复习和快速的准备很有帮助。 (个人看法)感觉红黑树那里可以建议看Algorithms第4版,因为我对比了一下Introduction to Algorithm和Algorithms第四版的引入,感觉后者那种把左倾红黑树作为2-3树(3阶B树)的二叉树表现形式的观点似乎更容易记忆;把3节点的2个key拆开,左边为红色右边为黑色,因此红色的节点表明和parent节点等black height;新插入的节点作为红色是为了假设它和parent节点等高, 插入之后的一系列操作可以理解是3节点变成4节点之后的分裂和中间节点的上升等等。 当然,这也可能是是因为我对经典红黑树理解不能...感觉四条性质放下来很抽象。
## question when I am using HTTPie to test an endpoint with `http -f POST http://localhost:8081/subscription name=foo`, the following error is reported ``` HTTP/1.1 415 Unsupported Media Type content-length: 116...
跑了一千次2C的测试,失败的次数有10次以上; 基本都是commit index出现不一致。由于log都有上千行,这里就不放了。就是提醒各位在仔细阅读源代码和笔记之前先自己测试一下到底通过率如何。
大致看了下源代码,感觉可能有以下问题: 当follower 1的election timer超时调用startElection()后,如果是rpc的RequestVote/AppendEntries先拿到锁并且发现有更大的term x, 那么follower 1会依然成为candidate并且term会是x + 1。那么一个刚当上leader的节点可能会被由follower转candidate的1替代掉,test的one()会失败。 如果理解错了,望谅解(我自己的lab 2当时卡在这里了)。
Judging from my understanding of the code and the memory profile of parca, it seems that there are no configurations/controls for the growing memory usage of symbolization caching: https://github.com/parca-dev/parca/blob/6dae29a493dfab35448ea2324c07c60aafbf50ad/pkg/symbol/elfutils/debuginfofile.go#L43 Currently...
`silent !xdg-open http://localhost:3000/` succeed but no tab is popped up on my browser(firefox). os: fedora 38 neovim version: NVIM v0.9.4 Build type: Release LuaJIT 2.1.1692716794 Related issue: https://github.com/neovim/neovim/issues/19724 But this...
For a same golang process, a location shows different File under different timestamps, while they can be unified and show a 0 value during compare:  The total memory usage of the parca-agent pod can surpass 500MB on my...
rto.icu 我自己做的寻找全球远程工作的网站,支持按照时区/工种/岗位/关键字等搜索远程工作,尤其对华人友好!
国内: no-rto.cn 海外: rto.icu 没有广告,支持免费的过滤搜索,除了国内也支持欧洲,美国