count number of elements from both lists and reverse list with minimum number of elements, go ahead with checking and deleting linearly
surender On Fri, Jul 15, 2011 at 10:38 PM, Nishant Mittal <[email protected] > wrote: > delete all the numbers found in list2 from list1 recursively or iteratively > Also optimize ur algo when list1 is sorted in ascending order and list2 is > sorted in descending order > > -- > 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?hl=en. > -- 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?hl=en.
