Editing Talk:2483: Linked List Interview Problem

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 5: Line 5:
 
:I think part of the joke might be that the high-level language being used will actually spit out a representation of the entire list when using the str function. So it actually does all the traversing and abstracts it away, again making the interview question seem redundant! [[Special:Contributions/162.158.159.48|162.158.159.48]] 10:40, 1 July 2021 (UTC)
 
:I think part of the joke might be that the high-level language being used will actually spit out a representation of the entire list when using the str function. So it actually does all the traversing and abstracts it away, again making the interview question seem redundant! [[Special:Contributions/162.158.159.48|162.158.159.48]] 10:40, 1 July 2021 (UTC)
 
::The language looks almost like Python -- the only difference being the keyword ''define'' instead of ''def''. Lisp is the only family of languages I can think of that automatically converts linked lists to a representation of all the elements, since the linked list is its fundamental data structure. [[User:Barmar|Barmar]] ([[User talk:Barmar|talk]]) 14:06, 1 July 2021 (UTC)  
 
::The language looks almost like Python -- the only difference being the keyword ''define'' instead of ''def''. Lisp is the only family of languages I can think of that automatically converts linked lists to a representation of all the elements, since the linked list is its fundamental data structure. [[User:Barmar|Barmar]] ([[User talk:Barmar|talk]]) 14:06, 1 July 2021 (UTC)  
:::Haskell too: `headElem:tailList` is cons, https://wiki.haskell.org/How_to_work_on_lists#Notes_about_speed says "Haskell lists are ordinary single-linked lists." [[User:Solomon|Solomon]] ([[User talk:Solomon|talk]]) 01:34, 1 December 2022 (UTC)
+
:::Haskell too: `headElem:tailList` is cons, hhttps://wiki.haskell.org/How_to_work_on_lists#Notes_about_speed says "Haskell lists are ordinary single-linked lists." [[User:Solomon|Solomon]] ([[User talk:Solomon|talk]]) 01:34, 1 December 2022 (UTC)
  
 
just to make sure I get this right.
 
just to make sure I get this right.

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Template used on this page: