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.
.... OH, so i am testing for which ones are in reverse, and returning those?
You should return the reversed string, not the original one.
Forgive Ms Sir/Madam, but isnt that what rhe goal is? That forementioned goal being to take rhe string provided and reverse it, then output/return it?
Your code is returning the same string as the input, that's why it fails.
Are you looking at what the input was? Otherwise you can't state that you've reversed them, not knowing the original order.
You're free to print out information about what's going on in your code. You can print out things like what the input to your method was, and what value your method returns. That way you can manually judge whether your method does what it's supposed to, and whether that agrees with the error report that you're getting.
It also doesn't matter whether the input is a reversed English word, or a word at all. The input can therefore never be "reversed to begin with" as nothing is supposed to be in any particular order in the input.
I see. Thank you so much! o7
.
"It works on my IDE" is NEVER a point to raise an issue.
If you wanna be taken seriously, youhave to prove your point:
Aside of that, with more than 10000 solutions, the chances you found a bug are close to 0.
You should begin there, I guess: https://docs.codewars.com/training/troubleshooting
I do believe i am doing everything right.. I have converted each string given to me as a parameter into a Character Array, and used the Array's "reverse" method to flip around the order of all characters therein... however, whgne i try to return this result after having converted it into a new string... I get the thing I was expecting, however the system itself insists it should still be in reverse... what is this madness?
Test Failed
String lengths are both 19. Strings differ at index 0.
Expected: "sihT si na !elpmaxe"
But was: "This is an example!"
-----------^
for better reference, i have sucessfully reversed the strings yet it says it should be.. in resverse to begin with?....
unless I am mistaken and the goal is to take normal words, and then reverse them..
This comment is hidden because it contains spoiler information about the solution
Ah, I see, It is to be the value of all orher possibilties..... so I am assuming any vakue greater than the integer of value of 6 within the input field, is sort out any.. "beyond range" arguements?
If I made any error, please note that I an trying to type this responce at work between customers.
... oh wait... flash forward two days and more sleep... i messed up ...
Fixed there: https://www.codewars.com/kumite/6291211b58d87b18168c9a89?sel=629138d0b951dd7fd8b33249
Go sample tests:
Rust translation (author is inactive).
Loading more items...