Solution (source code)

= Solution

At the <mode>, the <cumulative distribution function> has value
$$
F(2/3)=4\left(\frac23\right)^3-3\left(\frac23\right)^4=\frac{16}{27}>\frac12.
$$
Since $F$ is strictly increasing on $(0,1)$, its unique crossing of $1/2$ occurs earlier. Therefore \b[the <median> is less than the <mode>].