Editing Talk:2483: Linked List Interview Problem
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) | ||
− | |||
just to make sure I get this right. | just to make sure I get this right. | ||
Line 17: | Line 16: | ||
:That it potentially becomes spaghetti-data should not concern you so long as you don't have spaghetti-code as well which causes some oversight of data-mangling to mess things up. And you'll probably want to maintain a custom data-dumper/collator/formatter capability to keep an eye on things as you're debugging the inevitably miswritten shuffle-function, and/or do battle with the compiler's garbage-handling insertions when you confuse it beyond reasonable limits. (No, wait, did you do full low-level garbage-handling yourself? Did you do it ''properly''? ;) ) | :That it potentially becomes spaghetti-data should not concern you so long as you don't have spaghetti-code as well which causes some oversight of data-mangling to mess things up. And you'll probably want to maintain a custom data-dumper/collator/formatter capability to keep an eye on things as you're debugging the inevitably miswritten shuffle-function, and/or do battle with the compiler's garbage-handling insertions when you confuse it beyond reasonable limits. (No, wait, did you do full low-level garbage-handling yourself? Did you do it ''properly''? ;) ) | ||
:...but I must say I'm not overly keen to abandon modern inbuilt splice-functions (for arrays/otherwise) doing all this hard work for me. Only if I'm looking at something of more of a net-/tree-like relationship (esp. non-Euclidean), or something with complicated multi-layered disparity of pointed-at data might I design up from such basic foundations. But I can also be nostalgic about when it was far more necessary! [[Special:Contributions/162.158.159.48|162.158.159.48]] 10:18, 1 July 2021 (UTC) | :...but I must say I'm not overly keen to abandon modern inbuilt splice-functions (for arrays/otherwise) doing all this hard work for me. Only if I'm looking at something of more of a net-/tree-like relationship (esp. non-Euclidean), or something with complicated multi-layered disparity of pointed-at data might I design up from such basic foundations. But I can also be nostalgic about when it was far more necessary! [[Special:Contributions/162.158.159.48|162.158.159.48]] 10:18, 1 July 2021 (UTC) | ||
− | + | ||
− | |||
Does anyone know when the last comic was that used colors? Is this something worth mentioning? --[[Special:Contributions/162.158.88.42|162.158.88.42]] 06:11, 1 July 2021 (UTC) | Does anyone know when the last comic was that used colors? Is this something worth mentioning? --[[Special:Contributions/162.158.88.42|162.158.88.42]] 06:11, 1 July 2021 (UTC) |