Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdate _5.java #26
Update _5.java #26
Conversation
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.
还有一个复杂度为 O(n)O(n) 的 Manacher 算法
还有一个复杂度为 O(n)O(n) 的 Manacher 算法