thanks a lot for replying to the post... but try posting algorithm rather than actual code...
On Mon, Oct 10, 2011 at 2:17 PM, anshu mishra <anshumishra6...@gmail.com>wrote: > string all1Multiple(int x) > { > string s; > set<int> mySet; > mySet.push(0); > int psize, r=1; > do > { > psize = mySet.size(); > s += '1'; > r = r % x; > mySet.push(r); > r = r * 10 + 1; > } while(mySet.size() > psize); > > if (r != 1) return "not Possible"; > return s; > > } > > -- > 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. > -- 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.