6 kyu

Santa's Gone Bankrupt

Description
Loading description...
  • Please sign in or sign up to leave a comment.
  • ejini战神 Avatar

    Use repr or wrap the input in quotes for it block, otherwise it can be easily misleaded as inputs being integers

    • NikCSharp Avatar

      Not sure that this is necessarily an issue (as the variables already include the word string and example testcases have the binary strings as strings), but have added quotes around the strings in the it block

      Issue marked resolved by NikCSharp 6 months ago
  • RealKenshiro Avatar

    In the sample tests tester("11000", "01111", 4, 1):

    Remove components 1 and 2, price of 1, quality of 4

    Isn't it :

    Remove component 1, price of 1, quality of 4

    To prevent bad understanding, maybe add in the description that indices are 1-based in your sample tests.

  • ahmet_popaj Avatar

    Fancy coding challenge just for the holidays, happy ones everybody then.

  • dfhwze Avatar

    The description is hard to read: see suggested description update. See if you like this update or not.

    • NikCSharp Avatar

      I do agree that the description is a bit hard to read, so thank you for the fork. My main concern with your fork is that it doesn't mention anything removing elements, only "optimizing the gift production", which I feel is unclear. Additionally, though this might be due to the fact that I'm used to the formats of other sites, but I feel the large amount of headers do clutter the description, and information could be more easily condensed. I've made a fork of your work, and would like to know your thoughts on it.

      Thanks! (changing it in the meantime just to replace the current description)

    • dfhwze Avatar

      Yeah this works too

      Suggestion marked resolved by dfhwze 6 months ago