摘要: https://www.hackerrank.com/contests/101hack/challenges/similarpair这题有点意思。在DFS遍历的过程中,用线段树去记录和查询区间的点数。要注意线段树的这种写法里面,index和begin,end是融为一体的,索引其实就决定了begin和... 阅读全文
posted @ 2014-10-24 22:46 阿牧遥 阅读(465) 评论(0) 推荐(0)