摘要: 1 class Solution { public: bool search(vector<int>& nums, int target) { int index = -1; for (int i = 0; i < nums.size() - 1; ++i){ if (nums[i] > nums[ 阅读全文
posted @ 2023-04-05 14:47 破忒头头 阅读(25) 评论(0) 推荐(0)
摘要: class Solution { public: int mySqrt(int x) { long a = x; while (a * a > x){ a = (a + x / a) / 2; } return a; } }; 阅读全文
posted @ 2023-04-05 11:44 破忒头头 阅读(19) 评论(0) 推荐(0)