![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
记忆化搜索
seven yearsº
这个作者很懒,什么都没留下…
展开
-
漫步校园--(bfs+dfs)最短距离+记忆化搜索
LL最近沉迷于AC不能自拔,每天寝室、机房两点一线。由于长时间坐在电脑边,缺乏运动。他决定充分利用每次从寝室到机房的时间,在校园里散散步。整个HDU校园呈方形布局,可划分为n*n个小方格,代表各个区域。例如LL居住的18号宿舍位于校园的西北角,即方格(1,1)代表的地方,而机房所在的第三实验楼处于东南端的(n,n)。因有多条路线可以选择,LL希望每次的散步路线都不一样。另外,他考虑从A区域到B区域...原创 2019-07-30 22:18:15 · 297 阅读 · 0 评论 -
Zipper--记忆化搜索
Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings. The first two strings can be mixed arbitrarily, but each must sta...原创 2019-07-30 22:20:25 · 207 阅读 · 0 评论