关键点 实现过程 voidCCreateBrushView::OnDraw(CDC*pDC) { CCreateBrushDoc*pDoc=GetDocument(); ASSERT_VALID(pDoc); //创...
分类:
编程语言 时间:
2014-08-01 22:41:42
阅读次数:
277
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example, "A man, a plan, a canal: Pan...
分类:
其他好文 时间:
2014-08-01 22:31:42
阅读次数:
208
题目:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled ....
分类:
编程语言 时间:
2014-08-01 10:31:31
阅读次数:
261
系统环境: ubuntu12.04安装vm tools时出现如下问题The path "/usr/bin/gcc" is not valid path to the gcc binary解决方案:#cat /proc/versionLinux version 3.2.0-29-generic (bu...
分类:
其他好文 时间:
2014-08-01 10:31:21
阅读次数:
230
题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: ....
分类:
编程语言 时间:
2014-08-01 10:27:11
阅读次数:
310
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ...
分类:
其他好文 时间:
2014-07-31 23:46:00
阅读次数:
256
Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtre...
分类:
其他好文 时间:
2014-07-31 23:11:40
阅读次数:
225
memcache扩展版本 3.0.8一. retry_interval$retry_interval 某个rpc服务器端失败后故障转移的时间,retry_interval的时间内,该节点会被一直标记为不可用,隔离掉,为小于0的数一直隔离。int mmc_server_valid(mmc_t *mmc...
分类:
Web程序 时间:
2014-07-31 20:27:37
阅读次数:
269
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:
其他好文 时间:
2014-07-31 16:08:26
阅读次数:
283
解法:用栈,注意栈的用法和switch的用法 1 class Solution { 2 public: 3 bool isValid(string s) { 4 5 stack istack; 6 string::iterator p=s.b...
分类:
其他好文 时间:
2014-07-31 12:12:46
阅读次数:
229