From 089cdf3bfab8bf400d907dcc3789db069a8a464b Mon Sep 17 00:00:00 2001 From: Hamza elkhatri <40549481+Hamzaelkhatri@users.noreply.github.com> Date: Wed, 27 Jul 2022 19:33:40 +0100 Subject: [PATCH] Delete README.md --- subjects/argsort/README.md | 35 ----------------------------------- subjects/fromto/README.md | 8 ++++---- 2 files changed, 4 insertions(+), 39 deletions(-) diff --git a/subjects/argsort/README.md b/subjects/argsort/README.md index 7fd49080..8b137891 100644 --- a/subjects/argsort/README.md +++ b/subjects/argsort/README.md @@ -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 -``` diff --git a/subjects/fromto/README.md b/subjects/fromto/README.md index daf81d2f..41127459 100644 --- a/subjects/fromto/README.md +++ b/subjects/fromto/README.md @@ -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