Skip to content

Commit 70d741e

Browse files
edit 327
1 parent 9a2ee98 commit 70d741e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Your ideas/fixes/algorithms are more than welcome!
259259
|330|[Patching Array](https://leetcode.com/problems/patching-array/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_330.java)| O(m+logn)|O(1) | Hard| Greedy
260260
|329|[Longest Increasing Path in a Matrix](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Solution](../master/src/main/java/com/fishercoder/solutions/LongestIncreasingPathInAMatrix.java)| O(?)|O(?) | Hard|
261261
|328|[Odd Even Linked List](https://leetcode.com/problems/odd-even-linked-list/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_328.java)| O(n)|O(1) | Medium| Linked List
262-
|327|[Count of Range Sum](https://leetcode.com/problems/count-of-range-sum/)|[Solution](../master/src/main/java/com/fishercoder/solutions/CountOfRangeSum.java)| O(?)|O(?) | Hard|
262+
|327|[Count of Range Sum](https://leetcode.com/problems/count-of-range-sum/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_327.java)| O(?)|O(?) | Hard|
263263
|325|[Maximum Size Subarray Sum Equals k](https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/)|[Solution] | O(n)|O(n) | Medium| HashMap
264264
|324|[Wiggle Sort II](https://leetcode.com/problems/wiggle-sort-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_324.java)| O(n)|O(n) | Medium| Sort
265265
|323|[Number of Connected Components in an Undirected Graph](https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/)|[Solution](../master/src/main/java/com/fishercoder/solutions/NumberOfConnectedComponentsInAnUndirectedGraph.java)| O(?)|O(?)| Medium|

src/main/java/com/fishercoder/solutions/CountOfRangeSum.java renamed to src/main/java/com/fishercoder/solutions/_327.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A naive algorithm of O(n2) is trivial. You MUST do better than that.
1212
Return 3.
1313
The three ranges are : [0, 0], [2, 2], [0, 2] and their respective sums are: -2, -1, 2.
1414
*/
15-
public class CountOfRangeSum {
15+
public class _327 {
1616

1717
public int countRangeSum(int[] nums, int lower, int upper) {
1818
int n = nums.length;

0 commit comments

Comments
 (0)