Skip to main content
GameDev.net gamedev.net
🔒 Locked

Array

Started by chrispitt May 7, 2013 at 9:25 AM 2 replies 1.9k views
Original Post
chrispitt
chrispitt

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?

eppo
eppo

In what language?

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

Khatharr
Khatharr
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.
Brother Bob
Brother Bob

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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.