Visa Inc. interview question

How would you access a linked list node at some arbitrary position 'n' in C++?

Interview Answers

Anonymous

1 Apr 2013

Because each node contains a pointer to the next node, you would follow node 1 -> node 2 -> ... -> node n.

Anonymous

14 Apr 2013

Hi I too am interviewing for a similar position at I believe the same location, so could you please tell me how your negotiation process went? Thanks!