LogFAQs > #970091245

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, Database 11 ( 12.2022-11.2023 ), DB12, Clear
Topic List
Page List: 1
TopicI know what a Linked List is
Tyranthraxus
12/11/22 4:53:09 PM
#26:


Questionmarktarius posted...
Add a sentinel bit to the list item definition.
Then, iterate through the whole list:
1. check the current item's sentinel bit, panic if it's already "true"
2. set the sentinel bit to true
3. move on to next item

You're often not going to be able to change the definition of the object.

---
It says right here in Matthew 16:4 "Jesus doth not need a giant Mecha."
https://i.imgur.com/dQgC4kv.jpg
... Copied to Clipboard!
Topic List
Page List: 1