Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
They're not really the same. emirps is a lot stricter performance wise.
Look at the bottom of the two pages. Mine was done "April 24 2015, the other "August 27 2015" so post this remark at https://www.codewars.com/kata/emirps.
I'm not quite sure how to to report this, but this kata is basically the same as https://www.codewars.com/kata/emirps
I passed, but I don't like my code. I can think of edge cases that it will get wrong that obviously weren't asked for.
It's interesting that this (like many things) is more complicated than it seems at first, and I'm grateful for the thought it provoked,
but for something I'm throwing a few minutes at, it's impossible not to cheat and see what sticks.
You made the same mistake I did on this one: it's not just that there's a triple in num1 and a double in num2, the double has to be of the same digit as the triple.
I just did this one and also had a random number of errors... until I reread the problem.
It's not just that num1 has a triple and num2 has a double... it's that num2 has doubles of the same digit that's tripled in num1.
eg: 123444, 122 doesn't pass. There's a double, but it's not double 4s.
Okay, so this one is fun and prompted me to dig into how regexps work in javascript. Thanks!
For those of you getting a small but random number of errors, read the description more closely.
I didn't read it carefully and I got a ton of false positives. The conditions are only met when there's a triple in number 1 and a double in number 2 OF THE SAME NUMBER AS THE TRIPLE. This last part is important.
All of the sample cases have false positives. I'd suggest making at least one test case in the samples that has triples and doubles but not the same digit.