Hi, I have the same problem. I past all test but fail in submit in validators ‘Quantity Sort’ and ‘Bigger Sort’.
I’ve tried examples of player_one and I pass that examples too.
Can anyone try this test?
3
C12H11O2
C12H11O3P5
C12H11O1P6
In my interpretation, (and apparently in original Hill text) C12H11O1P6 < C12H11O2 < C12H11O3P5 because first is alphabetically and if two compound have same atom, look for quantity.
I think the problem is in the line of puzzle: " If the elements are in the same order, the one with fewer of the element is sorted first." So, maybe the correct is: C12H11O2 < C12H11O1P6 < C12H11O3P5 because only look the quantity if there is exactly the same atoms names.
So, Can anyone test those compounds for me? and Can anyone provide some more tests?
I don’t understand why is in IDE test case 02:
CCl4 < CHCl3
According to puzzle description:
Hill Order sorts elements in Hill Notation according to the following rules:
Compounds are sorted alphabetically by element. So Al2O3 comes before CH4.
If the elements are in the same order, the one with fewer of the element is sorted first.
3 < 4, so Cl3 < Cl4, so CCl3 < CCl4, so CCl3H < CCl4
H comes before Cl only in Hill Notation, but according to description Hill Order is fully alphabetical, as in the given example Al2O3 < CH4.
Why is the expected solution is CCl4 < CHCl3 and not CCl4 > CHCl3 ???
EDIT: now I get it. so the Hill Order is not alphabetical, but goes according to Hill Notation order. The given example Al2O3 < CH4 is just misleading. Could have been a nice puzzle. Such disambiguity in the description rendered it as a 1-star puzzle in my book…