In preorder traversal of a binary tree the second step is ____________

PYQ Capgemini Hiring Assessment 2024

In preorder traversal of a binary tree the second step is ____________

  1. A.

    traverse the right subtree

  2. B.

    traverse the left subtree

  3. C.

    traverse right subtree and visit the root

  4. D.

    visit the root

Attempted by 525 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…