problem
1365. How Many Numbers Are Smaller Than the Current Number
理解清楚题意,以及计算过程;
solution1: two vector;
code
solution2: one vector;
code
注意
1. 累加和的计算公式;
2. 求和与所求之间的关系;
3. 所求结果首元素的确定;
参考
1. leetcode_1365. How Many Numbers Are Smaller Than the Current Number;
完