mrb
BAN USER
Comments (9)
Reputation 5
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
-1
after a node is processed, its children are added
think of 1,2,3,4,5,6,7
after 1, .. 2,3 are added.. when 2 is read.. 4,5 are added.. now queue has 3,4,5
now.. when three is processed, 6,7 are added... queue will now have 4,5,6,7 .. all children at same level..
hence breadth first
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
6->8
- mrb September 28, 20127->10