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.
Do not vandalize your own kata, even when it got retired.
You're right about all of this; I made this because I was bored in class and didn't really stop to think about anything. Thanks.
Issues:
[ [0, 0], [1, 1], [2, 2]]
?"Code should identify invalid arrays."
should be a title of a test case or a test group. Assertion message should present input of a failing test.Suggestions:
(int) (Math.random() * 200) -100
is a really bad way if generating random numbers. There isRandom::nextInt
, there isRandom::ints
.ForemanPig
.I read the description a couple of times and I still have no idea what "ordered pairs" are, especially in context of triangles :thinking:
I edited the description; thank you.
A minor typo in the description:
looks good!
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 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!
C Translation
... Easy fix... =_=
Thank you for bringing the issue to my attention, if it still doesn't work come yell at me
Loading more items...