LeetCode303——區域和檢索

我的LeetCode代碼倉:https://github.com/617076674/LeetCode 原題鏈接:https://leetcode-cn.com/problems/range-sum-query-immutable/description/ 題目描述: 知識點:預處理求和、線段樹 思路一:預處理求和 構造函數的時間複雜度是O(n),其中n爲數組的長度。sumRange()函數的時間
相關文章
相關標籤/搜索