Look at the logic in isValid.

Try it with pencil and paper for something that is not a valid triangle, say (1, 1, 3). What will isValid() return for this non-valid set of sides?


Cheers!

Z