摘要: 一、问题 给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。 函数应该返回这两个下标值 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)
摘要: 一、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 阅读(240) 评论(0) 推荐(0)
摘要: 一、Eclipse如何同时注释多行 用鼠标选中 需要注释的多行代码, 有两种快捷键方式,1):ctrl+/ 2):ctrl+shift+/ 一、Eclipse如何同时注释多行 用鼠标选中 需要注释的多行代码, 有两种快捷键方式,1):ctrl+/ 2):ctrl+shift+/ 二、Visual s 阅读全文
posted @ 2019-02-01 11:03 锅锅7533 阅读(333) 评论(0) 推荐(0)
摘要: 一、准备工作 1、首先需要有个已经用javaweb等技术做好了的网站项目。 2、然后需要有个服务器,这里服务器我买的是阿里云服务器学生机 购买网址https://promotion.aliyun.com/ntms/campus2017.html?spm=5176.8142029.388261.533 阅读全文
posted @ 2018-07-16 16:32 锅锅7533 阅读(748) 评论(0) 推荐(0)
摘要: 1、问题: 2、解决:依次点击 Window-》Preference-》Validation 将JSON Validator 的两个复选框勾掉 如上图 3、引入ueditor组件 <script type="text/javascript" src="${pageContext.request.co 阅读全文
posted @ 2018-05-10 00:35 锅锅7533 阅读(400) 评论(0) 推荐(0)
摘要: http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd 将上诉代码添加进<web-app 阅读全文
posted @ 2018-05-01 11:45 锅锅7533 阅读(1459) 评论(0) 推荐(0)
摘要: 项目右键->Properties->Java build Path add library->jar system library,选默认的default 阅读全文
posted @ 2018-05-01 10:31 锅锅7533 阅读(1316) 评论(0) 推荐(0)
摘要: 一、locate 命令 按文件名搜索 搜索速度快,但不适合精确查找。一般不用。 二、find 命令 1、find [范围] [条件] [文件名] / 是搜索范围,根目录 。 缩小范围/root/ 表root目录下 等 -name 是根据名称 查不到,因为不是模糊查询。文件名要具体指定 2、如果想要模 阅读全文
posted @ 2018-04-24 10:14 锅锅7533 阅读(3979) 评论(0) 推荐(0)
摘要: 一、创建目录 mkdir 命令mkdir用于创建目录 比如 但不支持级联创建 加 –p 可以创建级联目录 二、删除空目录 rmdir 1命令rmdir 只能删除空目录,不能删除文件,如果目录下有文件则不能删除,一般不用它。 2、命令rm 可删除文件,不能删除目录 -r 删除目录用的选项,可以删除非空 阅读全文
posted @ 2018-04-24 10:09 锅锅7533 阅读(715) 评论(0) 推荐(0)