Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit383b770

Browse files
refactor 1291
1 parent67da0e7 commit383b770

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,6 @@
22

33
importjava.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
publicclass_1291 {
236
publicstaticclassSolution1 {
247
publicList<Integer>sequentialDigits(intlow,inthigh) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp