2 ms·
I’m not sure why you use a dictionary with keys 0…999, instead of an array indexed 0…999.
by ant6n 2y ago
I’m not sure why you use a dictionary with keys 0…999, instead of an array indexed 0…999.
- tomrod 2y agoThat's just a dict/map with less flexibility on the keys :D
- rented_mule 2y agoI was using the term dictionary for illustration purposes. Remember, this was all in the context of MapReduce. Computation within MapReduce is built around grouping values by keys, which makes dictionaries a natural way to think about many MapReduce oriented algorithms, at least for me. The key/value pairs appear as streams of two-tuples, not as dictionaries or arrays.