• edited by
190 views
1 1 vote

Anand is preparing a pizza with $8$ slices, and he has $10$ toppings to put on the pizza. He can put only one topping on each slice but can use the same topping on zero or more slices. In how many unique ways can he prepare the slices so that the same topping is not used in adjacent slices?

1 Answer

0 0 votes
Let the slices of pizza be S1, S2 , S3 , ... S8

So for S1 we have 10 topping options

and for S2 we have 9 topping options , as can't use 10th topping . otherwise  two adjecent slice will have same topping .

 similarly S3 have 9 options ,

and S4 , S5 .. S7 have 9 options .

But S8 have only 8 options for topping as it is adjecnt to S1 and S7 .

So total unique ways can he prepare the slices = 10*(9^6)*8
Position:
Show:

Related questions

1 1 vote
0 0 answers
115
115 views
Shubham Sharma 2 asked Nov 30, 2025
115 views
$\text{head}$ is the pointer to the head of a doubly linked list sorted in ascending order. Complete the function $\text{DeleteSorted()}$ which takes a node's value $\tex...
0 0 votes
1 1 answer
136
136 views
Shubham Sharma 2 asked Nov 30, 2025
136 views
Consider a directed graph with $\text{V}$ nodes and $\text{E}$ edges. The graph is represented by two arrays, source $\text{src[ ]}$ and destination $\text{dest[ ]}$ each...
0 0 votes
1 1 answer
141
141 views
Shubham Sharma 2 asked Nov 30, 2025
141 views
If the following numbers are inserted one-by-one into a binary search tree that is initially empty, show the structure of the tree after all the items are inserted: $36,4...
0 0 votes
0 0 answers
118
118 views
Shubham Sharma 2 asked Nov 30, 2025
118 views
One in two hundred people in a population have a particular disease. A test is developed for the disease. The test gives a false positive $3 \%$ of the time (i.e. reports...