Chapter 5: Problem 19
Why should you take care to choose a distinctive value as a sentinel?
Short Answer
Expert verified
Answer: Using distinctive sentinel values provides advantages such as simplifying code, reducing errors, and saving time. It makes the code more compact and easier to understand, reduces the chances of errors when dealing with multiple list types or data processing, and can make certain algorithms run faster as they don't need to continually check for the end of the list.