From 2cb93a894822fb5f672b5c2947b4f16ed7012088 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Sat, 16 Jul 2022 21:21:04 +0100 Subject: [PATCH] corrected --- subjects/argsort/README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/subjects/argsort/README.md b/subjects/argsort/README.md index 4663c730..b311c4d3 100644 --- a/subjects/argsort/README.md +++ b/subjects/argsort/README.md @@ -3,22 +3,26 @@ ### 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. -- Space and Tabulation are included in the sort. +- 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: ```console -$ go run . +$ 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