hi fellow coders, what is the best data structure to store a grid / matrix, with 2 Keys (row, col), and the Values (cell entries) can be any object? Similar to a 2-dimensional array, but i am trying to avoid using arrays.
Specifically i am trying to implement an "Availability Calendar", where i want to show RoomTypes as row headers (variable number), and Weekdays as column headers (fixed, limited to 2 weeks at a time); and the intersection being all information about the particular cell (e.g. booked, available, guest names, etc).
..............1/Mon....2/Tue....3/Wed....14/Sun
+--------+--------+---------+---------+---------+
Type1
+--------+--------+---------+---------+---------+
Type2
+--------+--------+---------+---------+---------+
etc...
+--------+--------+---------+---------+---------+
Thanks in advance.