Diameter of an Undirected Tree

Quick Overview

Compute the number of edges in the longest simple path of a large undirected tree in linear time.

Diameter of an Undirected Tree

Company: Salesforce

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Compute the number of edges in the longest simple path of a large undirected tree in linear time.

Salesforce logo
Salesforce
Aug 12, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
2
0
Loading...