How can i chang the number of row and cols of a 1D array to make it 2D? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i chang the number of row and cols of a 1D array to make it 2D?

29th Oct 2022, 9:34 AM
Bahakem Tahar
1 Answer
+ 6
You will need to specify the programming language (please use tags). It would be useful to see your sample code, what your current "array" looks like. In Python there is no such thing as arraylist, but other languages do have this data type. Python has list, or numpy array, but they are very different in terms of what you want to do in your question.
29th Oct 2022, 9:46 AM
Tibor Santa
Tibor Santa - avatar