What is the maximum number of nodes in a binary tree? Is it 2^h-1 or 2^h+1 -1?
How can one generate a random number uniformly distributed on [math]\{1, 2, \dots, 7\}[/math] with only a [math]6[/math]-faced die?