原题地址:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list-ii/题意:Given
a sorted linked list, delete all nodes that have duplicate number...
分类:
编程语言 时间:
2014-06-16 10:40:35
阅读次数:
340
原题地址:https://oj.leetcode.com/problems/search-in-rotated-sorted-array-ii/题意:Follow
up for "Search in Rotated Sorted Array":What ifduplicatesare allowed...
分类:
编程语言 时间:
2014-06-16 08:20:54
阅读次数:
307
一、 验证 /** * 判断用户名是否规范 */ function
is_username($username) { if
(preg_match("/^[a-zA-Z]{1}([0-9a-zA-Z]|[._]){3,19}$/",$username)...
分类:
Web程序 时间:
2014-06-12 22:53:22
阅读次数:
221
原题地址:https://oj.leetcode.com/problems/jump-game-ii/题意:Given
an array of non-negative integers, you are initially positioned at the first
index of the ...
分类:
编程语言 时间:
2014-06-12 17:38:49
阅读次数:
323
1 // Xml 转 数组, 包括根键,忽略空元素和属性,尚有重大错误 2 function
xml_to_array( $xml ) 3 { 4 $reg = "/]*?>([\\x00-\\xFF]*?)/"; 5
if(preg_match_all($reg, $xml, $...
分类:
Web程序 时间:
2014-06-12 13:16:05
阅读次数:
260
Reverse Linked List IIReverse a linked list from
positionmton. Do it in-place and in one-pass.For example:Given
1->2->3->4->5->NULL, m= 2 andn= 4,retu...
分类:
其他好文 时间:
2014-06-12 07:03:54
阅读次数:
308