Skip to content

Commit

Permalink
Update permutation_iterator.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanpranav authored Dec 1, 2024
1 parent 551b390 commit 6b206a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/permutation_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ typedef struct PermutationIterator* PermutationIterator;
*
* @param iterator when this method returns, contains the iterator. This
* argument is passed uninitialized.
* @param values the collection.
* @param items the collection.
* @param length the length of the `items` collection.
* @param itemSize the size of each element in `items`.
* @param itemComparer the comparer used to determine the lexicographical order.
*/
void permutation_begin(
Expand All @@ -47,7 +49,10 @@ void permutation_next(PermutationIterator iterator);
* Determines whether two collections are permutations of one another.
*
* @param left a collection to compare to `right`.
* @param leftLength the number of items in the `left` collection.
* @param right a collection to compare to `left`.
* @param rightLength the number of items in the `right` collection.
* @param itemSize the size of each element in `left` and `right`.
* @param itemComparer the comparer used to determine if two elements are equal.
* @return `true` if `left` and `right` are permutations; otherwise, `false`.
*/
Expand Down

0 comments on commit 6b206a0

Please sign in to comment.