will it work

modifying the comparison function of the sort as follows

generate two new numbers c and d from arguments a,b as
c = ab; //concatenation
d = ba;
compare c and d
if c >= d return true means a will come before b in final ordering
else return false means b will come before in final ordering

concatenation may overflow so can be done in strings

-- 
Sunny Aggrawal
B-Tech IV year,CSI
Indian Institute Of Technology,Roorkee

-- 
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