Awesome-sauce IsIsogram implemented!

Hey Guys,

Here is my implementation of IsIsogram():

Works with “\0” and blank letters!

So far so good. I’ve only minimal coding experience and have been learning a ton. I never thought I would be diving into C++ if it weren’t for finding this course. Thanks Dudes!

Jeff

I am curious how it is ok in the video to end return true; outside the if statement (where we are checking for repeat letters). I thought the compiler might always read IsIsogram() = true in that case… However, in the video, Ben leaves it outside the if statement rather than including at (as I have done in my example above).

Anyone know why that is? Is it because it can only return a value once and the method is finished?

Thanks!

I believe he uses else not else if and also has a return true outside of the loop.

Privacy & Terms