Arrays
On this page
This lesson contains approximately 35 minutes of video content.
Arrays
Limitations of arrays
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"
> Click Run to compile and run your code.