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.
Yeah, I was confused at first at where the initial caps came from in this answer, but when I ran it locally, I saw it doesn't. Not sure what "Should -Be $var" is in the tests, but I susped an -eq needs to be swapped with a -ceq, or swapped with a $userAnswer.Equals($testAnswer).
Or maybe we're assuming too much from the kata description. It never specifically states each section needs to start with a caps, but every example consistently does, and that's all the instruction given.
Nice to see a pipeline in powershell. No handling of upper and lowercase though. Think the question had leading caps but I guess they didn't test on that?
That is a valid solution. The Python translation has been updated accordingly, thanks.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I suggest reducing the number of hacks to minimum and make sure that your basic k-means algorithm handles short tests well.
When this kata was created, scipy was not available here on CodeWars, so there was no "usual implementation", so the original solution has k-means implementation of its own, and it was a kind of a point.
Maybe it's worth quoting the kata description: "if you have trouble discerning if the particular sequence of 1's is a dot or a dash, assume it's a dot".
This comment is hidden because it contains spoiler information about the solution