@souravsain

for input {10,20,30,40,50,23,27};
ur output is coming  10, 20, 23, 27, 40, 30, 50,
which not SORTED array.....

On Jul 10, 6:19 pm, souravsain <souravs...@gmail.com> wrote:
> @Jitendra
>
> I have run the code with input given by you and found that it works
> well.
>
> Please have a look athttp://codepad.org/iMBTwAL7
>
> Appriciate the effort taken by you to analyze the solution and do let
> me know if you still do not agree with the code.
>
> Regards,
> Sourav
>
> 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.

Reply via email to