摘要: Do you know what is called ``Coprime Sequence''? That is a sequence consists of nnpositive integers, and the GCD (Greatest Common Divisor) of them is 阅读全文
posted @ 2018-08-24 20:52 yzm10 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Harmonic Number In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers: In this problem, you are given n 阅读全文
posted @ 2018-08-24 20:20 yzm10 阅读(414) 评论(0) 推荐(0) 编辑
摘要: Palindrome Function As we all know,a palindrome number is the number which reads the same backward as forward,such as 666 or 747.Some numbers are not 阅读全文
posted @ 2018-08-24 17:30 yzm10 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 算法描述:设字符串T,长度为n,字符串S,长度为m。在线性时间内求出T的每一个后缀所对应S的最长前缀。 假设T=“AAAAB”,S="AAAA"。 阅读全文
posted @ 2018-08-24 17:19 yzm10 阅读(121) 评论(0) 推荐(0) 编辑