wes d2a2ba9e15 first commit | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
README.md | %!s(int64=4) %!d(string=hai) anos | |
code.cpp | %!s(int64=4) %!d(string=hai) anos | |
unitTest.cpp | %!s(int64=4) %!d(string=hai) anos |
by Helen Yu tags: strings, formatting, language_fundamentals
Create a function that removes the first and last characters from a string. Examples removeFirstLast("hello") ➞ "ell" removeFirstLast("maybe") ➞ "ayb" removeFirstLast("benefit") ➞ "enefi" Notes N/A
Create a function that removes the first and last characters from a string.
removeFirstLast("hello") ➞ "ell"
removeFirstLast("maybe") ➞ "ayb"
removeFirstLast("benefit") ➞ "enefi"
N/A