We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9084100 commit fdd7017Copy full SHA for fdd7017
src/main/kotlin/g0501_0600/s0572_subtree_of_another_tree/Solution.kt
@@ -24,7 +24,7 @@ class Solution {
24
if (root == null || subRoot == null) {
25
return false
26
}
27
- return if (root.`val` === subRoot.`val`) {
+ return if (root.`val` == subRoot.`val`) {
28
isSubtreeFound(root.left, subRoot.left) && isSubtree(root.right, subRoot.right)
29
} else {
30
false
0 commit comments