IsIsogram() - most efficient method?

Here is my code:

image

I’m very sure that we don’t need those if statements at the start. If the string is empty or of length 1 then it will still return true. This method is much more compact also. Please share your opinions on it though

1 Like

Privacy & Terms