题目链接在字符串a中查找字符串b出现的次数...貌似不可以用a.count()附上代码:1 a =
raw_input().strip()2 b = raw_input().strip()3 cnt = 0;4 for i in
xrange(len(a)):5 cnt += 1 if a....
分类:
其他好文 时间:
2014-05-14 04:13:06
阅读次数:
308
You are given annxn2D matrix representing an
image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this
in-place?思路:先将矩阵转置,然后将第一列与最后...
分类:
其他好文 时间:
2014-05-14 03:09:35
阅读次数:
225
题目
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring is "()", ...
分类:
其他好文 时间:
2014-05-14 01:10:30
阅读次数:
318
今天早上apache突然无法启动,重启电脑仍然没有结果,经过一番努力终于解决了,过程如下:
首先查看apache错误日志:
1.删除apache>>logs>>error.log,重启apache查看这个文件发现内容如下:
(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : make_sock: could not bind to address [::]:80
...
分类:
其他好文 时间:
2014-05-14 01:02:17
阅读次数:
421
判断shutcut是否安装
"com.android.launcher.permission.READ_SETTINGS"/>
这段代码在模拟器上运行没有问题,但是在htc s510e运行报异常Failed to find provider info for com.android.launcher2.settings
通过但因htc所有包发现htc中的launcher被定制了改名为co...
分类:
移动开发 时间:
2014-05-12 23:58:28
阅读次数:
625
各种存储过程使用指南
'---开始链接数据库
Dim strConnString
strConnString = "driver={SQL Server};server=songhp;uid=sa;pwd=;database=XVZDemo"
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open str...
分类:
其他好文 时间:
2014-05-12 23:00:55
阅读次数:
304
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd', because 1) could not find the document; 2)...
分类:
编程语言 时间:
2014-05-12 22:55:47
阅读次数:
409
You are given a string, S, and a list of words,
L, that are all of the same length. Find all starting indices of substring(s) in
S that is a concatena...
分类:
其他好文 时间:
2014-05-12 22:27:04
阅读次数:
265
原题地址:http://oj.leetcode.com/problems/minimum-depth-of-binary-tree/题意:Given
a binary tree, find its minimum depth.The minimum depth is the number of no...
分类:
编程语言 时间:
2014-05-12 21:55:15
阅读次数:
348
超时分类
超时根据作用域可做如下层级划分:
Transaction Timeout > Statement Timeout > JDBC Driver Socket Timeout
Transaction Timeout指一组SQL操作执行时应在设定的时间内完成(提交或回滚),否则将引发超时。它的值应大于 N(语句数) * Statement Timeout
Statement Tim...
分类:
数据库 时间:
2014-05-11 22:02:18
阅读次数:
413