Problem: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice i ...
分类:
其他好文 时间:
2016-06-01 19:56:07
阅读次数:
147
Problem: Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume ...
分类:
其他好文 时间:
2016-06-01 19:46:32
阅读次数:
134
webdriver定位元素方法: id find_element_by_id() name find_element_by_name() class name find_element_by_class_name() tag name find_element_by_tag_name() link ...
分类:
Web程序 时间:
2016-06-01 11:32:58
阅读次数:
274
按CTRL+SHIFT+F (Find in files),勾上支持正则表达式,然后输入搜索内容: ^:b*[^:b#/]+.*$ 以上表达式的统计可做到:#开头 和 /开头 或者 空行 都不计入代码量。 如果需要只统计代码文件的代码量,可以选择查找文件的类型,比如什么*.xml, *.resx…. ...
分类:
其他好文 时间:
2016-06-01 01:39:11
阅读次数:
168
Google has updated their SDK tools ("Android SDK Tools" Rev. 23) in a way that also requires installing the latest "Android SDK Build-tools" package, ...
分类:
移动开发 时间:
2016-05-31 23:53:04
阅读次数:
638
题目 Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the l... ...
分类:
其他好文 时间:
2016-05-31 22:11:46
阅读次数:
239
find命令格式:find [搜索范围][匹配条件] -name 参数:按照名字查找 -iname参数:按照不区分名字查找 -size参数:按照尺寸查找 -user参数:按照所属用户查询 -group:按照所属组查询 同上 -amin:访问时间access -cmin:文件更改属性change 用法 ...
分类:
系统相关 时间:
2016-05-31 20:42:58
阅读次数:
212
maven编译的时候遇到的奇葩问题, 非常奇葩, 所有其他同事都没有遇到 , 仅仅是我遇到了 不清楚是因为用了最新的JDK的缘故(1.8 update91)还是其他什么原因. 总之是证书的问题. 当时的情况是maven去公司的nexus中心下文件 , nexus是以https开头的地址.下载的时候就 ...
分类:
其他好文 时间:
2016-05-31 19:04:48
阅读次数:
164
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo ...
分类:
其他好文 时间:
2016-05-31 18:45:02
阅读次数:
136
<script type="text/javascript"> function SetTable() { $("#myTab table").each(function () { var sValue= $(this).find("tr").eq(0).find("td").eq(0).html( ...
分类:
其他好文 时间:
2016-05-31 17:25:20
阅读次数:
151