摘要:
1 class Solution { 2 public: 3 int mySqrt(int x) { 4 long res = x; 5 while (res * res > x) { 6 res = (res + x / res) / 2; 7 } 8 return res; 9 ... 阅读全文
posted @ 2018-04-26 21:56
newmoonn
阅读(107)
评论(0)
推荐(0)
摘要:
1 class Solution { 2 public: 3 bool canWinNim(int n) { 4 if(n % 4 == 0) return false; 5 else return true; 6 } 7 }; 阅读全文
posted @ 2018-04-26 21:55
newmoonn
阅读(82)
评论(0)
推荐(0)
摘要:
Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn’t ma 阅读全文
posted @ 2018-04-26 17:07
newmoonn
阅读(69)
评论(0)
推荐(0)

浙公网安备 33010602011771号