Browse Source

Correct the Subject

pull/1621/head
zainab Dnaya 2 years ago committed by José Rosendo
parent
commit
0429578368
  1. 6
      subjects/reversesecondhalf/README.md

6
subjects/reversesecondhalf/README.md

@ -1,10 +1,10 @@
# ReverseSecondHalf # reversesecondhalf
### Instructions ### Instructions
Write a function `ReverseSecondHalf()` that takes a string as an argument and prints the second half reversed. If the length of the string is odd, round it up. Write a function `ReverseSecondHalf()` that takes a string as an argument and prints the second half reversed. If the length of the string is odd, round it up.
- Prints the second half reversed followed by newline `\n`. - Prints the second half reversed followed by newline `\n`.
- if the string is empty, return `Invalid Output`. - If the string is empty, return `Invalid Output`.
- If the string's length equals one, return it, followed by newline `\n`. - If the string's length equals one, return it, followed by newline `\n`.
### Expected function ### Expected function
@ -16,7 +16,7 @@ func ReverseSecondHalf(str string) string {
### Usage ### Usage
Here is a possible program to test your function: Here is a possible program to test your function :
```go ```go
package main package main

Loading…
Cancel
Save