發表文章

目前顯示的是 3月, 2017的文章

Solving Range Sum Query - Mutable

class NumArray { public:     NumArray(vector<int> nums) {                 Image.push_back(vector<int>(nums));         int size = nums.size();         int level = 1;         while(size >= 10)         {             Image.push_back(vector<int>(size/10, 0));                         for(int i = 0; i < size/10; i++)             {                 int localSum = 0;                 for(in...