Array

Started by
2 comments, last by Brother Bob 10 years, 11 months ago

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?

Advertisement

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
void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

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