Skip to main content
deleted 815 characters in body
Source Link
moltarze
  • 2.6k
  • 6
  • 11

Requesting advice: has this challenge already been posted, and if not, can I make any clarifications before posting?


Background

Read this image:

Jumbled up word image

The Challenge

Given a string filled with words, randomly mix the inner letters of each word and return the jumbled (but still readable) sentence.

  • Take input through any reasonable input format (stdin, function args, command line args, etc).

  • Randomly mix the inner letters of each word in the string.

    • A "word" is defined as (\w+).

    • Take the inner letters of the word (from the second letter to the second to last letter) and randomly change the order of those letters.

    • Assume the word has no hyphens within it, but a-z, A_Z, 0-9, and _ are valid word characters.

Scoring

This is , so lowest score in bytes wins.

It was found that this challenge is a duplicate. if you would like to see the challenge, please look in the revision history.

Requesting advice: has this challenge already been posted, and if not, can I make any clarifications before posting?


Background

Read this image:

Jumbled up word image

The Challenge

Given a string filled with words, randomly mix the inner letters of each word and return the jumbled (but still readable) sentence.

  • Take input through any reasonable input format (stdin, function args, command line args, etc).

  • Randomly mix the inner letters of each word in the string.

    • A "word" is defined as (\w+).

    • Take the inner letters of the word (from the second letter to the second to last letter) and randomly change the order of those letters.

    • Assume the word has no hyphens within it, but a-z, A_Z, 0-9, and _ are valid word characters.

Scoring

This is , so lowest score in bytes wins.

It was found that this challenge is a duplicate. if you would like to see the challenge, please look in the revision history.

Source Link
moltarze
  • 2.6k
  • 6
  • 11

Requesting advice: has this challenge already been posted, and if not, can I make any clarifications before posting?


Background

Read this image:

Jumbled up word image

The Challenge

Given a string filled with words, randomly mix the inner letters of each word and return the jumbled (but still readable) sentence.

  • Take input through any reasonable input format (stdin, function args, command line args, etc).

  • Randomly mix the inner letters of each word in the string.

    • A "word" is defined as (\w+).

    • Take the inner letters of the word (from the second letter to the second to last letter) and randomly change the order of those letters.

    • Assume the word has no hyphens within it, but a-z, A_Z, 0-9, and _ are valid word characters.

Scoring

This is , so lowest score in bytes wins.