For root [1,null,2,3], what is the inorder output?

Practice this question from Binary Tree Traversals - DFS recursion Pattern Practice Quiz, with options and an explanation.

Question

For root [1,null,2,3], what is the inorder output?

Option A — Correct answer

[1,3,2]

Option B

[1,2,3]

Option C

[2,3,1]

Option D

[]

Explanation

The inorder output is [1,3,2].

Binary Tree Traversals - DFS recursion Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker