5 kyu

Chain Reaction - Minimum Bombs Needed

Description
Loading description...
Algorithms
Matrix
View
AllIssues5QuestionsSuggestionsShow Resolved
  • Please sign in or sign up to leave a comment.
  • Blind4Basics Avatar

    now that the prequel has been unpublished, the link in the description should be removed (also: see issue 2 posts below)

    Cheers

  • EPiph Avatar

    The reference solution sometimes times out when running against itself in the random tests...

    • saudiGuy Avatar

      Looks like your solution is the fastest of them all. I will use your solution as the reference solution now. It won't happen again.

      Issue marked resolved by saudiGuy 2 years ago
  • Blind4Basics Avatar
    • The typical size of the inputs and the number of tests should be specified

    This is supposed to be a NP-hard problem, so I wonder... either the rank is wrong, or the inputs are very small, or there is a problem in the way the tests are done...?

  • Blind4Basics Avatar

    Hi,

    TabError: inconsistent use of tabs and spaces in indentation
    

    in the initial solution. On CW, systematically use space characters, never tabs. (this comes from your IDE settings: you're pasting the code in the kata editor with those tabs)

    cheers

  • EPiph Avatar

    Probably people have noticed this, the time a solution takes seems to vary quite a bit on the random tests you happen to get... Not necessarily an issue, I have seen at least one other kata that suggests attempting more than once just in case you were unlucky with a particularly hard random test.

    • dfhwze Avatar

      Random tests should be as stable as possible. So perhaps the author should deal with this.

    • EPiph Avatar

      Sorry I'm a little bit newb lol, I suspect now it is the reference solution responsible mainly for this fluctuation when testing.

  • Kacarott Avatar

    Ref sol is still wrong:

    x++xx
    +x0x0
    ++x+x: 1 should equal 2
    

    (The currently posted solutions are therefore also wrong in the same way, so don't copy from them)

  • dfhwze Avatar

    ref sol is wrong:

    +++0
    ++0x
    xxx+
    00+0
    00+0: 2 should equal 3