摘要: 闲来无聊,前两天看到一篇关于算法实现的文章。里面又关于图的各种算法介绍,正好上学期还学过图论,现在还记得一点点,先来实现个prim算法:表示图的文件的内容大体上是这样的: 1 2.0 1.0 1.0 2 3.0 1.0 1.0 3 4.0 1.0 1.0 4 5.... 阅读全文
posted @ 2015-12-27 22:24 eversliver 阅读(5102) 评论(0) 推荐(0) 编辑
摘要: Givennballoons, indexed from0ton-1. Each balloon is painted with a number on it represented by arraynums. You are asked to burst all the balloons. If ... 阅读全文
posted @ 2015-12-27 21:37 eversliver 阅读(830) 评论(0) 推荐(1) 编辑