I am afraid, I don't understand your solution Karthik. When the loop is
run for program P1, Arr[0] = 1 and Arr[P1] = 1, when program P2 is
considered Arr[P0]=1, Arr[P2]=1 and Arr[P1+P2]=1 etc
After considering Pn, we have Arr[P1+...+Pn]=1, so how does this help
solve the problem?
Can you explain your solution more in depth?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to