Incorrect return type. Used to be ArrayList<TreeNode> previously. Why was it changed?


I am running a second session where I am solving all the problems again. In my previous session, I had solved this problem successfully. The return type seems to have been changed intentionally. Anybody have an idea why?