You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
289 B
7 lines
289 B
2 years ago
|
|
||
|
Exercise 3.17: Devise a correct version of the
|
||
|
count-pairs procedure of Exercise 3.16 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.)
|