摘要: Motivation: Given a 1D array of n elements. [2, 5, -1, 3, 6] range sum query: what's the sum from 2nd element to 4th element query(2, 4)? 5 + (-1) + 3 阅读全文
posted @ 2018-11-28 22:04 Veritas_des_Liberty 阅读(354) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smal 阅读全文
posted @ 2018-11-28 21:18 Veritas_des_Liberty 阅读(233) 评论(0) 推荐(0) 编辑