面试中LeetCode常见算法整理——双指针

面试中LeetCode常见算法整理——双指针 1. 有序数组的Two Sum 167. Two Sum II - Input array is sorted面试 class Solution { public: vector<int> twoSum(vector<int>& numbers, int target) { int l = 0, r = numbers.size() - 1;
相关文章
相关标签/搜索