Because you linked to the original kata, which requires that the beggars choose the larger pile each time, unless they are equal, in which case they will choose the leftmost pile. Since there are no equal piles in this array, each beggar would choose the larger pile each time, leading the order 5, 4, 3, 2, 1. Your kata requires that they always choose the leftmost pile no matter what, but unless you actually state that, there is no way to know. It needs to be rewritten.
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.
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.
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.
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.
Because you linked to the original kata, which requires that the beggars choose the larger pile each time, unless they are equal, in which case they will choose the leftmost pile. Since there are no equal piles in this array, each beggar would choose the larger pile each time, leading the order 5, 4, 3, 2, 1. Your kata requires that they always choose the leftmost pile no matter what, but unless you actually state that, there is no way to know. It needs to be rewritten.
The correct result for your example is
Two years ago!! Am probably too late lol
No problem.
I think you confused something:
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.
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.
Not a kata suggestion, that case is explained in the description. You're giving the money in reverse order, why?
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.
Please use a spoiler flag next time.
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.