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.
duplicate
fixed, thanks!
Something seems off with the C random tests. For example:
< Incorrect Result >
code[13] = {
" uhefkcy mrpdrk uflndjh em zzksswz acry",
"x ogyypkkuvxpxfkajctamdsac uxqk lrsbp f",
"z zwiousp vaozd tygmv wazgstvzx rpbsdnk",
"lixlwoo mam oa ggrzui gtk k rnjcjrjy",
"xvyb gbmlhwcaerzpart dfrjhmlrvinh pvfjz",
"iqvljsba vrsv xl xw njhuq bdllcuuwxwnyw",
"ns ffmvpake q kwnezyhakbq qwxfjplh qvc",
"qfzpnf qabvstbmc bcexzj ucuolr fkov",
"dphohc dqafvqwdpdpowlbd siowt kodkcemb ",
" vepl st hkdi zt gi asvdvq rgvmjjpcuh",
"xmhapp bamj muvhnko uu ywb ynvntvnhdu ",
"eus uwg wmjkz xruttzjgmwy dyjwx ihzvdxa",
"ticc ysrrdcpmhbbzhxpjm uu oqjhikkdkhoa"
}
Submitted: "mmnikmikghmlkkiklklpkiiimjeooolknlikiok"
Expected: "i igh
iiie
i "
This comment is hidden because it contains spoiler information about the solution
@iivnn, posting a solution is forbidden, so it makes no sense to make one as a
suggestion
Notice that the first name of the given list,
Sevap
ends up in seat#10
? This is because that's the seat in theWindowsill
corner, that of the feature most desired by those family members whose last name starts with a letter in the the ancient nameSSSSSSSSS
. Every other member of this particular test, all starting withS
will then sequentially get a seat as close to there as possible.This was happening because you were mutating the input, which causes
unexpected behavior
. I have fixed the code so this will not happen any further. Please clickRESET
in your trainer (don't forget to copy your code if you don't want to lose what you do have), and you will notice that the declaration is now:void decipher(size_t length, const char * const code[length], char *mew)
.Thank you and good luck!
I get a SIGABRT with my code. Surely, my code is wrong but I do not allocate any memory so how is it possible?
Besides, I'm seeing
Expected: "*&ikh)ihg&j'kj%&hij'-&'*ih)h'"
which should not be possible ("Every String consists of only lowercase letters and spaces.")
Thank you!
Why for the test All_Favor_the_Same_Feature
Sevap Syolc Sgulg Stolb Sknoh Spord Sgnaf Shcat Sknit Snirg Senin Sliob
result is not like this;
Sliob Snirg Shcat Spord Stolb Syolc Sevap Sgulg Sknoh Sgnaf Sknit Senin
but
Sgnaf Sknit Senin Sliob Snirg Shcat Spord Stolb Syolc Sevap Sgulg Sknoh
I ran their code and discovered that it passes if the test is modified from
assert.strictEqual
toassert.equal
, if that helps.C Translation
No one should just give you a solution, it's forbidden, so please don't ask for one.
bruhh, taunting
Loading more items...