Given two array,1,2,3,4,5 and 2,3,1,0,5 how to find out which number is not present in second array?
In what language?
foreach(int element in array1) if(!array2.search(element)) Console.output(element);
Stop asking homework/interview questions. At least have some sense of shame and just google the question instead of waltzing in here and asking us.
http://www.google.com/search?q=Given+two+array,1,2,3,4,5+and+2,3,1,0,5+how+to+find+out+which+number+is+not+present+in+second+array
http://www.google.com/search?q=Given+two+array,1,2,3,4,5+and+2,3,1,0,5+how+to+find+out+which+number+is+not+present+in+second+array
You have been warned already about asking these one-liners without showing any effort yourself. Closing this thread.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement