codementor on Nostr: Question: What happens in the k-th-to-last code if k is bigger than the list? How do ...
Question: What happens in the k-th-to-last code if k is bigger than the list? How do you guard against it?
Try to answer before you open the reply.
#ll006 · LL-006-Q2
Published at
2026-10-09 10:07:48 UTCEvent JSON
{
"id": "984946764e5209e59763a090322659d66a0b82c8f9a08c04bbe2f2bc2258d2f5",
"pubkey": "e68a0856e90d9997b1f721e905249896412dd570399a987b2e8fd5e7fcfe2279",
"created_at": 1791540468,
"kind": 1,
"tags": [
[
"t",
"ll006"
]
],
"content": "Question: What happens in the k-th-to-last code if k is bigger than the list? How do you guard against it?\n\nTry to answer before you open the reply.\n\n#ll006 · LL-006-Q2",
"sig": "4cafe157d0acd2c7d41baf2d21ac9f79d62f7a603c67b80574ab2dd4efeca890fb7d7bc4e3e6a1ac82a9ceab4fa646b70a9c0942d097f6c9eb17c7317a395977"
}