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.
This comment is hidden because it contains spoiler information about the solution
Again, thanks for the feedback.
I have now implemented random tests for both functions and cleaned them up a little.
I have also made a few changes to the description and requisites of the "decrypt" function, and I believe that not all previous solutions will work now, so check it out if you want!
I see, thanks for the explanation, I did not understand it before.
I'll implement them asap.
Now, 12 out of 47 are random string test cases (I added 6 more).
I believe that they should adequately test the code now.
still needs random strings as test cases
Hello, thanks for your feedback!
I have added a few more test cases with random strings for both parts of the kata, I think they should cover all possible cases but I'd like to hear your opinion on the matter.
Needs some random test cases!
@smile67 Cheers mate :)
@simone.ferrero: Yes i know (little bit "outside" the requirement), but sometimes it is the fun of it;-)... By the way a nice kata;-)!
:-) Yes, little bit more, but it's not my goal to produce the shortest code - "King of short, compressed and often difficult readable code";-)! It's always nice to see this very compressed code, but the shorter it is, the more it is difficult to read (generally). It's often marked as "Best Practice", i know, but who would really use this code in productive environment? Far away from "clean code" and often far away from "quick understanding" (by the way, my code here is also not the best and far away from my productive code which i did not on tablet;-)). Perhaps 95% aren't able to understand it or switch it away because it takes too long to get it. Isn't it better to produce code which is short (perhaps some lines more and perhaps because it's only hobby here and mostly nearby job), but readable for 95% included the "beginners";-)? And last but not least, the shorter it is, means not that it's better or quicker - to do something "once linear", perhaps with stack operations for example (don't know the problem) or to do something "20 times linear" with different regexp and often bad use of linq (which makes debugging and error handling not easier) is not always the best...
Wow... much text:-)..., but i often thought about it while reading different code examples on codewars:-)... and perhaps 95% have a different opinion;-)... So keep smiling, everything is just for fun (here):-)!
@smile67 Your code is too long, Man~~
Thanks for your feedback!
That is a completely different approach than I had thought of, and it looks much better, although a little "outside" of the requirements in the description!
Perhaps the "decrypt- part" is not the best, see my solution;-)... made no issue, but have a look...