codementor on Nostr: Question: A linked list may have a loop. Return the node where the loop starts (or ...
Question: A linked list may have a loop. Return the node where the loop starts (or report that there is none), using O(1) extra memory.
(CtCI 2.8)
Try to answer before you open the reply.
#ll012 · LL-012-Q1
Published at
2026-10-10 13:08:05 UTCEvent JSON
{
"id": "e9d42d66e215d5dd322610f8e457df4fc0e9a756903dc91d8c95f89f0557249f",
"pubkey": "e68a0856e90d9997b1f721e905249896412dd570399a987b2e8fd5e7fcfe2279",
"created_at": 1791637685,
"kind": 1,
"tags": [
[
"t",
"ll012"
]
],
"content": "Question: A linked list may have a loop. Return the node where the loop starts (or report that there is none), using O(1) extra memory.\n\n(CtCI 2.8)\n\nTry to answer before you open the reply.\n\n#ll012 · LL-012-Q1",
"sig": "97a17bb47851c28a53f2257cc30b35a42c7c5580a8d7a5e13c248252b7d1e4bacc1e6966d7ca5a899fe75429937ba0a038d32e354fd999cc990b275275cdad31"
}