Problem Description Fang Fang says she wants to be remembered.I promise her. We define the sequence F of strings.F0 = ‘‘f",F1 = ‘‘ff",F2 = ‘‘cff",Fn = ...
分类:
其他好文 时间:
2016-08-24 11:05:17
阅读次数:
139
1 获取一个月的天数 2 获取指定日期的年、月、日、时、分、秒、周几信息 3 计算两个时间之间的天数 ...
分类:
其他好文 时间:
2016-08-24 11:05:19
阅读次数:
153
yum的基本概述:yum是rpm的前端工具,可以利用元数据文件了解到一个仓库中有哪些包,每个包之间的依赖关系,并自动解决,yum会缓存这个文件,并且通过分析校验码(repomd.xml)文件来检查yum仓库是否更新了,来同步自身缓存的元数据文件。当然每个rpm包制作的时候就已经在文件列..
分类:
其他好文 时间:
2016-08-24 09:58:05
阅读次数:
295
1.判断索引是否存在IndicesExistsResponse indexResponse = ia.client.admin().indices().prepareExists("blog")
.execute().actionGet();System.out.println(indexResponse.isExists());也可以同时判断多个索引是否存在:IndicesExistsRespon...
分类:
其他好文 时间:
2016-08-24 09:58:06
阅读次数:
155
Question:
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
把有序数组转化成平衡的BST
Algorithm:
找到数组中间的元素,作为根节点,则根节点左边是左子树,根节点右边是右子树,接着递归
Accepted Co...
分类:
其他好文 时间:
2016-08-24 09:58:55
阅读次数:
161
Question:
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
把有序链表转化成平衡的BST
Algorithm:
把链表转化成数组,再根据leetcode
No108. Convert Sort...
分类:
其他好文 时间:
2016-08-24 09:57:42
阅读次数:
164
一、cookie机制和session机制的区别 具体来说cookie机制采用的是在客户端保持状态的方案,而session机制采用的是在服务器端保持状态的方案。同时我们也看到,由于采用服务器端保持状态的方案在客户端也需要保存一个标识,所以session机制可能需要借助于cookie机制来达到保存标识的 ...
分类:
其他好文 时间:
2016-08-24 09:58:17
阅读次数:
118
.h .m 使用示例: 注意: 光标的位置还需要调整一下,不然不居中,要回到原位。 ...
分类:
其他好文 时间:
2016-08-24 09:58:08
阅读次数:
155
1.针对开发语言和脚本语言的深度掌握和熟练使用 2.对产品的相关开发技术和设计架构,甚至深入到代码实现角度的深层次掌握和理解 3.锻炼和提升自己的测试分析设计和评估能力,并不断完善自己的测试体系和思想 4.坚实的自动化测试以及实践积累 5.对操作系统,网络等知识更深入的掌握和实践 6.保持对测试行业 ...
分类:
其他好文 时间:
2016-08-24 09:56:22
阅读次数:
119
W: GPG 错误:http://archive.ubuntukylin.com:10006 xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 8D5A09DC9B929006的解决办法 出现以上错误提示时,只要把后八位拷贝一下来,并在[终端]里输入以下命令并 ...
分类:
其他好文 时间:
2016-08-24 09:56:11
阅读次数:
139
Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the sam ...
分类:
其他好文 时间:
2016-08-24 09:54:10
阅读次数:
142
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating ...
分类:
其他好文 时间:
2016-08-24 09:53:02
阅读次数:
168
1.打开终端 2 移除现有 Ruby 默认源 输入以下指令 $gem sources --remove https://rubygems.org/ 3.使用新的源 输入以下指令 $gem sources -a https://ruby.taobao.org/ 4.验证新源是否替换成功 输入以下指令 ...
分类:
其他好文 时间:
2016-08-24 09:55:02
阅读次数:
259
1准备材料,首先准备一个带串口的stm32程序(这里选用整点原子的官方串口例程这里自己去找不讲),然后去mavlink官网下载mavlink源码,这里重点讲解这里a.进入mavlink官网(http://qgroundcontrol.org/mavlink/start),下拉到MAVLink Cod... ...
分类:
其他好文 时间:
2016-08-24 09:55:22
阅读次数:
3559
最近新公司在用requireJS进行JS的整合,刚开始接触有点蒙,于是深入了解了一下。requireJS主要是为了解决一下两个问题: (1)实现js文件的异步加载,避免网页失去响应; (2)管理模块之间的依赖性,便于代码的编写和维护。 但是在使用的时候有个最大的困惑就是加载模块时候的路径问题,在re ...
分类:
其他好文 时间:
2016-08-24 09:54:32
阅读次数:
123