The number of distinct pairs in a structure
Devise a correct version of the
procedure of exercise
that returns the number of distinct pairs in any structure. (Hint: Traverse the structure, maintaining an auxiliary data structure that is used to keep track of which pairs have already been counted.)
Nobody's finished this exercise yet. You'll be the first!
There are no comments yet.
You must log in to post a comment.Login