摘要: 描述 有一个方格矩阵,矩阵边界在无穷远处。我们做如下假设: a. 每走一步时,只能从当前方格移动一格,走到某个相邻的方格上; b. 走过的格子立即塌陷无法再走第二次; c. 只能向北、东、西三个方向走; 请问:如果允许在方格矩阵上走n步,... 阅读全文
posted @ 2018-05-21 17:37 xzhws 阅读(45) 评论(0) 推荐(0) 编辑
摘要: Description Before the digital age, the most common "binary" code for radio communication was the Morse code. In Morse code, sym... 阅读全文
posted @ 2018-05-21 16:20 xzhws 阅读(33) 评论(0) 推荐(0) 编辑
摘要: Description Before the digital age, the most common "binary" code for radio communication was the Morse code. In Morse code, symbols are encoded as se 阅读全文
posted @ 2018-05-21 16:20 xzhws 阅读(349) 评论(0) 推荐(0) 编辑
摘要: kmp算法的解释:字符串匹配的KMP算法-简单易懂 参考思路:点击打开链接 总时间限制: 3000ms 内存限制: 65536kB 描述 给定两个字符串a和b,我们定义a*b为他们的连接。例如,如果a=”abc” 而b=”def”, 则a*b=”abcdef... 阅读全文
posted @ 2018-05-21 13:15 xzhws 阅读(137) 评论(0) 推荐(0) 编辑