Ad
  • Custom User Avatar

    I have the same issue. In my case, it was due to the way I appended 67 and 670 in a loop

  • Custom User Avatar

    (If you're talking about the example I think you're talking about): I also thought the test answer was wrong but if you search below for the comment by dcpf and the reply by jmeek I have to admit I think the answer makes sense: a candidate who gets no votes in the first round is indeed the lowest performing candidate in that round and should be eliminated immediately, rather than being allowed to win after including their second-round votes.

    After all, thinking about the substance of the system: if the candidate c had done slightly better and got one first-placed vote they would have been eliminated in the first round; they certainly shouldn't be rewarded with the potential ability to win the election just because they didn't get any first round votes at all!

  • Default User Avatar

    Hi, I can't get these tests to pass in Elixir.

    Basically it looks like the tests need a specific ordering as I'm getting this test failure.

    lhs: "AA 45522:Paris St. Abbeville,Paris St. Abbeville/670,67"
    rhs: "AA 45522:Paris St. Abbeville,Paris St. Abbeville/67,670"

    However, when I order by street number another test fails!

    Anyone completed this in Elixir and have any pointers?

    Thanks

  • Default User Avatar

    Passed all but one test ("Expected: :e, instead got: :c"). I printed the input (and ran through the example manually) and I'm pretty sure the test assertion is wrong and "c" should be expected. I can see others have had the same issue (hopefully we haven't made the same error).