Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Approved
.
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
itblockUse
repror wrap the input in quotes foritblock, otherwise it can be easily misleaded as inputs being integersFixed
In the sample tests
tester("11000", "01111", 4, 1):Isn't it :
To prevent bad understanding, maybe add in the description that indices are
1-basedin your sample tests.Fancy coding challenge just for the holidays, happy ones everybody then.
Yeah this works too
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)
The description is hard to read: see suggested description update. See if you like this update or not.
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
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)
There are times where the opponents given score is impossible.
I agree that
NothingorNoneis preferable to-1, but I just kept things consistent with the description.That is the correct application of the English language. Just try saying
a O(n), you sound like an absolute pillock greeting their mate Owen.Anyway I fixed it.
Loading more items...