面试题目汇总
迈际
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
454. 4Sum II
Given four integer arraysnums1,nums2,nums3, andnums4all of lengthn, return the number of tuples(i, j, k, l)such that: 0 <= i, j, k, l < n nums1[i] + nums2[j] + nums3[k] + nums4[l] == 0 Example 1: Input: nums1 = [1,2], nums2 = [-2,-1], ...原创 2021-05-03 09:52:12 · 132 阅读 · 0 评论 -
33. Search in Rotated Sorted Array
class Solution { public: int search(vector<int>& nums, int target) { int left = 0, right = nums.size(), middle = 0; while(left!=right){ middle = (left+right)/2; if(nums[m.原创 2021-04-05 15:18:28 · 103 阅读 · 0 评论
分享