Skip to content

Commit 0f5ae03

Browse files
refactor 659
1 parent 38f160d commit 0f5ae03

File tree

1 file changed

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

1 file changed

+0
-31
lines changed

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

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

6-
/**
7-
* 659. Split Array into Consecutive Subsequences
8-
*
9-
* You are given an integer array sorted in ascending order (may contain duplicates),
10-
* you need to split them into several subsequences,
11-
* where each subsequences consist of at least 3 consecutive integers. Return whether you can make such a split.
12-
13-
Example 1:
14-
Input: [1,2,3,3,4,5]
15-
Output: True
16-
Explanation:
17-
You can split them into two consecutive subsequences :
18-
1, 2, 3
19-
3, 4, 5
20-
21-
Example 2:
22-
Input: [1,2,3,3,4,4,5,5]
23-
Output: True
24-
Explanation:
25-
You can split them into two consecutive subsequences :
26-
1, 2, 3, 4, 5
27-
3, 4, 5
28-
29-
Example 3:
30-
Input: [1,2,3,4,4,5]
31-
Output: False
32-
33-
Note:
34-
The length of the input is in range of [1, 10000]
35-
*/
36-
376
public class _659 {
387

398
public static class Solution1 {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy