The recursive solution is trivial and I omit it here.Iterative Solution using Stack (O(n)time andO(n)space): 1 /** 2 * Definition of TreeNode: 3 * c.....
分类:
其他好文 时间:
2015-06-29 19:52:58
阅读次数:
121
The recursive solution is trivial and I omit it here.Iterative Solution using Stack (O(n)time andO(n)space): 1 /** 2 * Definition of TreeNode: 3 * c.....
分类:
其他好文 时间:
2015-06-29 19:33:05
阅读次数:
102
OnErrorResumeNextDimfso,DiskDriver,DD,Showfreespace,Totalsizespace,SizePercentDimSendmailPermissionSendmailPermission=0Setfso=wscript.createobject("scripting.filesystemobject")If(fso.folderexists("C:\Disk2"))=FalsethenSetfoldr=fso.createfolder("C:\Disk2")En..
分类:
其他好文 时间:
2015-06-29 18:04:28
阅读次数:
175
The recursive solution is trivial and I omit it here.Iterative Solution using Stack (O(n) time and O(n) space): 1 /** 2 * Definition of TreeNode: 3 .....
分类:
其他好文 时间:
2015-06-29 16:17:05
阅读次数:
106
DevExpress2011控件教程)编辑控件(comboBox,AspxCheckBox)
范例1
AspxCheckBox 是一个检查编辑控件去展示特殊条件是否关闭或者打开。它通常会展示Yes/No 或者是 True/False 的选择给用户。用户可以通过用鼠标点击编辑控件改变Check状态或者通过按 SPACE键来改变。
2011版本允许有2或3种状态。 ASPxChe...
分类:
Web程序 时间:
2015-06-29 11:46:57
阅读次数:
190
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:
Could negative integers be palindromes? (ie, -1)If you are thinking of converting the inte...
分类:
其他好文 时间:
2015-06-28 21:42:54
阅读次数:
133
方法同POJ1014-Dividing,唯一不同点在于每一种block有最大限定高度a,故要以a为关键字进行排序,使得最大高度小的在前,否则最大高度小的再后可能放不上去。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using.....
分类:
其他好文 时间:
2015-06-28 20:04:30
阅读次数:
105
Well, the basic idea is very simple. Start from the tail ofsand move backwards to find the first non-space character. Then from this character, move b...
分类:
其他好文 时间:
2015-06-28 16:57:20
阅读次数:
108
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. ...
分类:
其他好文 时间:
2015-06-27 21:27:36
阅读次数:
166
ASCII值控制字符ASCII值控制字符ASCII值控制字符ASCII值控制字符0NUT32(space)64@96、1SOH33!65A97a2STX34"66B98b3ETX35#67C99c4EOT36$68D100d5ENQ37%69E101e6ACK38&70F102f7BEL39,71G...
分类:
其他好文 时间:
2015-06-27 21:22:07
阅读次数:
113