How `this` behaves in JavaScript
April 24, 2025
1 min
Given the BinaryTree class with below structure.
Each Node will have a left Node, a right Node and a data.
Please Implement this BinaryTree class with method getMaxDepth() to calculate the highest depth of the binary tree.
Quick Links
Legal Stuff
Social Media