Why are we creating a dp 2d vector here not a simple 2 d array

why are we creating a dp 2d vector here not a simple 2 d array

Hey @Parmeet-Kalsi-1631789033630118
You can create either of them .