////////////////////////////////////////////////////////////// isEverywhere // // We'll say that a value is "everywhere" in an array if for every pair // of adjacent elements in the array, at least one of the pair is that // value. Return true if the given value is everywhere in the array. // // Parameters: // Candidate value to test // List[] array of integer values // numValues number of values stored in List[] (usage) // // Pre: List[] is initialized to hold numValues integers, stored at // index values 0 through numValues-1. // // Returns: true if Candidate IS everywhere in List[]; false otherwise // // Examples: // isEverywhere(1, {1, 2, 1, 3}, 4) == true // isEverywhere(2, {1, 2, 1, 3}, 4) == false // isEverywhere(1, {1, 2, 1, 3, 4}, 5) == false // bool isEverywhere(const int Value, const int List[], const unsigned int numValues) { // Paste the body of your solution here and submit this file. // Do not change anything above this comment. } // Do not change anything below this comment.