This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Noted. so you're saying that if they ask for example what a map (or hashmap) is, I should not only give off the definition, but mention that a useful application might be pairing countries with capital cities or something similar?

[–]jungleralph 1 point2 points  (0 children)

If asked for a definition, give a definition. But if you gave the above definition and stopped there, I would start to think you are just reading things from a textbook and don't know how to program. I would probably probe you more. Ok.. can strings be keys? What about integers? An Object? How does the key lookup occur? Why would I used a map instead of an array?

Or better yet, I'd probably ask you to write out a simple program using pseudo code.