Jump to content

  • Log In with Google      Sign In   
  • Create Account


Array


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • This topic is locked This topic is locked
3 replies to this topic

#1 chrispitt   Banned   -  Reputation: 34

Like
-3Likes
Like

Posted 07 May 2013 - 03:25 AM

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?



Sponsor:

#2 eppo   Crossbones+   -  Reputation: 2312

Like
0Likes
Like

Posted 07 May 2013 - 03:51 AM

In what language?

 

foreach(int element in array1) if(!array2.search(element)) Console.output(element);



#3 Khatharr   Crossbones+   -  Reputation: 2821

Like
1Likes
Like

Posted 07 May 2013 - 04:08 AM

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.

#4 Brother Bob   Moderators   -  Reputation: 7782

Like
0Likes
Like

Posted 07 May 2013 - 04:23 AM

You have been warned already about asking these one-liners without showing any effort yourself. Closing this thread.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS