The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
454 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 Loyal (7.8k points)
retagged by | 454 views

1 Answer

+4 votes
Best answer

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

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

answered by Veteran (367k points)
selected by

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

44,154 questions
49,640 answers
163,333 comments
65,808 users