2 thoughts on “Udacity – Intro to Computer Science – Python – Flag High Watermark From List”

  1. It’s a really brilliant solution! Except, I don’t think the first solution is a hundred percent correct. I mean, according to the code, the maxnum will be replace only if the num is bigger than the maxnum. In that case when the input is 6352, it will get the result [6,[3,5,2]], which is not correct. Correct me if I’m wrong but I think the line <maxNum=num should be written under the else line.

Leave a reply