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.
logis is easy...
This solution will work but if you leave the parameter as empty it will return false but i considered that the input should be boolean so its not a big deal tho
it won't cause an error and will return same res as yours, is it not?
very nice solution!
But they are not booleans
doesn check for null, undefined so on...
In the scala version, the generation of random tests may be problematic when 2 random tests get the same name.
It will then throw an exception, for instance :
Test Failed
org.scalatest.exceptions.DuplicateTestNameException was thrown inside describe("Random tests:"), construction cannot continue:
"Duplicate test name: Random tests: should return true for (Vector(4), Vector(16))"
This could maybe be solved by adding a counter to the generated name to avoid test name clash.
Not a big deal though, it didn't prevent me to finish the Kata :)
If you experience the same problem, you just have to insist a bit.
I was able to pass 10 out of 11 tests for C++.
I am stuck at test 6.
The problem is that I can't see the two inputs, even when I am using "cout". So I have no clue what is going on.
I see all the inputs for all tests except for test #6.
Any suggestion?
Fixed.
Fixed.
In the C++ version of this kata, the code is missing the type "std::string" in the parameter.
Instead of "std::string DNAStrand(dna)", we should have "std::string DNAStrand(std::string dna)".
Not a big deal, easy to spot, but why not to have it fixed? :)
I'm glad that I saw your message.
I managed to solve the Test Run, but my code couldn't pass the final test.
This part made me understand what I was missing: "return a string that represents the very first longest block of consecutive elements".