• + 1 comment

    I think you are printing root->data 3 times in the topView() function.