Skip to content

Instantly share code, notes, and snippets.

@hovsater
Created October 2, 2012 12:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hovsater/3818527 to your computer and use it in GitHub Desktop.
Save hovsater/3818527 to your computer and use it in GitHub Desktop.
Problem Solving Challenge #1

Problem Solving Challenge #1

Problem solving challenges are fun. They make use of one's problem solving skills and stimulate the programmer's need to challenge themselves.

Here we go

These 1151159511610110199114 numbers represent a word.

  • The word may only contain a-zA-Z_
  • The word is of size 8.

In this particular case the secret word was s_ecrets.

Write two functionsthat can encrypt an arbitrary string and return a string of numbers such as the one above. The program should also be able to take a string of numbers and return the original word.

Happy hacking!

@bil-bas
Copy link

bil-bas commented Oct 2, 2012

Actually, still bored, so I improved my solution in a separate gist. Might want to delete my previous comment!
https://gist.github.com/3819927

@hovsater
Copy link
Author

hovsater commented Oct 2, 2012

@spooner impressive. Great solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment