Skip to content

Instantly share code, notes, and snippets.

@ga-wolf
Created June 29, 2015 22:45
Show Gist options
  • Save ga-wolf/27360727e8866594e3a4 to your computer and use it in GitHub Desktop.
Save ga-wolf/27360727e8866594e3a4 to your computer and use it in GitHub Desktop.
Wordy Calculator 1

Wordy Addition

Write a program that takes a word problem in the format:

What is 5 plus 13?

and returns the answer as an integer.

The program should handle large numbers and negative numbers.

Use the tests to drive your solution by deleting the skip in one test at a time.

Source

Inspired by one of the generated questions in the Extreme Startup game.

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