News for hackers. Stuff that matters.
Re:Can you solve it? The Greplin programming challenge by Tichy on Friday October 08, 2010 @08:23PM (#1773962)
I just copied the CSV into the text editor. But I just realized how stupid I was. I wrote

var nums = "3, 4, 9, 14, 15, 19, 28, 37, 47, 50, 54, 56, 59, 61, 70, 73, 78, 81, 92, 95, 97, 99".split(", ");

for(var i = 0;i< nums.length;i++) { nums[i] = parseInt(nums[i],10); }

Instead of just editing the numbers so that it was an array right away. Happens if you code before you think :-)

There are no comments on this comment yet.