Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100. Same Tree BFS Problem in C++ #181

Merged
merged 3 commits into from
Jul 29, 2021

Conversation

Amisha328
Copy link
Contributor

Pull Request for Issue #77

Description

The simplest strategy here is to use recursion. Check if p and q nodes are not null, and their values are equal. If all checks are OK, do the same for the child nodes recursively.

Problem URL

https://leetcode.com/problems/same-tree/

@welcome
Copy link

welcome bot commented Jul 29, 2021

I can tell this is your first pull request! Thank you I'm so honored. 🎉🎉🎉 I'll take a look at it ASAP!

@GouravRusiya30 GouravRusiya30 merged commit c1b60a6 into codedecks-in:master Jul 29, 2021
@welcome
Copy link

welcome bot commented Jul 29, 2021

Your code looks great! Congrats, I've gone ahead and merged your first pull request! Keep it up! alt text

@Amisha328
Copy link
Contributor Author

Your code looks great! Congrats, I've gone ahead and merged your first pull request! Keep it up! alt text

Thank you so much 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants