2 answers
6
Write a constant time algorithm to insert a node with data $D$ just before the node with address $p$ of a singly linked list.
5 answers
10
What is the probability that in a randomly chosen group of $r$ people at least three people have the same birthday?$1-\dfrac{365-364 \dots (365-r+1)}{365^{r}}$$\dfrac{365...