Questions / Crusoe

Print a Binary Tree with Placeholder Nodes and Proper Spacing

Asked at Crusoe · Coding Questions · Difficulty: Hard · Last asked Jul 15, 2026

Given a binary tree, print it using a bottom-up alignment rule:

Loading the problem…

More Crusoe interview questions

  • Sudoku Solver
  • Count Islands from a Long Encoded String Grid
  • Interval Usage With Non-Overlapping Overrides
  • Two-Team Turn-Based Battle Simulator
  • Toy Language Type System
  • Grid Infection and Immunity Simulation
All Crusoe questions