Skip to content

Conversation

jianminchen
Copy link
Contributor

dfs function name should be a meaningful name, add comment or change the name to calculateLongestUnivaluePathFromRootToLeaves. Specify the additional calculation of max univalue path cross the root node, global maximum value is updated.

I think that it is better to add comment right now to fit you overall coding style.

change dfs function name to meaningful name, calculateLongestUnivaluePathFromRootToLeaves, and also additional calculation of max univalue path cross the root node should be specified somehow, one or two comments should be very helpful.
@fishercoder1534 fishercoder1534 merged commit 960e2dd into fishercoder1534:master Oct 20, 2018
fishercoder1534 pushed a commit that referenced this pull request Jun 6, 2019
change dfs function name to meaningful name, calculateLongestUnivaluePathFromRootToLeaves, and also additional calculation of max univalue path cross the root node should be specified somehow, one or two comments should be very helpful.
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.

2 participants