YunYan

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年8月5日

摘要: Five hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to gather all of the dr 阅读全文
posted @ 2019-08-05 23:32 Target--fly 阅读(141) 评论(0) 推荐(0) 编辑

摘要: Farmer John and Betsy are playing a game with N (1 <= N <= 30,000)identical cubes labeled 1 through N. They start with N stacks, each containing a sin 阅读全文
posted @ 2019-08-05 23:27 Target--fly 阅读(109) 评论(0) 推荐(0) 编辑

摘要: 主要函数: 路径压缩之递归优化:(使用递归优化可以遍历到每一个节点,在进行回溯的时候我们可以对子节点与父节点的关系进行处理,在解决带权并查集时常用到) 但是当数据量过大时,就不能用了,会MLE错误 路径压缩非递归 阅读全文
posted @ 2019-08-05 23:03 Target--fly 阅读(130) 评论(0) 推荐(0) 编辑