---
title: "Discussion on \"LeetCode #236 Lowest Common Ancestor of a Binary Tree\" | Hashnode"
description: "Discussion on \"LeetCode #236 Lowest Common Ancestor of a Binary Tree\". 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 ..."
url: "https://hashnode.com/posts/leetcode-236-lowest-common-ancestor-of-a-binary-tree/66980d26a5773871609784b6"
---

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

Discussion

# [LeetCode #236 Lowest Common Ancestor of a Binary Tree](https://nobleknight.hashnode.dev/leetcode-236-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 ...

Jul 17, 2024 · 1 min read · nobleknight.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Ajay Dandge](https://hashnode.com/@nobleknight)

@nobleknight · India

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

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
