JobsJob TrackerJob alerts

Medlife ยท 25 questions

All 25Coding 24
  • Simple ImplementationCoding
  • Dictionary or Map ProblemCoding
  • Escape GridCoding
  • Knight Tour ProblemCoding
  • Diameter of the treeCoding
  • Check sum of two nodes equals kCoding
  • Hub and Product Requirement MatchingCoding
  • XOR of Encrypted CharactersCoding
  • Hotel Room AllocationCoding
  • Insert node in Linked ListCoding
  • Binary Search ComplexityCoding
  • QuickSort ImplementationCoding
  • Fibonacci SeriesCoding
  • Stack as QueueCoding
  • MergeSort ImplementationCoding
  • Detective ball and Horse puzzles
  • Sorting AlgorithmsCoding
  • Counting SortCoding
  • Segments with leftmost and rightmost elements as maximumCoding
  • Rank of string in all substringsCoding
  • Reverse stack without extra data structuresCoding
  • Maximum product of two elements in arrayCoding
  • Divide binary tree into two halves with minimum sum differenceCoding
  • Find similar strings in large fileCoding
  • Re-solve and optimize online test programming questionsCoding
โ† Medlife questions
  1. Interview questions
  2. Medlife
  3. Diameter of the tree
Coding

Diameter of the tree

Filed under Medlife

The question

Find the diameter of a given binary tree.

No write-up yet. Related questions below have one.

Related Medlife questions

  • Simple Implementation
  • Dictionary or Map Problem
  • Escape Grid
  • Check sum of two nodes equals k
  • Hub and Product Requirement Matching
โ† Knight Tour ProblemCheck sum of two nodes equals k โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.