Ad
  • Custom User Avatar

    Sometimes the descriptions can be overworded or underworded. Information theory and the beginning of words is a very cool subject to research if you can. If you see kata with bad descriptions, you can leave a suggestion in the discussion section to help improve the understanding of the goal for other Code Warriors.

  • Custom User Avatar

    made me realize this kata is overworded

  • Custom User Avatar

    Hehe calculus programming ^-^

  • Custom User Avatar

    That's cool; let me know if you need a hand with refactoring or the like :)

  • Custom User Avatar

    Thanks! Yep, I have too many useState calls because I struggled with useEffect at first. I learned a lot of things from this.

  • Custom User Avatar

    Print the input (hoping you are not modifying it) and the expected solution to debug.

  • Custom User Avatar

    That's great (although you might be using a few too many hooks) - demo added to the description with credits :)

  • Custom User Avatar

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

  • Custom User Avatar

    'Mitochondria' is spelled with an extra 'c' in the description example: // => "The Mictochondria

  • Custom User Avatar

    ['R', 't', 'a', 'e'],
    ['a', 'e', 'r', 'v'],
    ['n', 's', 'e', 'i'],
    ['d', 't', '', 'l'],
    ['o', 's', '', ''],
    ['m', ' ', '', '',]

  • Custom User Avatar

    Hi, yes, you're right. I forgot to change the sample tests before publishing, so that's my bad.

    I think the Kata author may have to manually change the sample tests at this point.

  • Custom User Avatar

    Sample tests have an issue in C#

    MaxPossibleScore(new Dictionary<string, int> { {"a", 1} }, new string[] {}))
    But string needs to change to object.

    [Test]
    public void FixedTests()
    {
        Assert.AreEqual(1, Kata.MaxPossibleScore(new Dictionary<object, int> { { "a", 1 } }, new object[] { }));
        Assert.AreEqual(2, Kata.MaxPossibleScore(new Dictionary<object, int> { { "a", 1 } }, new object[] { "a" }));
        Assert.AreEqual(29, Kata.MaxPossibleScore(new Dictionary<object, int> { { "a", 1 }, { "b", 14 } }, new object[] { "b" }));
        Assert.AreEqual(14, Kata.MaxPossibleScore(new Dictionary<object, int> { { "a", 1 }, { "b", 2 }, { "c", 4 } }, new object[] { "a", "b", "c" }));
        Assert.AreEqual(23, Kata.MaxPossibleScore(new Dictionary<object, int> { { "a", 2 }, { "b", 5 }, { "c", 8 } }, new object[] { "c" }));
    }
    
  • Custom User Avatar

    Ruby translation, please check and approve =)

  • Custom User Avatar

    It's ok already, had used return obj and return arr to check out the values.

  • Custom User Avatar

    How to check the values of arr and obj for those two tests?

    I'm having the same problem and I can only see the below in output.

    Expected: 99060.49926193299, instead got: 49680.66357670399
    Expected: 99060.49926193299, instead got: 49680.66357670399

  • Loading more items...