@simran you interested in solving problem or knowing the company recruitment process :P
@abhishek looks like a dynamic programming problem.... one simple brute force solution will be to go recursively down and evaluate all expressions one by one On Wed, Sep 21, 2011 at 8:22 PM, Simran Singh <sammy.4...@gmail.com> wrote: > Hey.. Which college you from..?? And please do tell more about their > process.. > > On Wed, Sep 21, 2011 at 7:31 PM, abhishek <abhishek.ma...@gmail.com>wrote: > >> You have given a number 123456789 and two opearators + and *. You can >> use this two operators as many times u want. But you cant change the >> sequence of the number given there. The evaluated value is 2097. >> >> e.g. 1+2+345*6+7+8+9=2097 >> >> >> You have to find all the such expressions that evaluates and value is >> equal to the given value. You can use concatenation of numbers like >> 345 is concatenated there. >> >> Please remember that You have to find all Such expressions. And write >> C/C++/Java code for that >> >> -- >> 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. >> >> > > > -- > Simran Singh > Under Graduate student, > Computer Engineering, > Netaji Subhas Institute Of Technology, > Dwarka Sec-3, Delhi-78 > (M): +91-9811699512 > > -- > 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.