Can anyone suggest if using multi dimensional arrays would be a good idea?

_ginevra_ (620 points)
0 10 15
asked Oct 25, 2020 in HW2 required by _ginevra_ (620 points)
reshown Oct 25, 2020 by _ginevra_
To represent the number of used letters by each player at each hand and the remaining total number of letters would using a multi-dimensional array be useful?

1 Answer

davide.marincione (1380 points)
0 4 14
answered Oct 25, 2020 by davide.marincione (1,380 points)
Yes of course but, if you are not doing any type of modifications to the elements, it may even be better to use tuples instead of arrays/lists. See, tuples are faster and require less bytes to store because they are supposed to be immutable.