HighLanders wrong comments

In the HighLanders level (Mountains)
There is a confusing use of comments

First of all

// If [i + j]th letter of the string is not equal [j]th letter of world, then break loop

I think its supposed to say word instead of world but i can be wrong.

// If loops are ended then the word is not inside the string. Return False.

Its not needed to finish the level and its only confusing people(me) since i think we shouldnt add unnecessary code and keep everything as simple as possible.

Yep, it’s typo.

It’s not needed because the function without return returns null, but it’s not a good practice.

1 Like