Menu
Coddy logo textTech

Non Repeated Indices

Lesson 15 of 24 in Coddy's Golang Challenges - Level 1 course.

challenge icon

Challenge

Medium

We have an array of characters like this: ["a", "fc", "ab", "a", "ab", "b"]. 

Write a function that takes this array as input and returns the indices of the non-repeated characters.

For example, in this example, the expected output should be [1, 5].

Try it yourself

func nonRepeatedIndices()  {
	

}

All lessons in Golang Challenges - Level 1