The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
327 views
When searching for the key value 50 in a binary search tree, node containing the key values 10, 30, 40, 70, 90, 120, 150, 175 are traversed, in any order. The number of different orders passing in which these keys values can occur on the search path from the root to node containing the value 50 are ________.
asked in DS by Boss (9.2k points)
retagged by | 327 views

1 Answer

+4 votes
Best answer

$\frac{8!}{3!.5!} = 56.$

Ref: https://gateoverflow.in/3462/gate2007-it_29

answered by Veteran (328k points)
selected by


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

29,961 questions
37,632 answers
96,401 comments
35,286 users