← Back

June 30, 2021

#2483: Linked List Interview Problem

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:]

define traverseLinkedList(headPointer): myId="" authToken="" museumAddress="@." client=mailRestClient(myID, authToken) client.messages.send(to=museumAddress, subj=“Item donation?”, body=“Thought you might be interested: “+str(headPointer)) return

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.