Solved LeetCode program · 928 of 1,000
#1291 · Sequential Digits
Original English source
The low is 100. The high is 300. The answers is an empty list of whole numbers.
For every first from 1 to 9.
The value is first. The digit is first.
Repeat while digit is less than 9 and value is at most high.
Add 1 to digit. Set value to value times 10 plus digit. If value is at least low and value is at most high, Place value into answers.
The pieces is an empty list of text.
For each answer in answers.
The piece is format whole number answer as text. Place piece into pieces.
The line is join pieces with ",". Show line.
Expected stdout
123,234