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.
The haskell tests are totally broken; there are several solutions that just return a static string that succeed. Please fix!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
haskell:
https://www.codewars.com/kata/reviews/54f8b568a58bce1dde000e4a/groups/664e6faff17a79216ed71bac
The general issue here is showing up in other languages as well, but I do not know whether they are wrong, what I know is that I do not like this test pattern one bit. And that general issue is that the tests consist of checking for specific ways the result might be wrong, but doesn't actually bother checking whether the result is right. I would much rather see a line-by-line comparison (or even the whole block at once), and not have any of these remarks. Yeah, I get that having no reference solution is sexy. It's also difficult/complicated/error-prone.
TypeScript translation (literal translation of JavaScript; author inactive)
This comment is hidden because it contains spoiler information about the solution
The individual test run from around 20ms or 2ms but it still timed out ? Is my algorithm still inefficient ?
Hi, my code always run beyond 16sec. Here's the pseudo:
Any suggestion on what part to improve? TIA.
I just published the R translation of this Kata.
Please, check it out and comment or approve it.
It is my first Kata translation, so I am open to any constructive criticism.
I am using python for this kata. I am getting an error "line starts or
ends with a space. The only lines that end with a space are 1 word lines.
All lines start with letter. I do not see why this is failing. Any help
is appreciated.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ruby 3.0 should be enabled, see this to learn how to do it
This comment is hidden because it contains spoiler information about the solution
My implementation passed:
public function test30() { $this->assertEquals("Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit.\nVestibulum sagittis dolor\nmauris, at elementum ligula\ntempor eget. In quis rhoncus\nnunc, at aliquet orci. Fusce\nat dolor sit amet felis\nsuscipit tristique. Nam a\nimperdiet tellus. Nulla eu\nvestibulum urna. Vivamus\ntincidunt suscipit enim, nec\nultrices nisi volutpat ac.\nMaecenas sit amet lacinia\narcu, non dictum justo. Donec\nsed quam vel risus faucibus\neuismod. Suspendisse rhoncus\nrhoncus felis at fermentum.\nDonec lorem magna, ultricies a\nnunc sit amet, blandit\nfringilla nunc. In vestibulum\nvelit ac felis rhoncus\npellentesque. Mauris at tellus\nenim. Aliquam eleifend tempus\ndapibus. Pellentesque commodo,\nnisi sit amet hendrerit\nfringilla, ante odio porta\nlacus, ut elementum justo\nnulla et dolor.", justify("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sagittis dolor mauris, at elementum ligula tempor eget. In quis rhoncus nunc, at aliquet orci. Fusce at dolor sit amet felis suscipit tristique. Nam a imperdiet tellus. Nulla eu vestibulum urna. Vivamus tincidunt suscipit enim, nec ultrices nisi volutpat ac. Maecenas sit amet lacinia arcu, non dictum justo. Donec sed quam vel risus faucibus euismod. Suspendisse rhoncus rhoncus felis at fermentum. Donec lorem magna, ultricies a nunc sit amet, blandit fringilla nunc. In vestibulum velit ac felis rhoncus pellentesque. Mauris at tellus enim. Aliquam eleifend tempus dapibus. Pellentesque commodo, nisi sit amet hendrerit fringilla, ante odio porta lacus, ut elementum justo nulla et dolor.",30)); }
From insruction tab and passed base test.
Fails "Testing for width=15" with :"Line length is not equal
Failed asserting that 10 matches expected 15."
But i get source string and make conversion mannualy by rules from instructions tab and result with my implementation is same.
And there are no info about what exact no right, but seems in other languages there are expected length at least.
So i think there are invalid tests for php langauge.
Loading more items...