The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+12 votes

Level order traversal of a rooted tree can be done by starting from the root and performing

  1. preorder traversal

  2. in-order traversal

  3. depth first search

  4. breadth first search

asked in DS by Veteran (52k points)
recategorized by | 1.3k views

2 Answers

+17 votes
Best answer

Answer is option D.

Breadth first seach.

answered by Active (3.3k points)
edited by
+6 votes
answered by Boss (10.5k points)

Rishi yadav Does it mean that we don`t care about order in which nodes are there in level like left to right,
Because while implementing BFS we tend to go for adjacent node [order doesn`t matter].Is it same?

Basically in a tree we traverse from  left to right @saxena0612

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,535 questions
54,122 answers
71,040 users