LeetCode-Feedback / LeetCode-Feedback

666 stars 321 forks source link

[EDITORIAL] - 1644. Lowest Common Ancestor of a Binary Tree II #24059

Open Hel5inki opened 3 weeks ago

Hel5inki commented 3 weeks ago

LeetCode Username

Hel5inki

Problem Number, Title, and Link

  1. Lowest Common Ancestor of a Binary Tree II https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree-ii/editorial/

Bug Category

Editorial

Bug Description

The LCA solution in the first approach does not match the editorial solution for that problem. I actually prefer the solution you present for that problem here more than the editorial solution. So, it would be easier to follow the approach 1 solution if the previous problem's editorial was updated to use the solution presented here with an explanation. It's easy to understand, but not easy to see how you arrived to that solution

Language Used for Code

Python/Python3

Code used for Submit/Run operation

No response

Expected behavior

https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/editorial/ solution should match the algorithm used in https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree-ii/editorial/ so that it is easier to understand how to get from the solution to the basic LCA problem to the modified LCA II problem

Screenshots

No response

Additional context

No response

exalate-issue-sync[bot] commented 3 weeks ago

LeetCode Support commented: Hello,

Your reported issue has been relayed to our team for thorough investigation. We appreciate your patience as we work to address and resolve this matter. We will reach out to you when we have updates regarding the issue.

If you have any further questions or concerns in the meantime, please feel free to let us know.

Best regards, LeetCode Support Team