Name:
Anonymous
2012-04-16 20:32
do you?
how efficient are you?
how legible is your code?
do you remember what you intended to do the next day?
Name:
Anonymous
2012-11-15 20:06
>>10
>>10
JAVASCRIPT the superior functional language
(function() {
function range(begin, end) { for (let i = begin; i < end; ++i) { yield i; } }
function max(gen) {
var max;
try {
for (max=0 ; n = gen.next(); max = (n > max) ? n : max);
} catch (e) { return max; }
}
String.prototype.reverse = function() { return this.split('').reverse().join(''); };
return max((parseInt(x, 10) for (x of ((x*y).toString() for (x of range(100, 1000)) for (y of range(100, 1000)))) if (x === x.reverse())));
}());