Its a standard question and balaji's approach has been accepted as the best possible solution.
@Krace: In the list 1->2->3->4->5, If address of 3 is the only known value & if u want to delete 3 from the list, this wont work. -- 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 algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.