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.
anti-readable
This comment is hidden because it contains spoiler information about the solution
I am outputting the input of strings of good and evil, and my result string. My result string is correct based on the strings worth, but the tests repeat multiple times per test and on the last iteration of the test the test case switches from what it was originally supposed to be.
Example: Evil Should Win (Repeats Twice)
good: 1 1 1 1 1 1 evil: 1 1 1 1 1 1 1
result: Battle Result: Evil eradicates all trace of Good
good: 1 1 1 1 1 1 evil: 0 1 1 1 1 1 1
result: Battle Result: No victor on this battle field
First input correctly fits for the test case, my program correctly outputs the correct string for the second iteration of this test, but it is incorrect for the test case???
I am outputting the input strings at the top of the program, and the string after getting the worths before the return.
Second Example: Good Should Win (Repeats Three Times)
good: 0 0 0 0 0 10 evil: 0 1 1 1 1 0 0
result: Battle Result: Good triumphs over Evil
good: 1 1 1 1 1 1 evil: 0 0 1 1 1 1 1
result: Battle Result: Good triumphs over Evil
good: 0 1 0 0 0 0 evil: 1 0 0 0 0 0 0
result: Battle Result: No victor on this battle field
**Test Failed
Expected string length 38 but was 45. Strings differ at index 15.
Expected: "Battle Result: Good triumphs over Evil"
But was: "Battle Result: No victor on this battle field"
Weird?
This comment is hidden because it contains spoiler information about the solution
I was trying to do an iterative solution without linq and ended up using substrings, but totally forgot I could just concatenate a string and not have to deal with restarting the starting index.
Random tests 100% buggy. I put console.writeline at the bottom of my main function before returning result and it still failed, then i added a console.writeline at the top of the function and it worked. Didn't change the rest of my code at all.
Yes random tests are buggy.
Idk what happened random tests kept failing, I didn't change the logic in my solution all I did was put two console writelines at the top and bottom of the main function and it worked. Not a fan of buggy exercises.
Was returning 0 until I put in two console write lines. I was testing my code out in LINQ PAD and everything worked fine. Definitely buggy random tests.
How the hell is the answer to this string 26?
"kpocreesqgcjkccqkdxnexwasxgkmmgjgphydf
tgleioxymwsqkqpmrhbhzrhexqkb
xyjkhktzcuojoywfpjxhfhxqtyzyzsdo
ymoubsshlfvzbnbxxcvkbmwbtbslcxngyhlymxqe
emkxgfpyvpoxhnqdlnoivkpmjco
iigxxlxbamxwqhbenujkh
egfupqhasfarracjwmifugnfzshcqwxglaxlwshruri
utgucgjglydsvsxmbibiyqrgofjpfidczbdzcr
ntfcwidwbwzq
yi
itxzvhpmu
vrhpikghofbtjiyzaj
upduofmwohvmpamqeid
ieawwgyjpuhw
zknuneftpqbhmlzqsbmhdgxfcgjg
zdzsthfjlbsowtmuthrxblyesqo
ikxdwjpqrymoudhjsmraxnecgrzry
mfhtfuodmhncjofjrbndtfghojmtmkoh
jyuteggsmhgskgwkiqgqbjucrqysilgj
oxxnulcvcmbobeioroiqvwlonwrjbfezf
udzqeatzdtylxtzh
idvynrcmsbqgcdp
jhulm
kibdfzdyytkriojypnmofjga
eofvvgyoosdaqyuvudubgyfrljkjphezpelvwviutggiiipw
eiw"
Bob had a little too much mary janes this morning.
This comment is hidden because it contains spoiler information about the solution
"oh yeah duh" - me
This comment is hidden because it contains spoiler information about the solution
not a fan of the magic numbers, don't think you need the aggregate function, just join the array into a string and long parse it.
wtf is this doing?
Loading more items...