Ad
  • Custom User Avatar

    I actually imagined this as more like rocks and a truck that is able to carry a maximum weight and a specified number of rocks. Not all katas have great wording, unfortunately. The problem is still interesting, 'though.

  • Custom User Avatar

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

  • Custom User Avatar

    at the beginning of your function you could print the test data, see on which data it fails, take that data to your laptop and debug