@juver i am really sorry ,i forget to mention.ya this soln will work only if n is even power of 2.
Regards Priyaranjan http://code-forum.blogspot.com On Jan 17, 12:43 pm, juver++ <avpostni...@gmail.com> wrote: > @awesomeandroid > Your solution for Q1 is wrong. It can be applied only for such numbers N = > 2^k, so number should power of 2. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.