95 The function $f(x)=k x^{2}+2 k x+1$ has a maximum value of 4 on $-3 \leqslant x \leqslant 2$, the value of the constant $k$ is
$\qquad$
$95-3$ or $\frac{3}{8}$. Clearly, when $k=0$, $f(x)=1 \neq 4$. If $k>0$,
$$
f(x)=k(x+1)^{2}+1-k .
$$

is increasing when $x>-1$ and decreasing when $x<-1$. The maximum value on $[-3,2]$ is $f(2)=4$, thus we get $k=\frac{3}{8}$; if $k<0$, the maximum value on $[-3,2]$ is $f(-1)=4$, thus we get $k=-3$. Therefore,
$$
k=-3, \frac{3}{8} .
$$