02 2019 档案

摘要:一、问题 给定一个含有 n 个正整数的数组和一个正整数 s ,找出该数组中满足其和 ≥ s 的长度最小的连续子数组。如果不存在符合条件的连续子数组,返回 0。 示例: 输入: s = 7, nums = [2,3,1,2,4,3]输出: 2解释: 子数组 [4,3] 是该条件下的长度最小的连续子数组 阅读全文
posted @ 2019-02-27 16:49 锅锅7533 阅读(246) 评论(0) 推荐(0)
摘要:一、问题 给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。 函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2。 说明: 返回的下标值(index1 和 index2)不是从零开始的。你可以假设每个输入只对应唯一的答案,而且 阅读全文
posted @ 2019-02-23 15:05 锅锅7533 阅读(115) 评论(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 阅读(153) 评论(0) 推荐(0)
摘要:一、Problems Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Examp 阅读全文
posted @ 2019-02-14 12:23 锅锅7533 阅读(252) 评论(0) 推荐(0)
摘要:一、Eclipse如何同时注释多行 用鼠标选中 需要注释的多行代码, 有两种快捷键方式,1):ctrl+/ 2):ctrl+shift+/ 一、Eclipse如何同时注释多行 用鼠标选中 需要注释的多行代码, 有两种快捷键方式,1):ctrl+/ 2):ctrl+shift+/ 二、Visual s 阅读全文
posted @ 2019-02-01 11:03 锅锅7533 阅读(339) 评论(0) 推荐(0)