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.
The error message is bad, but it says the position for one of the entry is wrong (should be at 2nd position, but your code places it at 3rd)
Also, your code seems to only modify the value for each key-value pair of Dictionary, but not sort it accordingly.
Brute-forcing will not pass the tests as there is a solution with O(1) complexity available (like you said)
resolving
CW cache issue when solution page has too much solutions. A resubmit may do the trick
Not a suggestion.
A CW bug, of course.
Seems it has been fixed at some point.
"VOL." is still a problem in JavaScript.
Fixed kata just now.
No, the assumption that zero is neither positive or negative is a cultura assumption of convenience and has no solid basis in number theory. I'm not saying it's wrong, just that it is not a law of mathematics and some people from other cultures may come here and be confused by your assumption.
The kata description should be adjusted to reflect this: "Zero will be assumed to be neither positive nor negative." It's an easy fix.
https://en.wikipedia.org/wiki/Sign_(mathematics)
How do they both equally satisfy the kata conditions?
"each integer l of the left wing must be greater or equal to its counterpart r in the right wing"
The second version you posted fails this criteria because 7 is not greater or equal to 20.
Fixed. Thanks ;-)
The output should sort in
lexicographical order
;-)Loading more items...