Name

set_is_equal

Synopsis

int set_is_equal(const Set *set1, const Set *set2);

Return Value

1 if the two sets are equal, or otherwise.

Description

Determines whether the set specified by set1 is equal to the set specified by set2.

Complexity

O (mn), where m and n are the number of members in set1 and set2, respectively.

Get Mastering Algorithms with C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.