摘要: 【题目描述】 Given an integer array in the construct method, implement two methods query(start, end) and modify(index, value): For query(start,end), return 阅读全文
posted @ 2018-02-20 15:38 5245 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. Each query has two integers[start, end]. Fo 阅读全文
posted @ 2018-02-20 00:05 5245 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. Each query has two integers[start, end]. Fo 阅读全文
posted @ 2018-02-17 21:51 5245 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 For a Maximum Segment Tree, which each node has an extra value max to store the maximum value in this node's interval. Implement a modify funct 阅读全文
posted @ 2018-02-16 20:06 5245 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 For an integer array (index from 0 to n-1, where n is the size of this array), in the corresponding Segment Tree, each node stores an extra att 阅读全文
posted @ 2018-02-15 20:49 5245 阅读(106) 评论(0) 推荐(0) 编辑