My LeetCode grinding. Trying to do a problem a day.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

problem.txt 550B

12345678910111213141516
  1. A self-dividing number is a number that is divisible by every digit it contains.
  2. For example, 128 is a self-dividing number because 128 % 1 == 0, 128 % 2 == 0, and 128 % 8 == 0.
  3. Also, a self-dividing number is not allowed to contain the digit zero.
  4. Given a lower and upper number bound, output a list of every possible self dividing number, including the bounds if possible.
  5. Example 1:
  6. Input:
  7. left = 1, right = 22
  8. Output: [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 15, 22]
  9. Note:
  10. The boundaries of each input argument are 1 <= left <= right <= 10000.