|
|
@ -3,8 +3,8 @@ |
|
|
|
### 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 the 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 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 argument is empty return a newline (`'\n'`). |
|
|
|
|
|
|
|
|
|
|
@ -14,7 +14,6 @@ And it's output should be: |
|
|
|
|
|
|
|
|
|
|
|
```console |
|
|
|
```console |
|
|
|
$ go run . |
|
|
|
$ go run . |
|
|
|
$ |
|
|
|
|
|
|
|
$ go run . a | cat -e |
|
|
|
$ go run . a | cat -e |
|
|
|
T$ |
|
|
|
T$ |
|
|
|
$ go run . " 5ABc" | cat -e |
|
|
|
$ go run . " 5ABc" | cat -e |
|
|
@ -22,7 +21,6 @@ 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 |
|
|
|