mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zainabdnaya
2cb93a8948
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
README.md
argsort
Instructions
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
F
followed by a newline ('\n'
) if an argument is not sorted. - If there is more than one argument return a newline (
'\n'
). - If the argument is empty return a newline (
'\n'
).
Usage
And it's output should be:
$ go run .
$
$ go run . a | cat -e
T$
$ go run . " 5ABc" | cat -e
T$
$ go run . "zA1" | cat -e
F$
$ go run . "01Talent" "student" | cat -e
$
$ go run . "Hello World" | cat -e
F$
$ go run . "a b c" | cat -e
F$
$ go run . " abc" | cat -e
T$