Back to course home
0% completed
Vote For New Content
Improve python solution with hashset
Victor An
May 17, 2023
is self.vowels.find(array[first]) efficient?
I would better to use a hashset to replace it.
1
0
Comments
Comments
Shubham Voraa year ago
Here, the length of the vowels is constant. So, it doesn't matter much whether you use find() method or HashSet.