Allocating intermediate storage?
A regex?
Not specifying the radix to parseInt?
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 of TextDecoder?
And worst of all, completely misinterpreting the task, writing code that isn't especially slow?
Surely no worse could be done!
Allocating intermediate storage?
A regex?
Not specifying the
radixtoparseInt?Not checking for punctuation other than which was used? (
[-`and(-~) ranges)Only working in node and not on the web due to using
Bufferinstead 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