i think we should take two pointers and then move the second pointer to n-1 places from the first and then move both the pointers simultaneously when the second pointer becomes null we get the first pointer as the final answer...
but the confusion is whether to count the movement of the second pointer n-1 places ahead as being counted in the pass or not... correct me if i m wrong plzzzzzzzzzzz..... --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---