Would there be a faster version of this function?
submitted 2 years ago by zyxzevn from (self.ProgrammerHumor)
view the rest of the comments →
[–]zyxzevn[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - 2 years ago (0 children)
On reddit /r/shittyprogramming we had some contests about who could make the most shitty implementation of "IsEven". There were worse solutions than this one.
In my implementation I used the build-in Eval() function of javascript to recursively. And it worked in my tests.
use the following search parameters to narrow your results:
e.g. sub:pics site:imgur.com dog
sub:pics site:imgur.com dog
advanced search: by author, sub...
~5 users here now
ProgrammerHumor
view the rest of the comments →
[–]zyxzevn[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - (0 children)