摘要: Given two strings a and b we define ab to be their concatenation. For example, if a = “abc” and b = “def” then ab = “abcdef”. If ... 阅读全文
posted @ 2018-10-19 15:47 i-Curve 阅读(176) 评论(0) 推荐(0) 编辑
摘要: The “U.S. Robots” HQ has just received a rather alarming anonymous letter. It states that the agent from the competing «Robots Un... 阅读全文
posted @ 2018-10-19 11:48 i-Curve 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Manacher算法在求回文串的时候是一种很高效的算法,这里讲解一些这个算法的原理以及简单的模板。原理讲解:首先对字符串进行预处理,在字符串的中间以及两边都加上一个不会出现的字符,然后这样就可以保证我们求的字符串都是一个长度为奇数的回文串。如下:原始字符串s... 阅读全文
posted @ 2018-10-19 11:45 i-Curve 阅读(151) 评论(0) 推荐(0) 编辑
摘要: When I was young, my father is a senior gaming enthusiast. One day, we saw a old man in the street .He had a dice and played with... 阅读全文
posted @ 2018-10-18 21:06 i-Curve 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 什么是哈希首先简单说明一下什么是哈希。平时可能已经听到过哈希函数,而哈希更常用在通信中,哈希的原理就是通过对信息进行不可逆向的处理,并且如果两个信息哪怕只有一个位信息的不同,那的到的最终值也是截然不同的两个答案。由于不可逆向性,所以只能从原信息的到哈希值,而... 阅读全文
posted @ 2018-10-18 13:18 i-Curve 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 原因分析:在自己服务器上搭建了一个网站,但是总是崩溃.最后浏览了很多很多之后发现是内存不够.细细一想我的内存一共就500M,检查一下,还真是.当运行wordpress是我的剩余内存只剩8M,其他的都被占用了.因此,就开始查阅如何解决内存 不足问题.自己解决尝... 阅读全文
posted @ 2018-10-13 22:27 i-Curve 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 在服务器上搭建wordpress,发现内存不足(唉~~,0.5G确是太低).因此,学了下如何配置虚拟内存解决,但是为了条理清晰,专门把这个写成一片博客,(\O(∩_∩)O哈哈~,别吐槽啊)参考文章1.查看自己的虚拟内存方法1:free ,默认是以Kb为单位... 阅读全文
posted @ 2018-10-13 21:58 i-Curve 阅读(3920) 评论(0) 推荐(0) 编辑
摘要: The ant Welly now dedicates himself to urban infrastructure. He came to the kingdom of numbers and solicited an audience with the... 阅读全文
posted @ 2018-10-13 13:32 i-Curve 阅读(421) 评论(0) 推荐(0) 编辑
摘要: Here N (N ≥ 3) rabbits are playing by the river. They are playing on a number line, each occupying a different integer. In a sing... 阅读全文
posted @ 2018-10-13 11:14 i-Curve 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Consider a un-rooted tree T which is not the biological significance of tree or plant, but a tree as an undirected graph in graph... 阅读全文
posted @ 2018-10-13 11:02 i-Curve 阅读(194) 评论(0) 推荐(0) 编辑