Browse Source

Merge pull request #866 from Pav01Founders/patch-25

Update subjects/issorted/README.md
pull/878/head
OGordoo 3 years ago committed by GitHub
parent
commit
9165727139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      subjects/issorted/README.md

4
subjects/issorted/README.md

@ -2,9 +2,9 @@
### Instructions
Write a function `IsSorted` that returns `true`, if the slice of `int` is sorted, and that returns `false` otherwise.
Write a function `IsSorted` that returns `true`, if the slice of `int` is sorted, otherwise returns `false`.
The function passed in parameter returns a positive `int` if `a` (the first argument) is superior to `b` (the second argument), it returns `0` if they are equal and it returns a negative `int` otherwise.
The function passed in the parameter returns a positive `int` if `a` (the first argument) is greater than to `b` (the second argument), it returns `0` if they are equal and it returns a negative `int` otherwise.
To do your testing you have to write your own `f` function.

Loading…
Cancel
Save