2019年2月19日

☆1076

摘要: DFS为什么不行呢??? BFS两种visit的时机一种是加入时,一种是拿出时 BFS容易调试,不是很复杂,尽量用BFS 阅读全文

posted @ 2019-02-19 16:49 Vitavi 阅读(88) 评论(0) 推荐(0) 编辑

☆1021

摘要: 没有用并查集,自己做的 没有考虑到N==1的情形,不过答案也是对的。因为maxheight被更新了,这样看来,设置成负数也挺好的。 阅读全文

posted @ 2019-02-19 14:29 Vitavi 阅读(76) 评论(0) 推荐(0) 编辑

导航