摘要:
一、问题 给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。 函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2。 说明: 返回的下标值(index1 和 index2)不是从零开始的。你可以假设每个输入只对应唯一的答案,而且 阅读全文
posted @ 2019-02-23 15:05
锅锅7533
阅读(110)
评论(0)
推荐(0)
摘要:
一、Problem Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for 阅读全文
posted @ 2019-02-23 10:36
锅锅7533
阅读(145)
评论(0)
推荐(0)