solution for 1st program

18 views
Skip to first unread message

Rc

unread,
Jul 11, 2012, 4:09:29 PM7/11/12
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...............



1.c

ARUN GUPTA

unread,
Jul 12, 2012, 2:54:35 AM7/12/12
to geek...@googlegroups.com
of the order n^3 .....   mine is only .......... n and n^2
Reply all
Reply to author
Forward
0 new messages