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.
my dictionary
String[] words = {"gimmemore","givemethepower","givenup","giventoother","giveandgive"};
my input = gimthepoer;
my output= givemethepower;
My programm runs better than takas do :/, idk why is not accepted u.u
I have pass all tests except for nowordstext (2 of them).
I have create my own nonwords to test it and i feel I'am right for example:
String[] words = {"fghjklmnop","asdfghjkl","fghjqwewerter","aabxcvbsdfght","asdfghjklmnopqrst"};
String search = "dfghjkln";
Result of my program = asdfghjkl , Am I right, no?
Does anyone have any nonwordtext that maybe crash my programm?, I really don´t want to see the answer.
I have test my code with online compilers,even with diferent IDE's, and my shorter solution works, Idk why doesn't work here :/
te mamaste
Yes, the problem is with actual and expected values, where same letters do not share the same digit regardless of case
Which language?
Help us help you.
When I run the random tests, I print my result in the console.
Then it says I fail but the string I printed in the console does not match the output it says I failed.
My print result: 1021234035000340607
Message: "Input was: wLrwraYlaFLlLaYlclK,
excpected: 1021234035000340607,
but was: 1021234536050345758 ==>
expected: <1021234035000340607>
but was: <1021234536050345758>""
Is the problem that actual and expected values are switched in the test asserts?
This can make for surreal failure messages. It's also easy to diagnose and easy to fix, without all the "I think .." and "Maybe ..".
If you are going to post an
Issue
, in general, you should be sure it's actually a kata issue, which means you pretty much have to know what the problem is.I am doing this Kata in Rust and i think there is a problem with the Random tests.
The random test keeps failing but when I test the input string with my soulution it gives the expected answer.
Maybe there is a difference between the test string and the expected string ??
This to me seems like it's saying that 'c' and 'C' should share the same digit, but the Rust tests require different digits.
If you've solved the kata, you can look at
Preloaded
by forking a solution and looking at the tab.Just in case you think
Preloaded
is hidden.It is failling on this case for me just to confir with you if your getting the same issue.
the function suposedly has to be not case sensitive nad it looks like on that test case is not getting that in consideration.
convert_RandomMixedCase
Log
UUpLzUnAeLnLmxeUmel
Input was: UUpLzUnAeLnLmxeUmel, excpected: 1102314562427861762, but was: 1102314562427861769 ==> expected: <1102314562427861762> but was: <1102314562427861769>
If you mean Java version, it's already reported: https://www.codewars.com/kata/5bb148b840196d1be50000b1/discuss#5f7ce7a9aa5f910014b642c5
How to report a taka issue?
Is failing on the random test only, but when i test it by myself is ok, matches as is requiered, maybe random test change letters to Uppercase after mi toLowerCase method
In fact the path change from the beginning, it must give you the shortest path, Anyway, I solved it but my code is not good enough :(
Loading more items...