Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I fully agree weith you @gpietro, its a bad question.
Post your code please.
Copypasting detected:
This seems to be a greedy version by design... (The reference solution is still wrong.)
This is a duplicate of https://www.codewars.com/kata/pyramid-slide-down
In general, copy an coding problem from another entry-level coding site without attribution is a bad idea, because people have already taken all these low-hanging fruits, and they're often not very original. Not to mention that your solution (aka the reference solution) is wrong.
I posted an issue above; the Elixir translation is expecting incorrect results for the negative tests.
With the Elixir translation, the random tests for negative numbers expect incorrect values.
A couple examples:
This comment is hidden because it contains spoiler information about the solution
exactly. what the hell is maximum subarray sum? haha. terribly worded
Yes, if one does not understand it, then it litterally is an issue. You're -10 score reflects that more ppl then less do not understand. just because 7800 warriors have understood it does not reflect the overall % of ppl understanding the problem. What if 100,000 people tried the problem but the other 92000 people cant even start cause the question is worded horribly.
Yes this kata is terribly worded, and just absolute frustrating that I have no idea what it is asking.
sorry, but you can't post code without a spoiler tag, (which I've added for you), even if it's a partial or faulty solution. Also, it's important to use proper markdown formatting: https://github.com/Codewars/codewars.com/wiki/Markdown-Formatting, so people can more easily read your code. At first glace, it looks like you're having some off-by-one issues, so perhaps look into your rounding, either way it comes down to maths. good luck
This comment is hidden because it contains spoiler information about the solution