[leetcode]Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)...
分类:
其他好文 时间:
2014-10-16 13:02:12
阅读次数:
183
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2014-10-16 09:30:02
阅读次数:
193
环境:XCODE6.0.1 + iPhone / iOS8
错误:使用CoreLocation获取地理位置信息,报错
Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)"
解决方法:
1.确定模拟器(手机)已经联网并且允许程序获取...
分类:
其他好文 时间:
2014-10-15 19:44:28
阅读次数:
171
2014-09-25 BaoXinjian一、摘要在官方文档《oracle performance tuning guide》中提到Connecting to the database is an expensive operation that is highly unscalable。数据库的连...
分类:
数据库 时间:
2014-10-14 22:50:39
阅读次数:
222
HDU 3397 Sequence operation
题目链接
题意:给定一个01序列,有5种操作
0 a b [a.b]区间置为0
1 a b [a,b]区间置为1
2 a b [a,b]区间0变成1,1变成0
3 a b 查询[a,b]区间1的个数
4 a b 查询[a,b]区间连续1最长的长度
思路:线段树线段合并,需要两个延迟标记一个置为01,一个翻转,然后由...
分类:
其他好文 时间:
2014-10-13 22:18:57
阅读次数:
278
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
You have the following 3 operations permitted on a word:...
分类:
其他好文 时间:
2014-10-13 20:08:07
阅读次数:
188
Problem Description
You have an array consisting of n integers: a1=1,a2=2,a3=3,…,an=n.
Then give you m operators, you should process all the operators in order. Each operator is one of four types...
分类:
其他好文 时间:
2014-10-12 22:56:58
阅读次数:
311
Operation the Sequence
Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 32768/32768
K (Java/Others)
...
分类:
其他好文 时间:
2014-10-12 11:38:17
阅读次数:
332
Operation the SequenceTime Limit: 3000/1500 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 154Accepted Submission(s): 7...
分类:
其他好文 时间:
2014-10-12 04:19:54
阅读次数:
193