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 df5f8f3 commit d6081d8Copy full SHA for d6081d8
Trees/test/DiameterOfBinaryTree.test.js
@@ -47,7 +47,7 @@ describe('Diameter of a Binary Tree', () => {
47
root.left.right.right = new TreeNode(6);
48
root.left.right.left.left = new TreeNode(7);
49
root.left.right.right.right = new TreeNode(8);
50
- expect(diameterOfBinaryTree(root)).toBe(6);
+ expect(diameterOfBinaryTree(root)).toBe(4);
51
});
52
53
it('should return 0 for a null or single-node tree', () => {
0 commit comments