
二分
文章平均质量分 84
Higgins011
这个作者很懒,什么都没留下…
展开
-
Robin Hood 二分
We all know the impressive story of Robin Hood. Robin Hood uses his archery skills and his wits to steal the money from rich, and return it to the poor. There are n citizens in Kekoland, each person ...原创 2018-02-10 10:58:21 · 381 阅读 · 2 评论 -
如何判断二分的边界(完善中)
边界一定不能写成死循环。多画几次就能看出来的。原创 2018-02-11 14:29:10 · 493 阅读 · 0 评论 -
Median
Given N numbers, X1, X2, ... ,XN, let us calculate the difference of every pair of numbers: ∣Xi- Xj∣ (1 ≤ i < j ≤ N). We can getC(N,2) differences through this work, and now your task is to find原创 2018-02-11 14:44:07 · 421 阅读 · 0 评论