1、Apache服务器下载到本地解压到路径下:C:\ProgramFiles\Apache 后,启动时报错:serverroot must be a valid directory解决办法:1.打开文件C:\ProgramFiles\Apache\conf\httpd.conf 2.找到 ...
分类:
Web程序 时间:
2015-09-02 21:56:43
阅读次数:
210
题目:Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", t.....
分类:
其他好文 时间:
2015-09-02 20:42:12
阅读次数:
176
输入 fdisk -l 可以看到输入 fdisk /dev/xvdb跟着向导一步步做下去(如果不知道该输入什么,就输入“m”并回车,可以打印出菜单):Command (m for help): mCommand action a toggle a bootable flag b edit bsd.....
分类:
其他好文 时间:
2015-09-01 23:56:57
阅读次数:
542
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2015-08-31 23:30:04
阅读次数:
150
题目来自Leetcode
Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *.
...
分类:
其他好文 时间:
2015-08-31 15:21:41
阅读次数:
189
题目:Given a binary search tree, write a functionkthSmallestto find thekth smallest element in it.Note:You may assume k is always valid, 1 ≤ k ≤ BST's t...
分类:
其他好文 时间:
2015-08-31 06:26:51
阅读次数:
202
在difficulty为easy的hash table部分,没有用到常见的哈希算法,更多的是借用数组的下标来实现。对于下标的操作看起来很简单,其实需要细致和耐心,可能一个小错误,比如下标字母弄错用成了上个循环使用的下标(t.t’),结束条件没写对等等就会导致错误。
A.在Valid Sudoku 中,判断中拓宽了思维,1。多动脑子,小九宫格中,将每个小个子的下标与第几个联系起来。2。对于一般的含有...
分类:
其他好文 时间:
2015-08-30 15:54:03
阅读次数:
182
【题目】
Given two strings s and t, write a function to determine if t is an anagram of s.For example,
s = “anagram”, t = “nagaram”, return true.
s = “rat”, t = “car”, return false.Note:
You may assume...
分类:
编程语言 时间:
2015-08-29 17:08:05
阅读次数:
217
1 2 responseMsg(); 14 //$wechatObj->valid(); 15 16 class wechatCallbackapiTest 17 { 18 /*public function valid() 19 { 20 $echoStr = $_GET["echost...
分类:
微信 时间:
2015-08-29 16:59:34
阅读次数:
341
【题目】
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character ‘.’.Note:
A valid Sudoku boar...
分类:
编程语言 时间:
2015-08-29 15:27:49
阅读次数:
139