MyGenerator.java 模板文件D:/web/template/demo.ftl 生成的文件D:/web/template/demo.html ...
分类:
其他好文 时间:
2017-01-28 14:23:53
阅读次数:
283
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you ...
分类:
其他好文 时间:
2017-01-28 10:07:08
阅读次数:
198
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他好文 时间:
2017-01-28 10:05:54
阅读次数:
190
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. For example, giv ...
分类:
其他好文 时间:
2017-01-28 08:42:32
阅读次数:
167
Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space. 此题 ...
分类:
其他好文 时间:
2017-01-28 08:40:03
阅读次数:
202
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. ...
分类:
其他好文 时间:
2017-01-28 07:17:10
阅读次数:
182
addslashed() 添加反斜杠 stripslashed() 去掉反斜杠 get_magic_quotes_gpc() 判断是否开启gpc expode(".",$array) 分割成数组 is_numeric() 判断是否为数字 sizeof() 判断长度 trim() 去处字符串开头和末尾 ...
分类:
其他好文 时间:
2017-01-27 22:15:26
阅读次数:
531
转载请注明出处:http://www.cnblogs.com/liangyongrui/p/6353922.html 开个数组 hash的办法 大家都会。 但是这题不能用辅助空间,所以,我给这个方法起名叫别样hash 因为,所有的数字 都在[1,n] 所以可以用数字的正负来表示hash值 具体见代码 ...
分类:
其他好文 时间:
2017-01-27 18:01:24
阅读次数:
187
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2017-01-27 08:44:26
阅读次数:
153
Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: [ ["ate", "eat","tea"], [" ...
分类:
其他好文 时间:
2017-01-27 07:16:25
阅读次数:
230