Skip to content

Conversation

Yu-Xiaoxian
Copy link

动态申请的内存空间 visited,当函数在for循环中退出时,也应该及时释放,因此在'return true'之前,添加'delete[] visited'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant