• Please, help me to understand. My C# code has passed all basic tests but has failed Parentheses Tests and Random Tests.
    ParenthesesTests
    Test Failed
    Expected string length 6 but was 5. Strings differ at index 0.
    Expected: ")))))("
    But was: "((((("
    -----------^

    RandomTests
    Test Failed
    String lengths are both 18. Strings differ at index 3.
    Expected: "((()())(()()()(((("
    But was: "(((((((((((((((((("
    --------------^

  • Use System.Linq in the using section. It helps

  • Please don't post solutions in the discourse.

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

  • can anyone help me I'm facing some problems with @

  • I am trying to solve this using dictionary in python. I am saving the number of occurrences of each character in the dict. And I check if that character comes up more than 1 time then I replace the character with ')' else with '('. The problem is for example if the word is "abca)" then when the interpreter gets to ')' it replaces all the previous occurrences of ')' with '(' as ')' occurrs only once. I don't understand why it changes all the previous occurrences and not just the current one. So my answer comes out to be "(((((". This problem does not happen in for example "abca(". For this I get ")(()(" which is the correct result.

  • I think I mixed up all here. I do not read with attention and I thought it would be an find-primes exercise. Thanks, Chrono79.
    Maybe an exercise like these for further lessons would be nice, too: given an array, find an only prime between non primes, or an only non-prime between primes.

  • Review your definition of odd number, 2 is even, not odd.

  • [2, 4, 0, 100, 4, 11, 2602, 36]
    Should return: 11 (the only odd number) -> This is wrong, because in this array 2 and 11 are odd numbers

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

  • Not a kata suggestion

  • If you use this hack again, you will get banned. Not an issue.

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

  • That's JUnit telling you in which part of the string is the difference, the square brackets aren't part of neither of them.

  • Loading more items...