Hi Mukul,
I guess the complexity of the proposed algorithm is O(n^2) because you
have two nested loops
(n-2)*(n/2)
It is not linear.please correct me if i missed some concept
Regards,
Aamid
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---