← Back

June 30, 2021

#2483: Linked List Interview Problem explain

Linked List Interview Problem

[Cueball is writing on a whiteboard with a blue pen with Ponytail looking over his shoulder. The text on the board is unreadable, but it is is written in blue above them. It is a piece of code and it reads:]

<font color="blue">define traverseLinkedList(headPointer):

   myId="*<illegible scribbling>*"

   authToken="*<illegible>*"

   museumAddress="*<illegible>*@*<illegible>*.*<illegible>*"

   client=mailRestClient(myID, authToken)

   client.messages.send(to=museumAddress,

   subj="Item donation?", body="Thought you

   might be interested: "+str(headPointer))

   return</font>

Ponytail: Hey.

[Caption beneath the panel:]

Coding interview tip: Interviewers get really mad when you try to donate their linked lists to a technology museum.