Ad
  • Custom User Avatar

    if you look up the (connect the ropes to minimise cost) it is much better explained there and will remove confusion because many people think for numbers [1,2,3,4,5] the minimal cost is 34 but it is actually 33'

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    thanks @hydepark, i was also making it overly complicated but your comment made me realise the solution can be simple.

  • Custom User Avatar

    i haven't solved the kata yet but the description should give more complex examples. for example given the list [1, 2, 3, 4] you don't have choose a certain permutation and work left to right (e.g. doing 1+2=3, 3+3=6, 6+4=10), you could instead add 1 and 2, then add 3 and 4 separately, then combine the two sums into one. this description doesn't cover this case and i don't know if this is done intentionally to make it harder to solve or what, i just think it's deceiving to provide only examples that make you think a certain way and essentially throw you off. i've seen this done on other katas but my rant ends here...

    PS - i know the description suggests you can add numbers in this dynamic way but more examples would make this clearer. also this was a nice kata.

  • Custom User Avatar

    this solution is kinda scuffed, my python solution is better

  • Custom User Avatar

    yes

  • Default User Avatar

    Thanks for sharing that. When I started creating this kata, there were very few big complex kata on Codewars, and your experience was the kind of thing I had in mind.

  • Custom User Avatar

    i spent 3 weeks of my life on this kata. there were so many difficulties (learning how to display each test case in Qt, learning the maths, optimising and debugging) and there were many points where i thought there was no way to proceed. don't be discouraged if you don't solve it as fast as you'd like or if you're getting frustrated, just take a break and come back to it when your mind is refreshed. this is by far the hardest kata i've ever seen and i learnt a lot while solving it.

    PS - i will admit that i did a lot of googling for this kata but the research wasn't enough, i had to think for myself. this kata is tough guys.

  • Custom User Avatar

    .

  • Custom User Avatar
  • Custom User Avatar

    ;-)

  • Custom User Avatar

    always posititve has been now added to description

  • Custom User Avatar

    Input range should be specified. Will coin1/coin2 be zero or negative?

  • Custom User Avatar

    good catch

  • Loading more items...