Description

Cart 2112

Community Train Pop Quiz Question #2

How many palindrome carts have been in the train so far?

<< Previous | BUMP? BUMP! | Next >>

5 minutes of JavaScript here :-)

[...Array(2112+1).keys()].filter(num => {
    return num > 10 && num.toString().split('').reverse().join('') === ''+num;
});

and the answer is... 111! Which is palindrome too :-D

5 years ago*
Permalink

Comment has been collapsed.

I don't understand this, but I love it anyway! Thanks for the answer!

5 years ago
Permalink

Comment has been collapsed.

I dont wanna doubt your programming skills but 111 seems less. There are 9 palindromes in 2 digit numbers and 100 in 3 digit. There should be 10 in 1000 to 1999 and 2 beterrn 2000 and this card it should be 121 but my math might fail me

edit : ah nvm there are 90 in 3 digit numbers. My math has failed me lol.

5 years ago
Permalink

Comment has been collapsed.

What is palindrome cart can i ask :P ?

5 years ago
Permalink

Comment has been collapsed.

A cart that has a number that is the same backwards and forwards (e.g. 2112, 1881, 404, 1111, 77, etc.)

5 years ago
Permalink

Comment has been collapsed.

Thx for the answer!

5 years ago
Permalink

Comment has been collapsed.

Palindrome cat?

View attached image.
5 years ago
Permalink

Comment has been collapsed.

Lol xD

5 years ago
Permalink

Comment has been collapsed.

Tacocat!

5 years ago
Permalink

Comment has been collapsed.

11, 22, 33, 44, 55, 66, 77, 88, 99, 101,111, 121,131, 141, 151, 161, 171, 181, 191, 202, 212 , 222, 232, 242, 252, 262, 272, 282, 292, 303, 313, 323, 333, 343, 353, 363, 373, 383, 393, 404, 414, 424, 434, 444, 454, 464...
Ok, I'm too lazy to write all of them. :P

5 years ago
Permalink

Comment has been collapsed.

5 years ago
Permalink

Comment has been collapsed.

If I remind correctly, on sg there is even an user called palindrome

5 years ago
Permalink

Comment has been collapsed.

Thanks for the game and participating! :D

5 years ago
Permalink

Comment has been collapsed.

You do not have permission to comment on giveaways.