Swift Fun Algorithms #5: Reverse every other word

Profile Picture
- Published on May 21, 2016馃審 Public

Today we'll go over a very common question asked in a software interview. Given a sentence string, implement a function that returns this same sentence with every other word reversed. As a bonus, I'll show you how to use an extension on the String class to remove all vowels in a string. Completed source code: http://letsbuildthatapp.com/2016/05/2... Follow me on Twitter: https://twitter.com/buildthatapp