Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SansPapyrus683 committed Jan 4, 2025
1 parent cf73637 commit e9bb66a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/3_Silver/Sorting_Custom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ In C++, its comparators must obey a set of behaviors.
Let's call this comparator `compare`, and the objects it compares `x` and `y`.
- If `x` is less than `y`, return `true`.
- If `y` is greater than *or equal to* `y`, return `false`.
- If `x` is greater than *or equal to* `y`, return `false`.
- If `compare(x, y)` is `true`, then `compare(y, x)` must be false. (antisymmetry)
- If `compare(x, y)` is `true` and `compare(y, z)` is `true`, then `compare(x, z)` must be true. (transitivity)
Expand Down Expand Up @@ -249,7 +249,7 @@ Let's call this comparator `compare`, and the objects it compares `x` and `y`.
For `compare` to be valid, the following must be true:

- If `x` is less than `y`, return `-1`.
- If `y` is greater than `y`, return `1`.
- If `x` is greater than `y`, return `1`.
- If the two are equal, return `0`.
- If `compare(x, y) > 0`, then `compare(y, x) < 0`. (antisymmetry)
- If `compare(x, y) > 0` and `compare(y, z) > 0`, then `compare(x, z) > 0`. (transitivity)
Expand Down Expand Up @@ -386,7 +386,7 @@ Let's call this comparator `compare`, and the objects it compares `x` and `y`.
For `compare` to be valid, the following must be true:

- If `x` is less than `y`, return `-1`.
- If `y` is greater than `y`, return `1`.
- If `x` is greater than `y`, return `1`.
- If the two are equal, return `0`.
- If `compare(x, y) > 0`, then `compare(y, x) < 0`. (antisymmetry)
- If `compare(x, y) > 0` and `compare(y, z) > 0`, then `compare(x, z) > 0`. (transitivity)
Expand Down

0 comments on commit e9bb66a

Please sign in to comment.