Welcome back to another fantastic Monday! Let's get right in to it.
Given a string and a delimiter, reverse every other delimited string. For example:
revrev('hello world taco', ' '); hello dlrow taco
Welcome back to another fantastic Monday! Let's get right in to it.
Given a string and a delimiter, reverse every other delimited string. For example:
revrev('hello world taco', ' '); hello dlrow taco
Permalink: http://problemotd.com/problem/reverse-reverse/
Content curated by @MaxBurstein
Comments:
Anonymous - 10 years, 5 months ago
Quick and dirty haskell solution:
Btw i like that you use "mom" in an example for reversing strings :D
reply permalink
Max Burstein - 10 years, 5 months ago
lol I didn't even realize it was a palindrome. I was talking to my mom at the time and wanted to add a third word. I updated the problem.
reply permalink
Nick Krichevsky - 10 years, 5 months ago
C++ solution
reply permalink
bumbleguppy - 10 years, 5 months ago
Should the last line in the outer loop be
newString+=(subString+c); ?
reply permalink
Nick Krichevsky - 10 years, 5 months ago
Whoops. Yeah you're right.
reply permalink
Eric - 10 years, 5 months ago
JS
reply permalink