ParentFull threadaarohmankad·This is the correct answer. We can even account for the assumption with an empty check before the rest of the code. (If the array is empty, it doesn't have a max value.)View on HN