retry__'s blog

By retry__, history, 5 years ago, In English

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

Full text and comments »

  • Vote: I like it
  • -17
  • Vote: I do not like it