Star Trek: The Original Series was known for repeating story formulas throughout its run, but once did two very similar episodes very close together.