DinghaoLI / Coding-Interviews-Golang

剑指offer的Go实现 完整版
MIT License
394 stars 103 forks source link

树的子结构题目hasSub 33行出if p.Val != c.Val 条件成立返回的应该是false吧 #4

Open voctior opened 4 years ago

voctior commented 4 years ago

https://github.com/DinghaoLI/Coding-Interviews-Golang/blob/cd7e47ea581265709ed5b1fb75c073c93dfdab34/018-%E6%A0%91%E7%9A%84%E5%AD%90%E7%BB%93%E6%9E%84/problem018.go#L32

songjiayang commented 3 years ago

应该为 false