View Single Post
  #17 (permalink)  
Old 04-23-2008, 02:11 PM
sanjeevtarar's Avatar
sanjeevtarar sanjeevtarar is offline
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by raj reddy View Post
yes we have to compare the next 5 elements also sanjeev

it will continue upto the last 5 elements in the array
Ok .... at last you are comparing all elements of list1 with list2 ...am i right.

then why are you comparing like that ......??

what i understand is that : when you find an element of list1 in to list2's top 5 you will do something or exit the loop...if you do not find in first 5 then you will search next 5.....am i right



sanjeev
Reply With Quote