Ad
  • Custom User Avatar

    @xcthulhu, please take a look at my new solution. It passes 1862 tests but it still times out.

    Thank you.

  • Custom User Avatar

    Any tips on how to solve this without combinatory? I'm stuck here.

  • Custom User Avatar

    I think this test is wrong:

    Test.assert_equals(knapsack(100, [[1, 1],
    [3, 4]]), [1, 33])

    It should be:

    Test.assert_equals(knapsack(100, [[1, 1],
    [3, 4]]), [100])

    Am I misunderstanding the greedy solution?

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    @xcthulhu, I can't post a kumite because I haven't earned the right to see the solutions of the kata (because I cannot solve it).

  • Custom User Avatar

    I have the same problem here that I find in another kata. My solution passes the tests, when I click submit it won't go through. The error I get is that it takes more than 6000 miliseconds. I believe my solultion is O(n).

    Shall I post it here to discuss it?

  • Custom User Avatar

    I pass the test when I click "Run Test". But when I click submit I get this error:

    None should equal ['22', '38']

    It seems submitting runs other tests that I can't see.

    Is it possible to see those tests too?

  • Custom User Avatar

    Typo: "You task". It should say "Your task".

  • Custom User Avatar

    Following PEP8, it should be get_value and not getValue.