Ad
  • Custom User Avatar

    If you click "show solution" under a comment with the kata set to a specific lang then it will show the users last submitted attempt (or passed attempt) for that lang.

  • Custom User Avatar

    Also, even if you do manage to solve your data integrity issues, you'll probably still timeout, as you're using an inferior algorithm. Parallelism isn't going to help you here.

  • Custom User Avatar

    I didn't decide that you're using parallelism; you're using Parallel.For, which literally has Parallel in its name, and is a parallism construct.

    If you don't even know what you're using before using it and ended up shooting yourself in the foot, I'd suggest actually looking it up first?

    Also, for the record, I can see your solution code; there are exactly 2 spots where concurrency issue exists.

  • Custom User Avatar

    Anyways, the problem you're having is, you're using parallelism, but you never made any attempt to make your code thread-safe, so the values become messed up once input size gets big.

  • Custom User Avatar

    This is not really a issue, this is a question.