题目链接:http://acm.upc.edu.cn/problem.php?id=2170题意:给出一个字符串,比如ABACA,在这个串里,AB、BA、AC、CA各出现一次。若存在另外一个串,里面也AB、BA、AC、CA各出现一次。我们称ABACA是不唯一的。给出一个串,判断其是不是唯一。 思路:...
分类:
其他好文 时间:
2014-06-23 00:22:22
阅读次数:
274
原创地址:http://www.cnblogs.com/Alandre/(泥沙砖瓦浆木匠),需要转载的,保留下! 文章宗旨:Talk is cheap show me the code.
大成若缺,其用不弊.大盈若冲,其用不穷.
最完满的东西,好似有残缺一样,但它的作用永远不会衰竭;最充盈的东西,好似是空虚一样,但是它的作用是不会穷尽的
Written In The Font
摘...
分类:
编程语言 时间:
2014-06-22 22:49:41
阅读次数:
256
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found ...
分类:
其他好文 时间:
2014-06-22 21:47:15
阅读次数:
269
http://www.raywenderlich.com/
http://objccn.io/
http://onevcat.com
http://beyondvincent.com/
http://ryantang.me/
http://macshuo.com/
http://blog.devtang.com/
http://code.tutsplus.com/...
分类:
移动开发 时间:
2014-06-22 19:34:11
阅读次数:
219
编写高质量代码改善java程序的151个建议——[110-117]异常及Web项目中异常处理
原创地址:http://www.cnblogs.com/Alandre/(泥沙砖瓦浆木匠),需要转载的,保留下! 文章宗旨:Talk is cheap show me the code.
大成若缺,其用不弊.大盈若冲,其用不穷.
最完满的东西,好似有残缺一样,但它的作用永远不...
分类:
编程语言 时间:
2014-06-22 17:17:08
阅读次数:
260
Last night it took me about two hours to learn arrays. For the sake of less time, I did not put emphaises on the practice question, just now when reading the book, I found that some methods
referred...
分类:
其他好文 时间:
2014-06-22 17:14:10
阅读次数:
152
1 /* 2 hdu 2896 病毒侵袭 ac自动机 3 从题意得知,模式串中没有重复的串出现,所以结构体中可以将last[](后缀链接)数组去掉 4 last[]数组主要是记录具有相同后缀模式串的末尾节点编号 。本题中主要是计算每一个模式串 5 在主串中有没有出现过,而不是计算出现...
分类:
其他好文 时间:
2014-06-22 11:08:48
阅读次数:
291
欢迎关注我的新博客地址:http://cuipengfei.me/
在Scala中,名字叫做update的方法是有特殊作用的。
比如:
1
2
3
val scores = new scala.collection.mutable.HashMap[String, Int]
scores("Bob") = 100
val bobsScore =...
分类:
其他好文 时间:
2014-06-22 07:37:52
阅读次数:
282
Help Me with the Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3210
Accepted: 2071
Description
Your task is to read a picture of a chessboard position...
分类:
其他好文 时间:
2014-06-22 00:22:45
阅读次数:
382
1.准备工作
运行环境:
ubuntu 14.04
下载及安装使用nginx的必备软件:
gcc编译器:
sudo apt-get install gcc
g++编译器:
sudo apt-get install g++
PCRE库:
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pc...
分类:
其他好文 时间:
2014-06-21 18:50:06
阅读次数:
259