Skip to content

Instantly share code, notes, and snippets.

@venelrene
Last active February 21, 2019 18:18
Show Gist options
  • Select an option

  • Save venelrene/2ede022cb92fc0f1800fae2b89f73e76 to your computer and use it in GitHub Desktop.

Select an option

Save venelrene/2ede022cb92fc0f1800fae2b89f73e76 to your computer and use it in GitHub Desktop.
Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of old songs and make dubstep remixes from them. Let's assume that a song consists of some number of words (that don't contain WUB). To make the dubstep remix of this song, Polycarpus inserts a cer…
require 'active_support/all'
def song_decoder(song)
song.gsub(/WUB/, " ").squish!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment