此 issue 的目的是修复 chatGPT 转译的多语言代码,更详细的背景信息和修复流程见:https://github.com/labuladong/fucking-algorithm/issues/1113 ### 请在提交 bug 之前先搜索 - [X] 我已经搜索过 [issues](https://github.com/labuladong/fucking-algorithm/issues),没有发现相同的 bug。 ### 出错的题目链接 https://leetcode.cn/problems/diameter-of-binary-tree/ ### 报错信息 <!-- 把报错粘贴到下面的 ``` 块中 --> ``` Line 7: Char 20: undefined: maxDepth (solution.go) Debug: ``` ### 你是否愿意提交 PR 修复这个 bug? - [ ] 我愿意!