You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
miguel 7b50c69f22 fix(checkpoints) add imports to the files 3 months ago
..
README.md fix(checkpoints) add imports to the files 3 months ago

README.md

reverse-strings

Instructions

Write a function that takes a slice of strings and returns a single string containing them in reverse order with a space between each element of the slice. If the slice is empty, return an empty string.

Expected function

func ReverseStrings(strs []string) string {

}

Usage

Here is a possible program to test your function:

package main

import "fmt"

func main(){
    fmt.Println(ReverseStrings([]string{"a", "b", "c"}))
    fmt.Println(ReverseStrings([]string{"Good","Morning!"}))
    fmt.Println(ReverseStrings([]string{"Hello World"}))
}

And its output :

$ go run .
c b a
!gninroM dooG
dlroW olleH