安装好apache启动httpd服务时,出现httpd:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname,usingXXX for ServerName。网上找了不少资料,叫修改安装apache根目录下的httpd/conf/h...
分类:
系统相关 时间:
2014-09-30 21:30:30
阅读次数:
257
【题目】Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?【题意】 推断一个单向链表是否有环【思路】 维护两个指针p1和p2,p1.....
分类:
其他好文 时间:
2014-09-28 21:16:55
阅读次数:
195
1 problemGiven a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.F...
分类:
其他好文 时间:
2014-09-26 19:22:58
阅读次数:
165
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 depth...
分类:
其他好文 时间:
2014-09-26 12:57:38
阅读次数:
204
【题目】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.
For example, given
s = "leetcode",
dict = ["l...
分类:
其他好文 时间:
2014-09-24 13:07:06
阅读次数:
148
题目:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
这是一道关于链表比较简单的题,很顺利就解决了,不多说啦,上代码啦
# Definition for singly-linked list.
# ...
分类:
其他好文 时间:
2014-09-22 22:07:03
阅读次数:
233
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.
For example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2014-09-22 12:40:12
阅读次数:
184
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-09-19 06:35:45
阅读次数:
233
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-09-19 04:28:05
阅读次数:
247
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-09-18 11:24:13
阅读次数:
379