harshit2001411's blog

By harshit2001411, history, 20 months ago, In English

Hi, There was this one tedious problem in the Uber coding round.

Q) Given a binary string S, convert it to a base 6 equivalent number string.

S.length() >= 1 && S.length() <= 100.

My question is whether there is any faster way to do such conversions instead of the old-fashioned way of converting to base 10 and then to base 6?

PS: the round got cancelled because of the server crash.

Full text and comments »

  • Vote: I like it
  • +18
  • Vote: I do not like it