Coding · MediumDiameter of a binary tree (longest path between any two nodes)CodingData StructuresBinary TreeDFSSenior