website/content/segment_tree.md
+++ author = "一缕殇流化隐半边冰霜" categories = ["Algorithm", "Segment Tree"] date = 2019-12-21T11:54:00Z description = "" draft = false image = "https://img.halfrost.com/Blog/ArticleTitleImage/144_0.png" slug = "segment_tree" tags = ["Algorithm", "Segment Tree"] title = "Algorithm in LeetCode —— Segment Tree"
+++
线段树题型从简单到困难:
| Title | Solution | Difficulty | Time | Space | 收藏 |
|---|---|---|---|---|---|
| 218. The Skyline Problem | Go | Hard | O(n log n) | O(n) | ❤️ |
| 307. Range Sum Query - Mutable | Go | Hard | O(1) | O(n) | |
| 315. Count of Smaller Numbers After Self | Go | Hard | O(n log n) | O(n) | |
| 327. Count of Range Sum | Go | Hard | O(n log n) | O(n) | ❤️ |
| 493. Reverse Pairs | Go | Hard | O(n log n) | O(n) | |
| 699. Falling Squares | Go | Hard | O(n log n) | O(n) | ❤️ |
| 715. Range Module | Go | Hard | O(log n) | O(n) | ❤️ |
| 732. My Calendar III | Go | Hard | O(log n) | O(n) | ❤️ |
| 850. Rectangle Area II | Go | Hard | O(n log n) | O(n) | ❤️ |
| 1157. Online Majority Element In Subarray | Go | Hard | O(log n) | O(n) | ❤️ |