`
wx1569632409
  • 浏览: 99048 次
文章分类
社区版块
存档分类
最新评论
文章列表
【题目描述】 For an array, we can build a Segment Tree for it, each node stores an extra attribute count to denote the number of elements in the the array which value is between interval start and end. (The array may not fully filled by elements) Desig ...
【题目描述】 Give you an integer array (index from 0 to n-1, where n is the size of this array, value from 0 to 10000) and an query list. For each query, give you an integer, return the number of element in the array that are smaller than th ...
【题目描述】 You have two every large binary trees:T1, with millions of nodes, and T2, with hundreds of nodes. Create an algorithm to decide if T2 is a subtree of T1. Notice:A tree T2 is a subtree of T1 if there exists a node n in T1 such that the subt ...
Global site tag (gtag.js) - Google Analytics