@surender thanx for ur algo but tell me about the 1st part when numbers are
not sorted.....
i think if we apply merge sort on both the list then it would be easy to
delete after sorting.....
correct me if i m wrong

On Sat, Jul 16, 2011 at 12:40 AM, surender sanke <surend...@gmail.com>wrote:

> 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 <
> mittal.nishan...@gmail.com> 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 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.
>>
>
>
> --
> 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.
>

-- 
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.

Reply via email to