nice solution by ankit. but can anyone tell if we were to find sequence that may or may not be contiguous.
On Thu, Jul 21, 2011 at 12:22 AM, Kamakshii Aggarwal <[email protected]>wrote: > > a little mistake in ankur's solution > 20 , -9 , 3 , 1, 5 , 0, -6 , 9 > 20 , 11,14,15,20,20(instead of 0),14,23 > now if sum of two consecutive terms is same then this means a 0 exists.and > hence it can be printed as a subarray..else ankur's sol works fine..:) > > > On Thu, Jul 21, 2011 at 12:06 AM, sagar pareek <[email protected]>wrote: > >> @ankur.... >> >> pls explain through an example by taking above problem..... >> >> >> On Wed, Jul 20, 2011 at 10:52 PM, SAMMM <[email protected]> wrote: >> >>> >>> >>> Nice solution dude .........!!!! Like that one .... >>> >>> -- >>> 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. >>> >>> >> >> >> -- >> **Regards >> SAGAR PAREEK >> COMPUTER SCIENCE AND ENGINEERING >> NIT ALLAHABAD >> >> -- >> 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. >> > > > > -- > Regards, > Kamakshi > [email protected] > > -- > 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. > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Technology Allahabad. Ph : 09793899112 Official Email :: [email protected] Another Email :: [email protected] People who fail to plan are those who plan to fail. -- 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.
