Ad
  • Custom User Avatar
  • Custom User Avatar

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

  • Custom 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?

  • Custom User Avatar

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

  • Custom 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.

  • Custom 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.

  • Custom User Avatar

    Yes random tests are buggy.

  • Custom 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.

  • Custom 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"

  • Custom User Avatar

    Bob had a little too much mary janes this morning.

  • Custom User Avatar

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

  • Custom User Avatar

    "oh yeah duh" - me

  • Custom User Avatar

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

  • Custom 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.

  • Custom User Avatar
  • Loading more items...