I’m doing an easy leetcode problem where I have to implement a function with a string input that contains distinct characters and a string array.
I’m supposed to output the number of elements in the array that only contains characters that belong to the string input. So I figured that sets would be ideal for such a problem.
However, when I’m trying to convert an array of characters into a set, it gives me this error.