摘要: 算法:广搜; 描述 You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille... 阅读全文
posted @ 2016-03-21 18:45 (慎独) 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 算法:搜索 描述 One day,Tom’s girlfriend give him an array A which contains N integers and asked him:Can you choose some integers from the N integers and t... 阅读全文
posted @ 2016-03-21 13:31 (慎独) 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 算法:搜索+优先队列 描述 在一个山沟里,姐弟俩同时考上了大学。但由于家里拮据,所以这并不是什么好消息。父亲对孩子说:我就是砸锅卖铁也要把你们姐俩供出来。 当时的姐姐已经决定放弃上学的机会。 没想到第二天天还没亮,弟弟就偷偷带著几件破衣服和几个乾巴馒头走了,在姐姐枕边留下一个纸条: 姐,你别愁... 阅读全文
posted @ 2016-03-21 12:53 (慎独) 阅读(303) 评论(0) 推荐(0) 编辑