• Sign Up
  • Kata
  • Kumite
  • Blog
  • Forum
  • Wiki
  • Leaders
  • Log In
  • Sign Up
Name:Arkadiy
Clan:Unknown
Member Since:Jul 2017
Last Seen:Mar 2021
Profiles:
Following:0
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored (15)
  • Needs Resolution
    • arkada38
    • created an issue for "Parse nice int from char problem" kata
    1. No sample tests for Rust
    2. No sample solution for Rust
    • arkada38
    • commented on "Tortoise racing" kata

    Fixed. assert_eq!(actual, expected)

    • arkada38
    • commented on "Tortoise racing" kata

    Only during the first call. The tests are always the same.
    I've forked Rust Translation with real random tests.

    • arkada38
    • commented on "Tortoise racing" kata

    https://github.com/Codewars/codewars.com/issues/556
    Crate Random is available now.

    • arkada38
    • created an issue for "Tortoise racing" kata

    No random tests for Rust.

    • arkada38
    • commented on ""Program a Calculator #2 - 3D Vectors" Rust Translation"

    Is done.

    • arkada38
    • commented on ""Program a Calculator #2 - 3D Vectors" Rust Translation"

    Now it works.

    • arkada38
    • commented on ""Program a Calculator #2 - 3D Vectors" Rust Translation"

    I've added the random tests. But rand methods not works on codewars. It's a draft now.

    • arkada38
    • commented on "Prize Draw" kata

    Sorry. My mistake.

    • arkada38
    • commented on "Prize Draw" kata

    Length of firstname is numbered from 0 in random tests.
    But description says count from 1.
    Length of PAUL is 4 not 3.
    It's not a problem with sample tests. But a big problem with random tests.
    Here small example.
    st = "Matthew,John,Bob"
    we = [16, 33, 70]
    If length is numbered from 0.
    John = 1683
    Matthew = 1552
    Bob = 1540
    If length is numbered from 1.
    John = 1716
    Bob = 1610
    Matthew = 1568

    Best C# solutions calcs the score with length which numbered from 0.

    • arkada38
    • commented on ""Program a Calculator #2 - 3D Vectors" Rust Translation"
    1. I've changed the epsilon to 0.000001.
    2. Random tests are currently impossible in Rust.
    • arkada38
    • created an issue for "Prize Draw" kata

    The length of the firstname is added to the sum of these ranks hence a number n.

    PAUL -> n = length of firstname + 16 + 1 + 21 + 12 = 4 + 50 -> 54
    length of firstname = 4 not 3

    And random tests will fail (e.g. C#).
    Because ranks are numbered from 0 in tests solution.
    This contradicts to the condition.

    • arkada38
    • resolved an issue on "Operations with sequence" kata

    Thank you.

    • arkada38
    • resolved a suggestion on "Operations with sequence" kata

    Thank you

    • arkada38
    • created an issue for "maxPossibleScore" kata

    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" }));
    }
    
  • © 2021 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm