...

/

Traversing Complex Collections

Traversing Complex Collections

Learn which design patterns to use when traversing a collection without knowing its structure.

Problem statement

Let’s suppose that we have a really complex data structure due to various constraints that we have to overcome. Perhaps, we need to arrange the data into a binary search tree to enable an efficient search algorithm. Or perhaps it’s a linked list where each item in the collection needs to know ...