Connect with Peer Bloggers

Get your Bloggers ID and network with best bloggers around the world.

34

wordEnds : Solutions for Javabat : 21

Hasi Wk
Hasi's Cyber Journal ― Given a string and a non-empty word string, return a string made of each char just before and just after every appearance of the word in the string. Ignore cases where there is no char before or after the word, and a char may be included twice if it is between two words. wordEnds("abcXY123XYijk", "XY") → "c13i" wordEnds("XY123XY", "XY") → "13" wordEnds("XY1XY", "XY") → "11" [...]

What would you say?

Be the first to comment on this blog post! Sign in or Create an account.