I had put comments for the same.......The code coming as soon as I reaches my laptop. Do the same as u will do for converting for binary...except divide by -2 each time and donr let the remainder become -ve at any time take the higher integer,
On Sun, Jul 31, 2011 at 6:13 PM, Amol Sharma <[email protected]> wrote: > @saurabhsingh --- i don't understand python at the moment......can u code > the same in c/c++ > it would be very kind of you if you do it..... or at least explain how are > you proceeding... > -- > > > Amol Sharma > Third Year Student > Computer Science and Engineering > MNNIT Allahabad > > > > > On Sun, Jul 31, 2011 at 3:20 PM, saurabh modi <[email protected] > > wrote: > >> yeah,only some compilers support it. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Saurabh Singh B.Tech (Computer Science) MNNIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
