217. Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct.
思路:若整型数组中存在出现超过一次的数则返回真,否则返回假。同样利用C++ 中STL中的map结构,注意map遍历的方式:详见注释。