Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the dep ...
分类:
其他好文 时间:
2018-03-22 10:59:18
阅读次数:
181
当运行程序的时候发现出现这样的字符:httpd: Could not reliably determine the server‘s fully qualified domain name, using www.shifanyong.cn for ServerName??但是服务还是可以启动、重启、停止的情况
分类:
其他好文 时间:
2018-03-21 19:59:10
阅读次数:
130
准备篇: 1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --s ...
分类:
数据库 时间:
2018-03-20 18:18:29
阅读次数:
216
Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 判断单链表是否是回文的 C++(25ms): ...
分类:
其他好文 时间:
2018-03-20 18:02:54
阅读次数:
137
[抄题]: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close i ...
分类:
其他好文 时间:
2018-03-18 22:28:03
阅读次数:
150
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 ...
分类:
其他好文 时间:
2018-03-13 10:22:02
阅读次数:
119
404页面的含义就是找不到页面 可以看一下springmvc定义404的源码 // Determine handler for the current request.mappedHandler = getHandler(processedRequest, false);if (mappedHand ...
分类:
其他好文 时间:
2018-03-12 17:03:06
阅读次数:
169
A Selector is a Java NIO component which can examine one or more NIO Channel's, and determine which channels are ready for e.g. reading or writing. Th ...
分类:
编程语言 时间:
2018-03-11 19:25:25
阅读次数:
165
[抄题]: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given ...
分类:
其他好文 时间:
2018-03-11 14:15:02
阅读次数:
124
Hacker Zhorik wants to decipher two secret messages he intercepted yesterday. Yeah message is a sequence of encrypted blocks, each of them consists of ...
分类:
其他好文 时间:
2018-03-10 14:06:02
阅读次数:
232