@Jitendra Sorry for the previous post. There is a problem in my approach. I overlooked that. Working on it.. :(
On Jul 8, 9:03 pm, Jitendra Kushwaha <jitendra.th...@gmail.com> wrote: > @souravsain > Consider your algo for the case > int arr[] = {10,20,30,40,50,23,27}; > > everytime when you increment the j you are missing on element i.e j-1 for > further comparison > > -- > Regards > Jitendra Kushwaha > MNNIT, Allahabad -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@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.