Browse Source

corrected

pull/1622/head
zainabdnaya 2 years ago committed by José Rosendo
parent
commit
2cb93a8948
  1. 12
      subjects/argsort/README.md

12
subjects/argsort/README.md

@ -3,22 +3,26 @@
### Instructions ### Instructions
Write a program that checks if an argument is sorted or not. Write a program that checks if an argument is sorted or not.
- Your Program should return `T` followed by a newline (`'`\n'`) if an argument is sorted. - Your Program should return `T` followed by a newline (`'\n'`) if an argument is sorted.
- Your Program should return `F` followed by a newline (`'`\n'`) if an argument is not sorted. - Your Program should return `F` followed by a newline (`'\n'`) if an argument is not sorted.
- Space and Tabulation are included in the sort. - If there is more than one argument return a newline (`'\n'`).
- If the argument is empty return a newline (`'\n'`).
### Usage ### Usage
And it's output should be: And it's output should be:
```console ```console
$ go run . $ go run .
$
$ go run . a | cat -e $ go run . a | cat -e
T$
$ go run . " 5ABc" | cat -e $ go run . " 5ABc" | cat -e
T$ T$
$ go run . "zA1" | cat -e $ go run . "zA1" | cat -e
F$ F$
$ go run . "01Talent" "student" | cat -e $ go run . "01Talent" "student" | cat -e
$
$ go run . "Hello World" | cat -e $ go run . "Hello World" | cat -e
F$ F$
$ go run . "a b c" | cat -e $ go run . "a b c" | cat -e

Loading…
Cancel
Save