2

You don't have to use the heap (dynamic allocation) nor the stack (local variables) to store the dictionary. You can declare a static data structure as global and house the dictionary in it. For example, if you were to use a trie, you can check (empirically) what's the maximum number of nodes you'll need, and initialize a global 2D array with that number of ...


2

It depends on the metrics used, I think those are heap and stack memory. Global variables don't show up in those statistics. Now if you can estimate an upper limit for the size of the dictionary...


2

This is a bug in clang, which has been fixed in version 3.5. The CS50 team is working on getting an update out with update50.


Only top voted, non community-wiki answers of a minimum length are eligible