Блог пользователя retry__

Автор retry__, история, 5 лет назад, По-английски

given a number x, we have to reach from 1 to x on number line and at each position i we can move to i+1 or to reverse of number i(ignoring the leading zeroes, say from 23 to 32). Find the minimum number of steps to reach x. x<=1e14

Полный текст и комментарии »

  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится