The Attempt at a Solution
Self inductance L = μ0n2πr2l . This means it depends only on geometrical factors .
So , self inductance in both the cases should be equal .
But if I think in terms of L = Φ/I , then Magnetic field at the center is twice that at the ends (assuming long solenoid ) . In that case flux at the center will be twice that at the ends and so will be the self inductance .
I am not sure which of the above two reasoning is correct .