cracking-the-coding-interview
cracking-the-coding-interview copied to clipboard
Updated variable lastBox to currBox
maxHeight += lastBox.height;
There is no variable name "lastBox" in first solution.