func Set(arr []int) []int {
for i := 0; i < len(arr); i++ {
for j := 0; j < len(arr); j++ {
if arr[i] == arr[j] && i != j {
arr = append(arr[:j],arr[j+1:]...)
}
}
}
return arr
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)