leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Java solution of 572 - Subtree of Another Tree does not pass the required tests

Open creatorblue32 opened this issue 4 years ago • 3 comments

Java solution of 572 - Subtree of Another Tree fails when the following is presented as input:

[1,1] [1]

(which is a Leetcode test case that it fails, making the solution incorrect)

creatorblue32 avatar Jul 27 '22 20:07 creatorblue32

Made a PR to fix the solution. #667

KC10201 avatar Jul 28 '22 01:07 KC10201

One test case that it is failing on is : [1,1] [1] Solution cant tell that the subtree has been completely found if there is a single node

Shidhanta avatar Jul 28 '22 17:07 Shidhanta

solution has been updated, and this issue can be closed now.

KC10201 avatar Jul 29 '22 01:07 KC10201