摘要: https://leetcode.com/problems/find-all-duplicates-in-an-array/description/ 参考:http://www.cnblogs.com/grandyang/p/4843654.html Given an array of intege 阅读全文
posted @ 2018-04-09 22:20 月夜_1 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/studentyyl/article/details/21177445 vector是一个线性顺序结构。相当于数组,但其大小可以不预先指定,并且自动扩展。它可以像数组一样被操作,由于它的特性我们完全可以将vector 看作动态数组。 在创建一个vec 阅读全文
posted @ 2018-04-09 22:06 月夜_1 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/1-bit-and-2-bit-characters/description/ We have two special characters. The first character can be represented by one bi 阅读全文
posted @ 2018-04-09 21:11 月夜_1 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/description/ 题目描述: Given an array of integers where 1 ≤ a[i] ≤ n (n = siz 阅读全文
posted @ 2018-04-09 19:28 月夜_1 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://leetcode.com/problems/move-zeroes/ 题目内容: Given an array nums, write a function to move all 0's to the end of it while maintaining the rel 阅读全文
posted @ 2018-04-09 16:23 月夜_1 阅读(129) 评论(0) 推荐(0) 编辑
摘要: tar.gz(bz或bz2等) 一、安装1、打开一个SHELL,即终端2、用cd 命令进入源代码压缩包所在的目录3、根据压缩包类型解压缩文件(*代表压缩包名称)tar -zxvf ****.tar.gz tar -jxvf ****.tar.bz(或bz2)4、用CD命令进入解压缩后的目录5、输入编 阅读全文
posted @ 2018-04-09 12:08 月夜_1 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 参考 :https://blog.csdn.net/u013831198/article/details/72472040 请参照以下步骤安装Foxit Reader(适用于Linux): • 使用以下命令进入下载文件所在目录(以/tmp文件夹为例): # cd /tmp • 使用以下命令解压可执行 阅读全文
posted @ 2018-04-09 10:32 月夜_1 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 485. Max Consecutive Ones 最大连续1的个数 Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Outp 阅读全文
posted @ 2018-04-09 01:21 月夜_1 阅读(133) 评论(0) 推荐(0) 编辑