Jinhong Liu
Results
2
issues of
Jinhong Liu
此处应该先判断cnt是否为0,否则nums[i]不仅参与了和上一个majority做比较,当cnt为0时,nums[i]也被当作了下一个majority
I have a leader selection program, I test the code and find a problem, here is it, if I cut the network, the session will timeout(Expected), but the client does't...