Skip to content

Commit fdd7017

Browse files
authored
Update Solution.kt
1 parent 9084100 commit fdd7017

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g0501_0600/s0572_subtree_of_another_tree

1 file changed

+1
-1
lines changed

src/main/kotlin/g0501_0600/s0572_subtree_of_another_tree/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Solution {
2424
if (root == null || subRoot == null) {
2525
return false
2626
}
27-
return if (root.`val` === subRoot.`val`) {
27+
return if (root.`val` == subRoot.`val`) {
2828
isSubtreeFound(root.left, subRoot.left) && isSubtree(root.right, subRoot.right)
2929
} else {
3030
false

0 commit comments

Comments
 (0)