Hello๐,
My name is Alex and I'm maker of Devmates.co. ๐
We are resolving daily coding problems which asked by top tech companies together. We share our solutions, give some help if anyone stuck, support each other and just hangout together in the internet. ๐ปโ๏ธ๐ฌ
I get this problem from our members or just searching them in the internet(leetcode forums, Glassdoor, teamblind, etc.). Sometimes this problem can be very easy, sometimes too ๐ทโโ๏ธhard, everything depends on skills but we are trying to resolve all of them and Have Fun. ๐
Today I want to share problem which was asked by Bolt (๐ Taxify).
Feel free to share you solutions in comments. I would love to find "better" solution and put it to the article.๐
Problem:
Reverse each word in a given string.
You can't use language provided methods (such as split, reverse, etc.)
Example
__Input:__ 'hello this is devmates'
__Output:__ 'olleh siht si setamved'
Good Luck and Have Fun๐
Top comments (1)
I'll be the first.
Test Cases: