/whitewhaleintern

Intern challenge for White Whale

Intern challenge for White Whale

Code Challenge: Gibberish Algorithm

Challenge Overview

We are exticed taht you are intsereted in joiinng Wihte Wahle for the smumer. Weoclme to yuor fsrit prommarging chanellge. Yuor chnellage is to courtsnct a prrgoam taht tekas an Enilgsh txet snirtg as iupnt and rerutns rebadale giirebbsh lkie tihs. It dseno’t mtaetr in waht oerdr the ltteres in a wrod are, but an iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.

The Basics:

  • You may use almost any programming language... it's your choice. See the supported options here.
  • Your program should leave the first and last letter of each word in place and scramble the rest.
  • Your program should not scamble punctuation (.,-'...etc.), numbers, or upper-case abbreviations.
  • See the [/text_files] folder for sample text files.

Input/Output:

  • Name your program as follows: gibgen.xx (where xx is variable based on the language you choose)
  • Your program should be able to read text input from a string passed into STDIN
    • gibgen.xx "This is a String"
    • cat mystringfile.txt | gibgen.xx
  • Your program should output to the console.

Note: This challenge is based on a popular word gibberish meme. You can improve the readability by looking at a researcher's take on the truths/myths of this meme, but this is not required.

What to do

  1. Download & install Git on your machine

  2. Fork this project - Go here and click the "Fork" button (located on the upper-right side of the screen)

  3. Clone your new fork'd repository to your local machine - git clone https://github.com/trentgillham/whitewhaleintern.git

  4. Complete the code challenge and fill out the Quick Start & Questions in the the README (see below)

  5. git add and git commit your local repository as you go

  6. Push your code and README back to Github occasionally - git push origin master

  7. Email gillham@whitewhaleanalytics.com with the Commit URL to your fork'd repository that you want reviewed. It should include at least 2 files: (1) your updated README with Coding Questions answered, and (2) your program (gibgen.xx)

Note: If you have any questions, email gillham@whitewhaleanalytics.com.

Judging Criteria

Your responses to the Coding Questions at the bottom of this README are the Most Important part of this challenge. A working, fully fault-tolerant program that we just can't break, albeit awesome, is the least important. Why is that? Remember, we don't expect you to be expert programmers (just yet)... We want to see how you think through a problem.

For completion by applicant

Quick Start

  • Replace this text with instructions on how to execute your program
  • What programming language did you use? See here for the supported ones.
  • Also tell us anything else the reviewer should know about your code

Coding Questions

Question 1: "How did you approach the problem?" (500 words or less)

Question 2: "What was the most difficult aspect of the solution?" (500 words or less)