I need to wire up a battery pack using 1.5V AA cells in the form of a parallel-series configuration to achieve 4.5V and 9Ah (assuming a single cell gives 3Ah). The first configuration in the image is one way I've seen it recommended online: 3 cells in series to give 4.5V and 3Ah, then 3 of those in parallel to give 4.5V and 9Ah.
I'm wondering if the second diagram in the image also works? Start with 3 cells in parallel to give 1.5V and 9Ah, then wire 3 of those in series to give 4.5V and 9Ah? Is this correct? What's the advantages/disadvantages between the two options (assuming the 2nd works)?