Skip to content

Commit 383b770

Browse files
refactor 1291
1 parent 67da0e7 commit 383b770

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

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

-17
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,6 @@
22

33
import java.util.List;
44

5-
/**
6-
* 1291. Sequential Digits
7-
*
8-
* An integer has sequential digits if and only if each digit in the number is one more than the previous digit.
9-
* Return a sorted list of all the integers in the range [low, high] inclusive that have sequential digits.
10-
*
11-
* Example 1:
12-
* Input: low = 100, high = 300
13-
* Output: [123,234]
14-
*
15-
* Example 2:
16-
* Input: low = 1000, high = 13000
17-
* Output: [1234,2345,3456,4567,5678,6789,12345]
18-
*
19-
* Constraints:
20-
* 10 <= low <= high <= 10^9
21-
* */
225
public class _1291 {
236
public static class Solution1 {
247
public List<Integer> sequentialDigits(int low, int high) {

0 commit comments

Comments
 (0)