Skip to content

Commit c94b20f

Browse files
authored
Update SerializeaBinaryTree.java
1 parent fea3e67 commit c94b20f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/com/thealgorithms/datastructures/trees/SerializeaBinaryTree.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public static void main(String[] args) {
132132
// Deserialize the string back to a binary tree
133133
TreeNode deserializedRoot = serializer.deserialize(serializedTree);
134134
System.out.println("Tree deserialized successfully. Root value: " + deserializedRoot.val);
135+
// Expected output: Root value should be 1
135136
}
136137
}
137138

0 commit comments

Comments
 (0)