DEV Community

Discussion on: Solution: Determine if String Halves Are Alike

Collapse
 
bugb profile image
bugb

I think using Map or Object will reduce time to check. 'aeiouAEIOU'.includes always O(n) but using Map it is only O(1)