In Franz Joseph's tech manual and blueprints, junior officers share quarters, 2 each. Not sure if junior officers' quarters were ever shown in TOS itself (although STVI and VOY: "Flashback" showed them sleeping in bunks on the Excelsior), but for the sake of argument let's say it's accurate. Would the sexes be segregated, or would assignments be handed out gender-blind?