From 2e9bf7749698748f16dd6d17bb9f501c1e3dea3a Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Sat, 18 Jun 2022 17:18:44 +0100 Subject: [PATCH] subject argsort --- subjects/argsort/README.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/subjects/argsort/README.md b/subjects/argsort/README.md index 65588932..2921e733 100644 --- a/subjects/argsort/README.md +++ b/subjects/argsort/README.md @@ -1,30 +1,27 @@ ## argsort -### Instruction +### Instructions Write a program where you define if an argument is sorted or not sorted: -- Your Program should return T if an argument is sorted. -- Your Program should return F if an argument is not sorted. +- Your Program should return `T` if an argument is sorted. +- Your Program should return `F` if an argument is not sorted. - If The argument is empty nothing will be printed. -- If the number of arguments is not `1` Print nothing. -- If the length argument is equal to `1` Print nothing. -- Your program should always print `('\n') `at the end of the output. +- If the number of arguments is not 1 Print (`'\n'`). +- If the length argument is equal to 1 Print(`'\n'`). +- Your program should always print (`'\n'`) at the end of the output. ### Usage And it's output should be: ```console -$ go run . | cat -e -$ +$ go run . $ go run . a | cat -e -$ $ 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