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.
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
Nothing
orNone
is 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.
I believe we should return
Nothing
in Haskell instead of-1
. In fact, in Python it should also be better to returnNone
.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 thatan O(n)
is correctWhat does it being notation have to do with anything? You still pronounce it as the letter
O
..
Approved!
I think since
O
is not a full word, but instead a mathematical notation, thatan
does not apply. But who knows for sure ..Haskell translation
It should be
an O(1)
as a native English speaker imo. Unless you're pronouncingO(1)
as something other thanOh-one
, which makes no sense.A
vsan
is purely pronunciation based, egan hour
.fixed
Loading more items...