Here's a baseline: http://goo.gl/91vIGc. Destroy!Andrei
Here's my attempt: http://goo.gl/alJ9JSI interpreted the challenge slightly differently, I went for fewer lines of code and fewer branches.
I verified the output for all valid inputs.
Here's a baseline: http://goo.gl/91vIGc. Destroy!Andrei
Here's my attempt: http://goo.gl/alJ9JSI interpreted the challenge slightly differently, I went for fewer lines of code and fewer branches.
I verified the output for all valid inputs.