Skip to content

Commit 2032749

Browse files
refactor 325
1 parent f95c3c3 commit 2032749

File tree

1 file changed

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

1 file changed

+0
-19
lines changed

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,6 @@
33
import java.util.HashMap;
44
import java.util.Map;
55

6-
/**
7-
* 325. Maximum Size Subarray Sum Equals k
8-
*
9-
* Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead.
10-
*
11-
* Note:
12-
* The sum of the entire nums array is guaranteed to fit within the 32-bit signed integer range.
13-
*
14-
* Example 1:
15-
* Given nums = [1, -1, 5, -2, 3], k = 3,
16-
* return 4. (because the subarray [1, -1, 5, -2] sums to 3 and is the longest)
17-
*
18-
* Example 2:
19-
* Given nums = [-2, -1, 2, 1], k = 1,
20-
* return 2. (because the subarray [-1, 2] sums to 1 and is the longest)
21-
*
22-
* Follow Up:
23-
* Can you do it in O(n) time?*/
24-
256
public class _325 {
267

278
public static class Solution1 {

0 commit comments

Comments
 (0)