Delete README.md

This commit is contained in:
Hamza elkhatri 2022-07-27 19:33:40 +01:00 committed by MSilva95
parent 85cb73bf6c
commit 089cdf3bfa
2 changed files with 4 additions and 39 deletions

View File

@ -1,36 +1 @@
## argsort
### Instructions
Write a program that checks if an argument is sorted or not, the comparison should be by index of ascii and all printable characters will be used.
- 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.
- If the number of arguments is different from 2, do nothing.
### Usage
And it's output should be:
```console
$ go run . | cat -e
$ go run . a | cat -e
T$
$ go run . "zA1" | cat -e
F$
$ go run . " 5ABc" | cat -e
T$
$ go run . " s" | cat -e
T$
$ go run . "s " | cat -e
F$
$ go run . "a b c" | cat -e
F$
$ go run . " abc" | cat -e
T$
$ go run . "2?@@^_\`abc" | cat -e
T$
$ go run . "Hello World" | cat -e
F$
$ go run . "01Talent" "student" | cat -e
```

View File

@ -7,22 +7,21 @@
- The function can return the numbers in any order.
- The number must be separated by a comma and a space.
- If any of the arguments is bigger than 99 or less than 0, the function returns `"invalid"` followed by a newline (`'\n'`).
- Add `0` at the first of any number if it is less than 10.
- Add `0` at the first of any number if it is less than 10.
- Add a new line (`'\n'`) at the end of the string.
### Expected function
```go
func FromTo(from int, to int) string {
}
```
### Usage
Here is a possible program to test your function :
@ -41,6 +40,7 @@ func main() {
fmt.Println(FromTo(100, 10))
}
```
And its output :
```console