Skip to content

Commit c3ab809

Browse files
refactor 327
1 parent 5390fca commit c3ab809

File tree

1 file changed

+0
-13
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-13
lines changed

src/main/java/com/fishercoder/solutions/_327.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 327. Count of Range Sum
5-
*
6-
* Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive.
7-
* Range sum S(i, j) is defined as the sum of the elements in nums between indices i and j (i ≤ j), inclusive.
8-
9-
Note:
10-
A naive algorithm of O(n2) is trivial. You MUST do better than that.
11-
12-
Example:
13-
Given nums = [-2, 5, -1], lower = -2, upper = 2, Return 3.
14-
The three ranges are : [0, 0], [2, 2], [0, 2] and their respective sums are: -2, -1, 2.
15-
*/
163
public class _327 {
174

185
public static class Solution1 {

0 commit comments

Comments
 (0)