Ajay
unread,Aug 13, 2009, 12:33:58 AM8/13/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ds--al...@googlegroups.com
An array was given with duplicates in random, WAP to print that in right order.
Please see example:
Given 5,12,,6,8,6,12,6,5,2
Output: 5,5,12,12,6,6,8,2
Here 12>6 but we will print 12 first because in original array 12 is before 6 for first time.
--
Ajay Kr. Gautam
Postgraduate Student,
Dept. of Computer Science & Engg., IT-BHU
Varanasi-221005, UP
India
-----------------------------------------------------------------
"Easy reading is damned hard writing."
~ Nathaniel Hawthorne