above link was for reference , extending the logic was obvious :) :) On Mon, Sep 3, 2012 at 11:22 AM, bharat b <[email protected]>wrote:
> @atul: question is to find the largest continuous sub array .. not just > continuous sub array .. > > we can do this with same logic as mentioned in the above link.. we have to > traverse whole array.. even if we get the solution .. > whenever we get the solution,update the "largest_subarray_start_index" and > "largest_subarray_end_index" based on previous length of the solution sub > array . > > On Mon, Sep 3, 2012 at 9:26 AM, atul anand <[email protected]>wrote: > >> http://www.geeksforgeeks.org/archives/19267 >> >> >> On Mon, Sep 3, 2012 at 7:41 AM, Amitesh Singh <[email protected]>wrote: >> >>> Given a array, find the largest contiguous sub-array having its sum >>> equal to N. >>> >>> -- >>> 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. >>> >>> >> -- >> 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. >> > > -- > 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. > -- 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.
