Ad
  • Custom User Avatar

    Try using single quotes rather than double quotes.

  • Custom User Avatar

    see, I don't know what exactly your problem is but if it is like EOL then remember, ALL YOU HAVE TO DO IS RETURN THE GIVEN INPUT or the input of the function not the input which will be supplied during the program.

  • Custom User Avatar

    I agree with you, the description does not describe correctly what users are supposed to do.

  • Custom User Avatar

    I think finding a working solution in the first place is way tougher than a 6 kyu problem. I'm solving 4kyu problems way easier than this one.

    I think my problem is that I am finding every possible sum then searching for the lowest number not included in the sums. I need to reverse that order. Start counting at 1 and return false if you can't find a combination of numbers that add up to that number. Kind of fatigued from working on this problem for now though but I will definitely return to it.

  • Custom User Avatar

    Your solution is probably correct. The problem is due to the input being modified on the testing end. See my issue above

  • Default User Avatar

    Not all of them were lists. Some of them were other types, which can not be modified

  • Custom User Avatar

    strange.. looks like the problem was with using the same list

  • Custom User Avatar

    some example
    input:
    [-12, 42]
    test result"
    [12, 54] should equal [12, 66]

  • Custom User Avatar

    did you get it? having same problem

  • Default User Avatar

    Sorry about this, should be fixed now

  • Custom User Avatar

    Read Fchilling's post below, he asked the same question.

  • Custom User Avatar

    It's expecting string 'BruuJ', because in the matrix there is another row with letter 'K' in it. In order to continue decoding, it should go to the last row, but there's no letter at that index, so decoding must stop.

  • Default User Avatar

    Sort the list first and look at it. You should see a way.

  • Default User Avatar

    I just solved it in JS. My algorithm takes around 1000ms. I did not apply dynamic programming. I think if you know the answer, it real worth 6kyu or below.

  • Custom User Avatar

    You can post code here if you check the 'Mark as having spoiler content' box below when submitting your comment, and your comment wouldn't be visible to people who haven't solved the kata. The above comment said you couldn't post it on GitHub.

  • Loading more items...