Talk:2483: Linked List Interview Problem

Explain xkcd: It's 'cause you're dumb.
Revision as of 09:09, 1 July 2021 by (talk)
Jump to: navigation, search

Assuming not everyone understands O notation: O(1) means that it always takes the same time, no matter how much data is stored. O(n) means the time is proportional to the amount of data stored - if you have 10 times the data, it takes 10 times as long to find the one you want. (talk) (please sign your comments with ~~~~)

This code won't mail the linked list to a museum - it will mail the memory location of the head of the list to a museum. (talk) (please sign your comments with ~~~~)

just to make sure I get this right. If I want to save the numbers "1", "2", "3", "4" in an array it could (depending on the programming language) just be "[1,2,3,4]", while a linked list could be "1 (jump to 3rd entry), 4, 2 (jump to 4th entry), 3 (jump to 2nd entry)"? Then entering 2.5 between 2 and 3 would be complicated in the array as you have to move the 3 and 4 to new places, while in the linked list you just change the direction after to to jump to 5th entry, and add 2.5 and the instruction to jump to 4th entry? While it is of course harder to find a specific entry in the linked list. --Lupo (talk) 06:01, 1 July 2021 (UTC)

Does anyone know when the last comic was that used colors? Is this something worth mentioning? -- 06:11, 1 July 2021 (UTC)

I found the category:. -- 06:17, 1 July 2021 (UTC)

I added some words regarding the title text. Feel free to expand/clarify/correct as necessary. 06:57, 1 July 2021 (UTC)

The comic could also be a reference to the British Museum Algorithm. -- 09:09, 1 July 2021 (UTC)