JobsJob TrackerJob alerts

Microsoft IDC ยท 8 questions

All 8Coding 8
  • Find first non-repeating character in a stringCoding
  • Reverse a linked list in groups of size kCoding
  • Trim a Binary Search Tree within a given rangeCoding
  • Replace specific character with double charactersCoding
  • Find immediate right sibling or cousin in a binary treeCoding
  • Optimal string joining algorithmCoding
  • Check if a linked list is a palindrome without extra spaceCoding
  • Transform tree nodes to point to parentsCoding
โ† Microsoft IDC questions
  1. Interview questions
  2. Microsoft IDC
  3. Trim a Binary Search Tree within a given range
Coding

Trim a Binary Search Tree within a given range

Filed under Microsoft IDC

The question

Cut short/trim a binary search tree to remove nodes outside of a given lower and upper integer range.

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

Related Microsoft IDC questions

  • Replace specific character with double characters
  • Find immediate right sibling or cousin in a binary tree
  • Optimal string joining algorithm
  • Check if a linked list is a palindrome without extra space
  • Transform tree nodes to point to parents
โ† Reverse a linked list in groups of size kReplace specific character with double characters โ†’

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