Skip to content

Commit 2ab67f4

Browse files
refactor 523
1 parent 6ce1455 commit 2ab67f4

File tree

1 file changed

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

1 file changed

+0
-22
lines changed

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

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

6-
/**
7-
* 523. Continuous Subarray Sum
8-
*
9-
* Given a list of non-negative numbers and a target integer k,
10-
* write a function to check if the array has a continuous subarray of size at least 2
11-
* that sums up to the multiple of k, that is, sums up to n*k where n is also an integer.
12-
13-
Example 1:
14-
Input: [23, 2, 4, 6, 7], k=6
15-
Output: True
16-
Explanation: Because [2, 4] is a continuous subarray of size 2 and sums up to 6.
17-
18-
Example 2:
19-
Input: [23, 2, 6, 4, 7], k=6
20-
Output: True
21-
Explanation: Because [23, 2, 6, 4, 7] is an continuous subarray of size 5 and sums up to 42.
22-
23-
Note:
24-
The length of the array won't exceed 10,000.
25-
You may assume the sum of all the numbers is in the range of a signed 32-bit integer.
26-
27-
*/
286
public class _523 {
297

308
public static class Solution1 {

0 commit comments

Comments
 (0)