Initialization of an empty array, which will be filled in a loop with arrays of different sizes

Probably yes.

But you have to be more specific, at provide at least

  1. an example of desired inputs and corresponding outputs,

  2. some code that you have tried and need help with.

1 Like