---
title: "Discussion on \"Leetcode: Cousins in Binary Tree\" | Hashnode"
description: "Discussion on \"Leetcode: Cousins in Binary Tree\". Given the root of a binary tree with unique values and the values of two different nodes of the tree x and y, return true if the nodes corresponding to the values x and y in the tree are cousins*, or false otherwise.*\nTwo nodes of a binary tree are c..."
url: "https://hashnode.com/posts/leetcode-cousins-in-binary-tree/64ac3f67ce7667469e4d51a7"
---

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

Discussion

# [Leetcode: Cousins in Binary Tree](https://mujahid2923.hashnode.dev/leetcode-cousins-in-binary-tree?utm_source=hashnode&utm_medium=feed)

Given the root of a binary tree with unique values and the values of two different nodes of the tree x and y, return true if the nodes corresponding to the values x and y in the tree are cousins\*, or false otherwise.\* Two nodes of a binary tree are c...

Jul 10, 2023 · 4 min read · mujahid2923.hashnode.dev  
Read the article

-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)
-   [#cpp-ck4ra5k7300nlv2s1jbkdp2qh](https://hashnode.com/tag/cpp-ck4ra5k7300nlv2s1jbkdp2qh)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#problem-solving](https://hashnode.com/tag/problem-solving)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Mujahidul islam](https://hashnode.com/@mujahid2923)

@mujahid2923 · Dhaka, Bangladesh

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

Software Engineer

I am a Software Engineer at SELISE Digital Platforms

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
