Ad
  • Default User Avatar
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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.

  • Default User Avatar

    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.

  • Default User Avatar

    Yes random tests are buggy.

  • Default User Avatar

    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.

  • Default User Avatar

    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"

  • Default User Avatar

    Bob had a little too much mary janes this morning.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    "oh yeah duh" - me

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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.

  • Default User Avatar
  • Loading more items...