Ad
  • Custom User Avatar

    The correct result for your example is

    {"pos": [3, 7, 10], "peaks": [6, 3, 2]}
    
  • Custom User Avatar

    Two years ago!! Am probably too late lol

  • Custom User Avatar

    No problem.

  • Custom User Avatar

    I think you confused something:

    CustomFib(new[] { 3, 5, 2 }, new[] { 0, 1, 2 },4) == 17 #similar to my Tribonacci
                   (not 5, 3, 2)   
    0 = 3
    1 = 5
    2 = 2
    3 = 3 + 5 + 2 = 10
    4 = 5 + 2 + 10 = 17
    
  • Custom User Avatar

    Have you really read the documentation? In my opinion this has no chance to be approved, it's a single basic math stuff calculation... There are already several katas about solving quadratic equations. I should have warned you: There are already many katas (about 8000), and it's becoming really hard to come with novel ideas, particularly with easy trivial task like this.

  • Custom User Avatar

    First, you should read the official documentation page: https://docs.codewars.com/authoring

    Though it is not complete (it's probably impossible to be exhaustive with this question), it will give you unavoidable guidelines.

    Then, I believe a good way to learn to do the things by yourself is to have a look at different katas test cases so you can see everything is organized. At last if you have some concrete questions about things you have a doubt about, you should ask for help on Codewars Discord channel.

  • Custom User Avatar

    Not a kata suggestion, that case is explained in the description. You're giving the money in reverse order, why?

  • Custom User Avatar

    Nobody is getting paid to answer you and solve the kata for you so please don't complain and just get thankful if some day you get an answer. Also please use markdown tags to format your code or it is very discomfortable to read, see: how-to-format-code-in-markdown.

  • Custom User Avatar

    Please use a spoiler flag next time.

  • Custom User Avatar
    Wrong output for "123
    "
    

    Notice that there's a trailing new line, not a number (which still makes it 4 characters long). You're testing it with different string on VS.

    Not a kata issue, but problem with your code.

    Also, please check before raising issue a number of completions in your language (at the top of page or details page). For C# there's 5000+ completions, so you should know it's definitely not kata's fault when number is that big.