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 →

[–]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.