Arrays
This lesson contains approximately 35 minutes of video content.
Arrays
Limitations of arrays
Activity: Does an array contains duplicate values?
Graded Playground Autograder
Activity Prompt:
In this problem, you will define
ContainsDuplicate(int array[], unsigned int array_size). This function must return true if any integer value in array appears at least twice; false if every element in array is distinct. Please write your declaration for this function in solution.hpp and then define it in solution.cc.
#include <iostream>
#include "solution.hpp"
int main() {
}
#ifndef SOLUTION_HPP
#define SOLUTION_HPP
#endif
#include "solution.hpp"
Submit is not supported in this site.