|
|
@ -6,14 +6,14 @@ Write a program that checks if an argument is sorted or not. |
|
|
|
- Your Program should return `T` followed by a newline (`'\n'`) if the argument is sorted. |
|
|
|
- Your Program should return `T` followed by a newline (`'\n'`) if the argument is sorted. |
|
|
|
- Your Program should return `F` followed by a newline (`'\n'`) if the argument is not sorted. |
|
|
|
- Your Program should return `F` followed by a newline (`'\n'`) if the argument is not sorted. |
|
|
|
- If there is more than one argument return a newline (`'\n'`). |
|
|
|
- If there is more than one argument return a newline (`'\n'`). |
|
|
|
- If the argument is empty return a newline (`'\n'`). |
|
|
|
- If the number of arguments is not 2 do nothing. |
|
|
|
|
|
|
|
|
|
|
|
### Usage |
|
|
|
### Usage |
|
|
|
|
|
|
|
|
|
|
|
And it's output should be: |
|
|
|
And it's output should be: |
|
|
|
|
|
|
|
|
|
|
|
```console |
|
|
|
```console |
|
|
|
$ go run . |
|
|
|
$ go run . | cat -e |
|
|
|
$ go run . a | cat -e |
|
|
|
$ go run . a | cat -e |
|
|
|
T$ |
|
|
|
T$ |
|
|
|
$ go run . " 5ABc" | cat -e |
|
|
|
$ go run . " 5ABc" | cat -e |
|
|
|