Corner cases!class Solution {public: ListNode *deleteDuplicates(ListNode *head) { if (!head) return head; if (!head->next) return hea...
分类:
其他好文 时间:
2014-08-03 07:51:34
阅读次数:
237
In a typical multiple-tier implementation, the steps for creating and refreshing a DataSet, and in turn, updating the original data are to:Build and f...
分类:
其他好文 时间:
2014-08-02 15:17:43
阅读次数:
225
原题: Turn the pokers 思路:假设正面为0,反面为1。牌就像这样 000000....... 。考虑到假如可以实现最终反面个数为m, 牌共n张, 则这n张排任取m个为反面其余都为正面的状况都能实现。于是转化为考虑最终可能出现1的个数的集合有哪些。 因为可能的个数集合是连续的...
分类:
其他好文 时间:
2014-08-02 15:10:33
阅读次数:
173
It is all about corner cases.class Solution {public: vector retv; bool isValid(string &sub) { unsigned cnt = sub.length(); if (...
分类:
其他好文 时间:
2014-08-02 12:39:03
阅读次数:
220
题目: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at a....
分类:
编程语言 时间:
2014-08-02 12:17:23
阅读次数:
279
Intro to pacemaker on heartbeat http://foaa.de/old-blog/2010/10/intro-to-pacemaker-on-heartbeat/trackback/index.html With squeeze around the corner it...
分类:
其他好文 时间:
2014-08-01 18:43:32
阅读次数:
391
IntroductionThis article will explain six important concepts: stack, heap, value types, reference types, boxing, and unboxing. This article starts exp...
分类:
Web程序 时间:
2014-07-31 23:10:30
阅读次数:
397
Just corner case..class Solution {public: ListNode *reverseBetween(ListNode *head, int m, int n) { if(m == n) return head; ListNode *...
分类:
其他好文 时间:
2014-07-31 09:34:05
阅读次数:
245
Conceptual DiagramLogical diagramNova is the most complicated and distributed component of OpenStack. A large number of processes cooperate to turn en...
分类:
其他好文 时间:
2014-07-30 23:40:55
阅读次数:
464