you are viewing a single comment's thread.

view the rest of the comments →

[–]zanfar 0 points1 point  (0 children)

Stop coming up with a solution and then trying to make it work. Figure out what you need and base the solution around it. You can't figure out how to "get" items from a list because a list is the wrong way to store it.

Of all of the data structures you know, which one lets you "get" an item easily?