codedecks-in/LeetCode-Solutions

A better C++ solution for problem 100: Same Tree

lemorage opened this issue · 1 comments

There is an existing solution for Problem 100: Same Tree in C++ (#181), but the provided solution is suboptimal, unclear, and does not adhere to the breadth-first search (BFS) approach as it claimed. I would like to propose an improved solution using depth-first search (DFS) that can be implemented in just three lines of code in C++.

I kindly request that this issue be assigned to me. Problem Link: Problem 100: Same Tree

Thanks for helping us improve and opening your first issue here! Don't forget to give us a 🌟 to support us.

While you're waiting, I just wanted to make sure you've had a chance to look at our Readme and Pull Request Guidelines.