In a C++ function

How to check if the minimum and maximum values of an array are not equal and the minimum and maximum values of the array are not adjacent to one another.

Also the minimum value occurs exactly once in the array and the maximum value occurs exactly once in the array.

Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster

munadel 0 Newbie Poster

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Lerner 582 Nearly a Posting Maven

munadel 0 Newbie Poster

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

munadel 0 Newbie Poster

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

munadel 0 Newbie Poster

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

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.