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.
There's no point in returning the number of matches.
The description is seriously lacking...
Clear rules or examples need to be presented.
Tests updated, description updated.
I'm not saying that my code is the most efficient, but I will say that I'm making a single pass through the array in javascript and timing out. I'd understand it if I were doing multiple passes but I don't understand why a single pass should ever make it time out.
thanks for your input and time. I am inspired by this to keep working on it. I have cleaned up the examples and test cases and edited the description. Over the weekend I will focus on introducing randomly generated tests.
On the Wiki page ( linked from the left menu ) there is a link "Creating your first kata" on the very first page. Read that in full, and look at the tests of kata you've solved - most any of them should have random tests.
Please note that "This is not new" is something that's hard to solve without real changes to your kata - you'll need to make your kata unique, because you can't very well unpublish other people's kata ..
Hi thank you for the feedback. I would like to fix any issues to imporve this Kata.
I am finding the randomising of the test data confusing, is there a link or model of how to do this?
thanks
Model:: string => array [,]
is trying to convey. If you intended to write a Haskell-style type signature, that would be something likecapitalWords :: String => [ [String], Int ]
( JS unfortunately doesn't have tuples ).[ array, thatVerySameArray.length ]
is redundant. Just ask forarray
; if you want to know its length, look at itslength
property ?!? You could also just ask for theregex
as a constant and.match
it yourself, but people are solving it differently.This is not new.
Also, needs random tests.
That's the reason, not unknown.
This comment is hidden because it contains spoiler information about the solution
using import math makes this kata trivial and boring (I mean, why bother?).
THE REAL CHALLENGE is to do it WITHOUT the sqrt or similar function...