Do we really need to reverse? Can't we apply any normal sorting algo
like merge sort or quick sort and for the comparison part of it, use
the last characters of each string only?

On Jun 27, 4:21 am, varun pahwa <varunpahwa2...@gmail.com> wrote:
> reverse all strings and then sort.
>
> On Mon, Jun 27, 2011 at 2:28 PM, Nishant Mittal
> <mittal.nishan...@gmail.com>wrote:
>
> > WAP to sort an array of character strings on the basis of last
> > character of each string
> > eg:- {xxxc , yyya, zzzb} => {yyya , zzzb, xxxc}
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algogeeks@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.
>
> --
> Varun Pahwa
> B.Tech (IT)
> 7th Sem.
> Indian Institute of Information Technology Allahabad.
> Ph : 09793899112 ,08011820777
> Official Email :: rit2008...@iiita.ac.in
> Another Email :: varunpahwa.ii...@gmail.com
>
> 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 algogeeks@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