Rc
unread,Jul 11, 2012, 4:09:29 PM7/11/12Sign 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 geek...@googlegroups.com
hi
this is the code for 1st one,
i think this will work.
if u find any mistake, just reply me back with the input, for which u r getting wrong input.
Time-complexity: O(n^2)
worst case if you entered all input elements are equal then: O(n^3)
thanks...............