What is the difference between traversal and search?

1 answer

Answer

1249815

2026-07-13 23:50

+ Follow

Traversal simply means moving from one node to the next. Generally one searches by traversing the list, comparing each node's data with a given datum, either to return a pointer to a single matching node, or to return a list of matching nodes (copied from the list being searched), or simply to collect data about the matching nodes (such as a count of all the matching nodes).

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.