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.
No worries, it's a simple issue. Thanks!
problem disappear, so many thanks!! ;)
The tests say that the expected and the actual results differ. The following is the exact output from the log. I'm not too sure what's going here. I have tried a different terminating characters thinking that that was the cause without much success.
"Expected result=
4897 NkTrC Hq fT67 GjV Pq aP OqTh gOcE CoPcTi aO
Actual result=
4897 NkTrC Hq fT67 GjV Pq aP OqTh gOcE CoPcTi aO"
Has anyone experienced this before/know the fix?
You are right; random tests fixed in C. Sorry:-(
The instructions are ambigious, and/or the random tests for C are incorrect, as they are testing undefined behaviour by including lowercase text. "choose a text in capital letters including or not digits and non alphabetic characters" could be interpreted as meaning that all input letters will be uppercase, or that we only want to apply the five steps to letters when they are uppercase, but neither is quite true... In order to satisfy the random tests for C, you only want to do the circular shift on letters if they are uppercase, and lowercase letters should not be shifted, but you still have to do everything else to them. The C++ version does not have this problem.
It should be stated that the circular shift is only to be applied to uppercase letters.
I should have initialized "result" to 0 in the declaration, in case BinaryArray[] is zero-length. Real-world use could might also want some sanity checking that BinaryArray[] elements are really only zero or one.