提交 533ea804 编写于 作者: C CyC2018

auto commit

上级 6942cf0c
......@@ -127,7 +127,7 @@ public int arrangeCoins(int n) {
int l = 0, h = n;
while(l <= h){
int m = l + (h - l) / 2;
long x = m * (m + 1) / 2;
long x = m * (m + 1L) / 2;
if(x == n) return m;
else if(x < n) l = m + 1;
else h = m - 1;
......
......@@ -1375,7 +1375,7 @@ poll 和 select 在速度上都很慢。
几乎所有的系统都支持 select,但是只有比较新的系统支持 poll。
## epoll 工作模式
## eopll 工作模式
epoll_event 有两种触发模式:LT(level trigger)和 ET(edge trigger)。
......
......@@ -102,11 +102,7 @@
position-0 : (2,3,1,0,2,5) // 2 <-> 1
(1,3,2,0,2,5) // 1 <-> 3
(3,1,2,0,2,5) // 3 <-> 0
<<<<<<< HEAD
(0,1,2,3,2,5) // already in position
=======
            (0,1,2,3,2,5) // already in position
>>>>>>> d1687d819fdd50d1b3323cfb327b355e2b5eca35
position-1 : (0,1,2,3,2,5) // already in position
position-2 : (0,1,2,3,2,5) // already in position
position-3 : (0,1,2,3,2,5) // already in position
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册