Ad
  • Custom User Avatar

    Was struggling with the same problem for a good few hours...

    Like @K01egA mentioned above it might be a problem with the input values, sure was the problem in my case

  • Custom User Avatar

    Got the same error. Angle Test works fine, have no idea where to look further.

  • Custom User Avatar

    If the list input contains any invalid values, discard it entirely

  • Custom User Avatar

    I am struggling with exactly the same issue, but in Python.

    I amended my code to maintain the size sum of all inserted blobs, and it does indeed come up to 570, which means that the fixed tests are correct, and that there is a bug in both of our codebases.

    That's all I know for now.

  • Custom User Avatar

    I would focus on testing the angle-test: where you make sure the right blob is targeted when their sizes and distance to them are equal. Make some unit tests to ensure that it functions as it should in all angles.

  • Custom User Avatar

    Hi, I had the same feelings when I started on CW and found this kata. If you don't know anything about classes and objects, begin there. If that part is good, check on "linked lists" and that should be good after that. Formally, a node is a Node object with two fields: a value and a successor. Here, the value has no interest and only the successor is needed, which you can access with the method node.getNext() (the exact call might depend on the language).