LogFAQs > #970088694

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
Questionmarktarius
12/11/22 3:16:33 PM
#25:


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
... Copied to Clipboard!
Topic List
Page List: 1