Problem Statement
Which statement about encounter order is correct?
Explanation
Encounter order is defined by the source; unordered sources can produce arbitrary visitation order. Use `sorted` or ordered sources (e.g., List, LinkedHashSet) when order matters, or `forEachOrdered` in parallel.
Practice Sets
This question appears in the following practice sets: