---
title: "Discussion on \"LeetCode 100: Same Tree — Step-by-Step Visual Trace\" | Hashnode"
description: "Discussion on \"LeetCode 100: Same Tree — Step-by-Step Visual Trace\". Given the roots of two binary trees p and q, determine if they are the same tree. Two binary trees are considered the same if they are structurally identical and the nodes have the same values."
url: "https://hashnode.com/posts/same-tree-visualization/69d7d28bcbde7a930d4aaeec"
---

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

Discussion

# [LeetCode 100: Same Tree — Step-by-Step Visual Trace](https://blog.tracelit.dev/same-tree-visualization?utm_source=hashnode&utm_medium=feed)

Given the roots of two binary trees p and q, determine if they are the same tree. Two binary trees are considered the same if they are structurally identical and the nodes have the same values.

Apr 9 · 1 min read · blog.tracelit.dev  
Read the article

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

## Written by

[tracelit](https://hashnode.com/@tracelit)

@tracelit

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
