𝔉𝓮𝓵𝓲𝓬𝓲𝓪 𝓗𝓪𝓰𝓰𝓪𝓻𝓭
❔ Verify Uniqueness in an Array
Does anyone know how to determine if an array contain unique names in an array without using previously defined methods. I have worked on this for days and finally just had to submit the homework without figuring it out.
The instructions:
"Given an array of string, names, verify that each name is unique meaning that none of the names are duplicated within the array. If the array is unique, return true; otherwise, return false."
My code:
13 replies