Ruby 3.0 should be enabled, see this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
describe "<This message should describe the categories of test groups inside this block>" do
it "<A short message describing this test group>" do
expect(...).to eq(...) #Assertions
#Or Test.assert_equals(user_response, reference_response)
It would likely be that you did not dynamically allocate memory for the return string, and don't forget the NT.
Needs some tests with noncorrect words thrown in to up the difficulty
Anyone can help?
On C, when I try first test on the other platform, all works fine. When i try here, on codewars, first test show
is false: actual=Burger Fries Chicken Pizza �����/-" and error free(): invalid next size (fast) So its like the string breaks into some random chars and nothing works by the reasons that i Dont know
Burger Fries Chicken Pizza �����/-" and error free(): invalid next size (fast) So it
Nice kata! Thanks for posting it.
Attempted this Kata in JS - working through it I was constanly reminded of the superiority and simplicity of Python. To be fair, I'm very new to JS.
Interesting kata, nonetheless. :)
Our servers are configured to only allow a certain amount of time for your code to execute. In rare cases the server may be taking on too much work and simply wasn't able to run your code efficiently enough. Most of the time though this issue is caused by inefficient algorithms. If you see this error multiple times you should try to optimize your code further.
Enjoyable Kata. Was tired and brute forced it, but enjoyed it none-the-less.
C++ version of the kata seems to be OK.
Does your solution work for you in your local IDE?
See if this FAQ is of any help.
I am going to close this issue as too vague, but if you can confirm that kata indeed has a bug, re-raise the issue with some more details (input, your code, correct answer, etc.)
I feel like I am being gaslighted. The last few lines repeat themselves if, and only if, I return the correct answer. There is no reason for it. The returned string just repeats itself without being told to. I've tried new variables, I've tried changing the code, I've tried erasing the doubled part of the string premptively. Nothing works.
Sorry, I am new here, joind before a couple of days. I thought I mark it as spoiler I am still learing how to use the platform.
Yes it makes sence,I never got to the second test value to be honest becouse I was suspecting it was some problem of the form of the output from the method.
Thanks for the advice!
Please mark your post as having spoiler content next time, your code is wrong. Your way of using that control string is wrong, you delete the first char of each item to mark them as used, but what happens when you have something like this?
friessandwich -> friesandwich <- you still have sandwich, that's why you got 2 sandwiches when there should be only one
The test your code is failing is the second one, not the first one.
This comment is hidden because it contains spoiler information about the solution
ah, I saw where the problem is, I didn't import java.util.*;
hope I am going to save time to somebody with my problem