Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:
其他好文 时间:
2016-08-16 07:02:12
阅读次数:
160
Given a binary tree, find the maximum path sum from root. The path may end at any node in the tree and contain at least one node in it. 给一棵二叉树,找出从根节点出 ...
分类:
其他好文 时间:
2016-08-15 17:13:54
阅读次数:
161
For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible roote ...
分类:
其他好文 时间:
2016-08-15 12:43:06
阅读次数:
204
INADDR_ANY选项 网络编程中常用到bind函数,需要绑定IP地址,这时可以设置INADDR_ANY INADDR_ANY就是指定地址为0.0.0.0的地址,这个地址事实上表示不确定地址,或“所有地址”、“任意地址”。 也就是表示本机的所有IP,因为有些机子不止一块网卡,多网卡的情况下,这个就 ...
分类:
系统相关 时间:
2016-08-14 16:21:00
阅读次数:
280
To live is to function, that is all there is in living. 活着就要发挥作用,这就是生活的全部内容。 I often joke that my dream is to work any more but there is stll enough m ...
分类:
其他好文 时间:
2016-08-14 16:15:16
阅读次数:
141
For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible roote ...
分类:
其他好文 时间:
2016-08-14 16:12:34
阅读次数:
124
Introduction The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any ...
分类:
编程语言 时间:
2016-08-14 11:42:35
阅读次数:
230
原文链接:http://lesseesadvocate.com/7-compelling-reasons-need-start-business-youve-always-wanted/ Don’t Wait Any Longer – Start Your Own Business and Stop ...
分类:
其他好文 时间:
2016-08-14 07:44:51
阅读次数:
198
binary-tree-maximum-path-sum binary-tree-maximum-path-sum 题目描述 Given a binary tree, find the maximum path sum. The path may start and end at any node ...
分类:
其他好文 时间:
2016-08-14 07:17:05
阅读次数:
139
#any(x)判断x对象是否为空对象,如果都为空、0、false,则返回false,如果不都为空、0、false,则返回true #all(x)如果all(x)参数x对象的所有元素不为0、''、False或者x为空对象,则返回True,否则返回False ...
分类:
编程语言 时间:
2016-08-13 11:17:16
阅读次数:
721