New year, new challenges, new awful code.
Today you need to decode a short message:
066085033032076066072032078069082032078074083072089044032079072071032086032089086088082032076066072046
Here are a couple of hints:
- That's some ASCII encoding
- Only the letters have been ROT13 encoded.
Remember! The code should be suboptimal. It's just after the holiday season so you need to get your CPU back in shape with some exercise.
Top comments (3)
Allocating intermediate storage?
A regex?
Not specifying the
radix
toparseInt
?Not checking for punctuation other than which was used? (
[
-`
and(
-~
) ranges)Only working in node and not on the web due to using
Buffer
instead ofTextDecoder
?And worst of all, completely misinterpreting the task, writing code that isn't especially slow?
Surely no worse could be done!
Any language or platform is permissible, so you're fine limiting to node :D
To set the ball rolling: