---
title: "Discussion on \"Lowest Common Ancestor of a Binary Tree\" | Hashnode"
description: "Discussion on \"Lowest Common Ancestor of a Binary Tree\". Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.\nAccording to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q..."
url: "https://hashnode.com/posts/lowest-common-ancestor-of-a-binary-tree/63cc16c1fdf271c0f7ad84c1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lowest Common Ancestor of a Binary Tree](https://amitkushwahatech.hashnode.dev/lowest-common-ancestor-of-a-binary-tree?utm_source=hashnode&utm_medium=feed)

Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q...

Jan 21, 2023 · 3 min read · amitkushwahatech.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)
-   [#lca](https://hashnode.com/tag/lca)
-   [#lowest-common-ancestor](https://hashnode.com/tag/lowest-common-ancestor)

## Written by

[Amit Kushwaha](https://hashnode.com/@amitkushwahatech)

@amitkushwahatech

  
[View profile](https://hashnode.com/@amitkushwahatech)

Aspiring Java Software Developer, Frontend ,Backend

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
