Problem

Return true if any duplicate exists.

Examples

  • containsDuplicates([1, 2, 1]) -> true
Compile and test (Ctrl+Enter)