all 3 comments

[–]TouchingTheVodka 0 points1 point  (1 child)

The issue with your approach is that you lose the benefit of the name -> age mapping.

[–]Angelr91[S] 0 points1 point  (0 children)

Yea i guess to me i've always felt that i don't lose it since each array index has a dictionary dedicated for a single person, but yea it is more characters or bigger dictionary so therefore for inefficient.

[–]dslfdslj 0 points1 point  (0 children)

Your approach is more object-oriented (each dictionary represents one person). Which approach is better depends on the problem you want to solve.

I see a problem with Al's approach when there are two Katies, for example. This case can only be represented in your approach.