The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+1 vote
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 | 411 views

1 Answer

+4 votes
Best answer

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


answered by Veteran (347k 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

36,075 questions
43,521 answers
42,747 users