News for hackers. Stuff that matters.
Re:Array Iteration Interview Problem by spicyj on Wednesday August 01, 2012 @08:29PM (#4326535)
You could also say -n if you didn't want to say abs. I found the problem confusing because of how it was written.

Also, unless I'm mistaken, you can lose the "if (n === 0)" case completely.

There are no comments on this comment yet.