Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target valu...
分类:
其他好文 时间:
2014-08-22 23:43:39
阅读次数:
322
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-...
分类:
其他好文 时间:
2014-08-22 22:22:09
阅读次数:
233
Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, ...
分类:
其他好文 时间:
2014-08-22 22:18:59
阅读次数:
342
Description
``Pinary" number is a positive number using only two digits ``0" and ``1" with usual rule that it must not begin with a 0, and the additional rule that two successive digits must not be...
分类:
其他好文 时间:
2014-08-22 21:16:19
阅读次数:
237
/*#include
using namespace std;
*//**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
cla...
分类:
其他好文 时间:
2014-08-22 19:46:39
阅读次数:
147
Container With Most Water
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line...
分类:
移动开发 时间:
2014-08-22 16:17:59
阅读次数:
208
判断radio是否选中并取得选中的值 One:$("input[name='items']:checked").val(); Two:function checkradio(){ var item = $(":radio:checked"); var len=item.length; if(len>...
分类:
Web程序 时间:
2014-08-22 16:01:58
阅读次数:
242
1、redis简介
redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hashs(哈希类型)。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作,而且这些操作都是原子性的。在此基础上,redis...
$0 ~ $4 最近选中的元素(审查元素)。$$(selector) 相当于 querySelectAll(selector)clear() 清理控制台dir(object) 输出对象的所有属性keys(obj) 输出对象的所有属性名keys({'one':1,'two':2})//["one", ...
分类:
其他好文 时间:
2014-08-22 10:40:25
阅读次数:
196
Problem Description
Dragon is watching competitions on TV. Every competition is held between two competitors, and surely Dragon's favorite. After each competition he will give a score of either 0 or ...
分类:
其他好文 时间:
2014-08-21 22:53:15
阅读次数:
245