Ad
  • Custom User Avatar

    Okay, thanks so much!

  • Custom User Avatar

    LOL. I was actually wondering if the precision issue was part of the challenge.

  • Custom User Avatar

    Can I have some worked examples of the match percentage calculation? What formula do you use to derive the percentage?

    The description is fine but the specifics are a mystery to me.

  • Custom User Avatar

    How is a "match percentage" defined?

    What does it mean to "calculate the alignment"?

  • Custom User Avatar
    {"Persepolis"=>14, "Adults in the Room"=>11}
    ["Noughts & Crosses x10",
     "ts x7",
     "immortal",
     "tur x4",
     "nothing x2",
     "persepolis x10",
     "thwae",
     "tdc",
     "The Hare with Amber Eyes",
     "Outline by Rachel",
     "thwae",
     "tgd"]
    expected: {"Adults in the Room"=>11, "Persepolis"=>14}
         got: {"Adults in the Room"=>11, "Persepolis"=>4}
    
    (compared using ==)
    
    Diff:
    @@ -1,3 +1,3 @@
     "Adults in the Room" => 11,
    -"Persepolis" => 14,
    +"Persepolis" => 4,
    

    The catalog needs 14 Persepolis.

    However, in the inventory notes, there is "persepolis x10"

    Why does the reference solution expect 14 Persepolis? There are 10 Persepolis in the inventory.

  • Custom User Avatar

    Errors from the random tests:

    In file included from main.cpp:7:
    ./tests.cpp:37:23: error: use of undeclared identifier 'multiply'; did you mean '_multiply'?
            string temp = multiply(a, mul);
                          ^~~~~~~~
                          _multiply
    ./tests.cpp:21:8: note: '_multiply' declared here
    string _multiply(string x, int mul) {
           ^
    ./tests.cpp:39:18: error: use of undeclared identifier 'add'; did you mean '_add'?
            result = add(result, temp);
                     ^~~
                     _add
    ./tests.cpp:8:8: note: '_add' declared here
    string _add(string x, string y) {
    
  • Custom User Avatar
    "abcccabab"       3
    

    Why is the expected result 3?

    If the index is zero-based, then 3 would be the second 'c' instead of the first 'c'.

  • Custom User Avatar

    Random tests always seem to expect Diamond?

    Does not award the correct statuette: 'Crystal' should equal 'Diamond'
    Does not award the correct statuette: 'Bronze' should equal 'Diamond'
    Does not award the correct statuette: 'Crystal' should equal 'Diamond'
    Does not award the correct statuette: 'Silver' should equal 'Diamond'
    Does not award the correct statuette: 'Silver' should equal 'Diamond'
    Does not award the correct statuette: None should equal 'Diamond'
    Does not award the correct statuette: 'Crystal' should equal 'Diamond'
    Does not award the correct statuette: 'Silver' should equal 'Diamond'
    Does not award the correct statuette: 'Silver' should equal 'Diamond'
    Does not award the correct statuette: 'Crystal' should equal 'Diamond'
    
  • Custom User Avatar

    I may need a bigger hint. LOL

  • Custom User Avatar

    What exactly was being tested here??

    Test Failed
      Expected: True
      But was:  False
    
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    test.assert_equals(makeFraction(.523681), (428417670197443, 818088190672896))
    

    Why isn't the answer (523681, 999999)? That would produce the desired repeating decimal.

  • Custom User Avatar
    n: 179164078, score: 41130371602715017, expected: 25080488090337936: 25080488090337935 should equal 2.5080488090337936e+16
    

    Why is the reference solution using floating point math when an exact integer solution is possible?

  • Custom User Avatar
  • Custom User Avatar

    This issue was corrected for the fixed tests but random tests still aren't testing anything.

    For this "solution":

    def problem(area):
        return 1
    

    I got this result:

    Random tests
    Test Passed
    Test Passed
    Test Passed
    Test Passed
    Test Passed
    Test Passed
    
  • Loading more items...