Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Array

4: Adsense

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   

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?



#2 eppo   Members   

4769
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   Members   

8646
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   

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