package
0.0.0-20211212162911-6c9bd3a40a2b
Repository: https://github.com/striversity/glft.git
Documentation: pkg.go.dev
# README
Section 03 - Lab 01 : String Reverse
In this lab, you will implement a function to correclty reverse the characters in a string.
TODO 1
Implement the function func reverse(s string) string
, which when called with a string, returns as a result the reverse of that string.
- TIP: Work with runes not bytes.
Here are some exmaples:
Input | Output | |
---|---|---|
"Hello, world!" | => | "!dlrow ,olleH" |
"Hello, 世界" | => | "界世 ,olleH" |
"Todo está bien" | => | "neib está odoT" |