Skip to content

Editorial: issue about return description #26049

@Fenardle

Description

@Fenardle

LeetCode Username

James_Jone

Problem Number, Title, and Link

https://leetcode.com/problems/find-minimum-diameter-after-merging-two-trees/editorial/?envType=daily-question&envId=2024-12-24

Bug Category

Editorial

Bug Description

For solution 3 with topological sort, the explanation for minimumDiameterAfterMerge is wrong:
If more than two nodes remain, return twice the number of layers of leaves removed.

It should be "If one node remain, return twice the number of layers of leaves removed."

Language Used for Code

None

Code used for Submit/Run operation

No response

Expected behavior

It should be "If one node remain, return twice the number of layers of leaves removed."

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions