any one knows how to write this program:-

given two arrays A and B . array 'A' contains all the elements of 'B' but one more element extra. write a c++ function which accepts array 'A' and 'B' and its size as arguments/parameters and find out the extra element in array A.(restriction:-array elemts are not in order).

help me if you know the answer...............

Recommended Answers

All 2 Replies

I do...

If you want help, you have to provide the work, we can provide direction and suggestions.

O( n ) right waltP? just checking ;)
arushi when you show us some work we'll help you with the best answer there is,
and you will learn stuff - AWESOMEEEEEEEE

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.