JobsJob TrackerJob alerts

CustomerXPs ยท 7 questions

All 7Coding 7
  • Implement two stacks in a single arrayCoding
  • Print numbers greater than 10 equal to sum of digit factorialsCoding
  • Find the middle element of a linked listCoding
  • Sort a stack using another empty stackCoding
  • Find height of a tree using getchild functionCoding
  • Perform level order traversal on a treeCoding
  • Find nth most repeated element in O(nlogn) timeCoding
โ† CustomerXPs questions
  1. Interview questions
  2. CustomerXPs
  3. Find height of a tree using getchild function
Coding

Find height of a tree using getchild function

Filed under CustomerXPs

The question

Find the height of a tree given a function getchild(node) that returns immediate children as a list.

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

Related CustomerXPs questions

  • Implement two stacks in a single array
  • Print numbers greater than 10 equal to sum of digit factorials
  • Sort a stack using another empty stack
  • Perform level order traversal on a tree
  • Find nth most repeated element in O(nlogn) time
โ† Sort a stack using another empty stackPerform level order traversal on a tree โ†’

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