A note on certain maximal hyperelliptic curves