Recently came across a question --
Convert a decimal number(base 10) to binary number(base 2) but not the way we normally do. The algorithm is to be figured by us based on the following data--
0 = 000
1 = 001
2 = 011
3 = 010
4 = 110
5 = 111
6 = 101
7 = 100
13 = 1011
I tried really hard to come up with an algorithm but could not. Can someone think of a solution?