Ad
  • Custom User 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

  • Custom User Avatar
  • Custom User 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)

  • Custom User Avatar

    Could you explain how you got 1201, because 2110 is the correct answer. You should make it so the digits are sorted in descending order (essentially a greater number comes before a lesser number, and we can see that your answer is incorrect as 1 comes before 2, but 2 is a greater digit

  • Custom User Avatar

    Let's just say the "state of the art statistical model" isn't really accurate.

    (I'm presumming you are talking about cases such as n = 5, score = 7, but I'd say that's covered by the "If this is not possible, return -1" part, if you're referring to something else, please clarify in a comment)

  • Custom User Avatar

    I used "an" because the first syllable is a vowel sound, an personally sounds better to me. That being said, I can find both uses on google, and I don't think it's something to worry too much about, though I agree with Kayleigh that an O(n) is correct

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    Fixed, reference solution now uses integer division

  • Custom User Avatar
    • I haven't used C# in a long time (this is a translation from 2 years ago), so I might be unaware of this, but does C# allow variable access outside of the function's scope, since that's the only reason that I could think of for this change to be necessary. Not to mention, adding the private modifier directly to the variable causes a compile time error, since (at least from what I can tell) you can't add access modifiers to variables inside a function's scope. Some further clarification would be gratefully appreciated.

    • Changed

    • Added the input into the assertion message, NUnit handles showing the actual and expected

  • Custom User Avatar

    Swift translation does not perform the random tests, fixed in fork

  • Custom User Avatar

    Make a function to generate random strings, then in the Male and Female catergories, add a random amount of random strings to each category

  • Custom User Avatar
  • Custom User Avatar

    Fixed

  • Custom User Avatar

    Approved by someone

  • Loading more items...