Ad
  • 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
    
  • Custom User Avatar
  • Custom User Avatar

    The tests aren't testing anything.

    I made a mistake in this solution but still passed: https://www.codewars.com/kata/reviews/66bce4158fed1ddb86d680b7/groups/66bce9654a6f487c43156bc3

  • Custom User Avatar

    Some of the edge cases may need explanation.

    When the cathetus is equal to the hypotenuse, that could mean that the "other side" of the right triangles is zero, so the four right triangles are all zero-area. Then the inner square is equal in area to hypotenuse ** 2.

    But the edge case tests expect 0 for the result. Why?

  • Custom User Avatar

    Still see the following in the desc:

    Ensure that both a and b are always non-negative numbers.
    

    The question remains though. Which line or line segment do you mean by "cathetus"? It could be the shorter leg or the longer leg or maybe it doesn't matter. That is unclear.

  • Loading more items...