Vertical Order Print Binary Tree algo ++ question

https://ide.codingblocks.com/s/77103 soln
https://online.codingblocks.com/player/12476/content/5993/5172?tab=submissions question

what is the issue you are facing in this code

i m getting run time error in test case 2

there was a issue in your build() function.
refer this. now it’s working fine for all test cases

my code is not running for all test cases,same happens to your code . Also i can’t make out what is the use of input n .