Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

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

_
_ginevra_ (620 points)
0 11 15
in HW2 required by (620 points)
reshown by
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?
173 views

1 Answer

d
davide.marincione (1380 points)
0 5 14
by (1.4k 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.