Data Structure Clarity

I’ve been struggling to wrap my head around our data structures with the enums, arrays, and dictionaries for the past few lectures so this nested dictionary really made my head hurt. I’ve been wrestling with it for about an hour trying to make sure I understand it all and was hoping to have some clarity.

I wasn’t really sure how to word my question so I included a picture.

So when we are looking for a value in our nested dictionary is it searching by following the color coded arrows? and the reason we have 3 variables we pass into the lookupTable is because we need the Key for lookupTable, statLookupTable, and then the index for the Level array?

2 Likes

Believe it or not, that’s a pretty good illustration. Just to help clarify things (or to muddy them up, as sometimes I get long winded), here’s a link to my funny(?) version of explaining just how this monstrous data structure works by breaking it down with a real world example:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms