@Dave - Nice solution :) On Jul 10, 4:42 pm, Dave <[email protected]> wrote: > @Anurag: > Seehttp://groups.google.com/group/algogeeks/msg/d90353c759125384?hl=en. > > Dave > > On Jul 10, 1:14 am, anurag <[email protected]> wrote: > > > You are given two integers n and k > > k signifies number of set bits i.e. if k = 3 then output should have 3 > > set bits. > > Output should be the nth smallest number having k set bits > > for example > > k=1 and n=3 > > output should be > > 4 (00000100)
-- 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.
