Sobes.tech
Intern — Senior

Determining the uniqueness of elements in an array of integers

livecode

Task condition

It is necessary to implement a function that:

  • Accepts an array of integers (type []int).
  • Returns true if each element of the array occurs only once (no duplicates).
  • Returns false if there is at least one repeating element in the array.