Given an integer array nums, return true if any value appears
at least twice in the array, and return false if every element is distinct.
Given an integer array nums, return true if any value appears
at least twice in the array, and return false if every element is distinct.
Student
I completed my post-graduation in 2013 in the engineering field. Engineering is the application of science and math to solve problems. Engineers figure out how things work and find practical uses for scientific discoveries. Scientists and inventors often get the credit for innovations that advance the human condition, but it is engineers who are instrumental in making those innovations available to the world. I love pet animals such as dogs, cats, etc.
Let's write code to check whether the array contains duplicate values.
Now call this function from the main function.
Output :